Help:Infoboxes

From Starfleet Command
Revision as of 11:02, 12 January 2008 by Dan (talk | contribs) ({{PAGENAME}})
Jump to navigation Jump to search

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]]}}