Help:Infoboxes: Difference between revisions

From Starfleet Command
Jump to navigation Jump to search
created
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Opening & Closing==
<pre>
{| class="infobox"
}}
</pre>
==Title Areas==
'''for ''section title area'' that is always showing:'''
'''for ''section title area'' that is always showing:'''
<pre>
<pre>
Line 13: Line 21:
</pre>
</pre>


==Data Areas==
'''for always showing ''data line'':'''
'''for always showing ''data line'':'''
<pre>
<pre>
Line 19: 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:'''
Line 26: Line 36:
{{!}} {{{data}}}}}
{{!}} {{{data}}}}}
</pre>
</pre>
==Imagery==
For required imagery:
<pre>
|colspan="2"| {{{image|[[Image:''file name''|200px]]}}}
|-
</pre>
For optional imagery (hides image box if no image inserted):
<pre>
|-
{{ #if: {{{Image|}}}|{{!}}class="sb-both" colspan="2"{{!}}[[Image:{{{Image}}}|200px]]}}
</pre>
<br>
[[Category:Help|{{PAGENAME}}]]

Latest revision as of 20:02, 12 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}}}}}

Imagery

For required imagery:

|colspan="2"| {{{image|[[Image:''file name''|200px]]}}} 
|-

For optional imagery (hides image box if no image inserted):

|-
{{ #if: {{{Image|}}}|{{!}}class="sb-both" colspan="2"{{!}}[[Image:{{{Image}}}|200px]]}}