Help:Infoboxes: Difference between revisions

From Starfleet Command
Jump to navigation Jump to search
reformatting and adding
→‎Data Areas: clarification
Line 28: Line 28:
|-
|-
</pre>
</pre>
The 'Data' represents the ''displayed'' name for the line, while 'data' is the name used for the code line inserted in the article. (''ex:'' <nowiki>"|category="</nowiki>)


'''for ''data lines'' that hide when empty:'''
'''for ''data lines'' that hide when empty:'''

Revision as of 14:04, 10 January 2008

Opening & Closing

{| class="infobox"

}}

Title Areas

for section title area that is always showing:

!colspan="2" class="infoboxheading"|Section Title
|-

for section title area that hides when all data lines are empty:

|-
{{#if: {{{data1|}}}{{{data2|}}}{{{data3|}}}|
{{!}}-
! colspan="2" class="infoboxheading" {{!}} Section Title}}

Data Areas

for always showing data line:

|- class="infoboxrow"
|Data||{{{data|}}} tons
|-

The 'Data' represents the displayed name for the line, while 'data' is the name used for the code line inserted in the article. (ex: "|category=")

for data lines that hide when empty:

{{#if: {{{data|}}}|
{{!}}- class="infoboxrow"
{{!}} Data
{{!}} {{{data}}}}}

Bold text