Template:Infobox: Difference between revisions
From Elwiki
mNo edit summary |
m (→How to Use =) |
||
Line 37: | Line 37: | ||
== Description == | == Description == | ||
This is infobox proto. All infoboxes should use this proto. | This is infobox proto. All infoboxes should use this proto. | ||
== How to Use | == How to Use == | ||
<u>'''Valid Parameters'''</u>: | <u>'''Valid Parameters'''</u>: | ||
:* '''Content Parameters''': <code>title</code>, <code>image</code>, <code>label???</code>, <code>data???</code> | :* '''Content Parameters''': <code>title</code>, <code>image</code>, <code>label???</code>, <code>data???</code> | ||
:* '''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> | ||
== How it works == | == How it works == | ||
# <code>title</code> and <code>image</code> are optional. | # <code>title</code> and <code>image</code> are optional. |
Revision as of 20:14, 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:
How it works
title
andimage
are optional.- If
title
is omitted, the title bar will show as a line. - If
image
is omitted, the image part will disappear.
- If
- Every entry is composed of a
label???
anddata???
, and modified byset???
andcolset
.- In most cases, the
???
should be the same for the same entry. - A
label???
is required to add an entry.- If the
set???
is set for thislabel
, it will add a multiple-column entry.- When adding a multiple-column entry,
set???
is how many columns in the entry (label of the entry not included). - Also, when adding a multiple-column entry,
colset
should be set to the product of all possible column numbers.- For example, if you have 2 column entry, 3 column entry, and 5 column entry in the whole infobox, you should set
colset
to 30 (2 x 3 x 5). - You can also use Template:PRODUCT to calculate the product.
- For example, if you have 2 column entry, 3 column entry, and 5 column entry in the whole infobox, you should set
- For multiple-column entries, you should write
data
asdata???/???
. For example, if you havelabel30
andset30
, you should writedata30/1
,data30/2
, etc.
- When adding a multiple-column entry,
- Otherwise, it will add a single-column entry.
- If the
- In most cases, the