Template:Infobox/doc

From Random Island Wiki
Jump to navigation Jump to search


Illustration images

image(n)
images to display at the top of the template. Use full image syntax, for example [[File:example.png|200px|alt=Example alt text]]. Image is centered by default. See WP:ALT for more on alt text.
caption(n)
Text to put underneath the images.

Main data

header(n)
Text to use as a header in row n.
label(n)
Text to use as a label in row n.
data(n)
Text to display as data in row n.

Note: for any given value for (n), not all combinations of parameters are permitted. The presence of a |header(n)= will cause the corresponding |data(n)= (and |rowclass(n)= |label(n)=, see below) to be ignored; the absence of a |data(n)= will cause the corresponding |label(n)= to be ignored. Valid combinations for any single row are:

See the rendering of header4, label4, and data4 in the Examples section below.

the three parameters are defined the header won't be shown and no empty row appears before the next visible content.
This parameter is inserted into the class attribute for the infobox as a whole.
titleclass
This parameter is inserted into the attribute for the infobox's title caption.
belowclass
This parameter is inserted into the class attribute for the infobox's below cell.

This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. Multiple class names may be specified, separated by spaces, some of them being used as selectors for custom styling according to a project policy or to the skin selected in user preferences, others being used for microformats.


|imagestyle   = 
|captionstyle = 
|image        = Example alt text
|caption      = Caption displayed below File:Example-serious.jpg
|headerstyle  = background:#ccf;
|labelstyle   = background:#ddf;
|datastyle    = 


|titlestyle  = 
|title       = Test Infobox
|headerstyle = 
|labelstyle  = width:33%
|datastyle   = 
|header1 = 
| label1 = Label 1
|  data1 = Data 1
|header2 = 
| label2 = Label 2
|  data2 = Data 2
|header3 = 
| label3 = Label 3
|  data3 = Data 3
|header4 = Header 4
| label4 = 
|  data4 = 
|header5 = 
| label5 = Label 5
|  data5 = Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|belowstyle = 
|below = Below text

}}

</syntaxhighlight>