Template:Infobox: Difference between revisions
From Elwiki
m (→How to Use =) |
mNo edit summary |
||
Line 42: | Line 42: | ||
:* '''Layout Parameters''': <code>colset</code>, <code>set???</code> | :* '''Layout Parameters''': <code>colset</code>, <code>set???</code> | ||
:* '''Styling Parameters''': <code>style</code>, <code>class</code>, <code>color</code> | :* '''Styling Parameters''': <code>style</code>, <code>class</code>, <code>color</code> | ||
<u>'''Parameter Instructions'''</u> | |||
:* <code>title</code>: (Optional) The heading. Omitting will result in a thin line. | |||
:* <code>image</code>: (Optional) The image on the top. | |||
:* <code>label???</code>: Heading of entry. '''Required''' for entry. | |||
:* <code>data???</code>: Data of entry. '''Required''' for entry. | |||
:* <code>set???</code>: (Optional) Number of entry columns (label does not count). | |||
#* | :* <code>colset</code>: (Optional) '''Requierd''' only if having <code>set???</code>, the [[Template:PRODUCT|product]] of <code>set</code> numbers in the whole infobox. | ||
#* <code>style</code>: (Optional) Style of in infobox, following CSS syntax. | |||
#* <code>class</code>: (Optional) Class of infobox, following HTML <code>class</code> attribute syntax. | |||
#* <code>color</code>: (Optional) Color of the heading. Default uses wikiskin default. | |||
<u>'''Other Notes'''</code> | |||
#* A <code>label???</code> is required to add an entry. | #* A <code>label???</code> is required to add an entry. | ||
#** | #** <code>set???</code> is required to add an multiple-column entry. | ||
#** | #** If you are adding a multiple-column entry, the <code>data</code> should be written as <code>data???/...</code>. | ||
#* <code>colset</code> can also be least common multiple (LCM), just make sure the <code>set???</code> is fractional to <code>colset</code> | |||
#* | |||
</noinclude> | </noinclude> |
Revision as of 20:33, 1 May 2015
Description
This is infobox proto. All infoboxes should use this proto.
How to Use
Valid Parameters:
- Content Parameters:
title
,image
,label???
,data???
- Layout Parameters:
colset
,set???
- Styling Parameters:
style
,class
,color
- Content Parameters:
Parameter Instructions
title
: (Optional) The heading. Omitting will result in a thin line.image
: (Optional) The image on the top.label???
: Heading of entry. Required for entry.data???
: Data of entry. Required for entry.set???
: (Optional) Number of entry columns (label does not count).colset
: (Optional) Requierd only if havingset???
, the product ofset
numbers in the whole infobox.
style
: (Optional) Style of in infobox, following CSS syntax.class
: (Optional) Class of infobox, following HTMLclass
attribute syntax.color
: (Optional) Color of the heading. Default uses wikiskin default.
Other Notes
- A
label???
is required to add an entry.set???
is required to add an multiple-column entry.- If you are adding a multiple-column entry, the
data
should be written asdata???/...
.
colset
can also be least common multiple (LCM), just make sure theset???
is fractional tocolset
- A