Help:Infoboxes: Difference between revisions
Jump to navigation
Jump to search
→Data Areas: imagery section |
→Imagery: optional |
||
| Line 38: | Line 38: | ||
==Imagery== | ==Imagery== | ||
For required imagery: | |||
<pre> | <pre> | ||
|colspan="2"| {{{image|[[Image:''file name''|200px]]}}} | |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> | </pre> | ||
Revision as of 14:58, 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}}}}}
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]]}}