ElEditors, Interface administrators, Administrators
85,546
edits
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#if:{{{color|}}} | <includeonly>{{#if:{{{color|}}} | ||
|{{#vardefine:color| background-color: {{{color}}};}} | |{{#vardefine:color| background-color: {{{color}}};}} | ||
}}<table class="infobox {{{class|}}}" style="{{{style|}}}"> | }}<table class="infobox {{{class|}}}" style="{{{style|}}}"> | ||
Line 33: | Line 33: | ||
}} | }} | ||
}} | }} | ||
</table> | </table></includeonly></noinclude> | ||
{{DISPLAYTITLE:Infobox Prototype}} | |||
== Description == | |||
This is infobox proto. All infoboxes should use this proto. | |||
== How to Use === | |||
<u>'''Valid Parameters'''</u>: | |||
:* '''Content Parameters''': <code>title</code>, <code>image</code>, <code>label???</code>, <code>data???</code> | |||
:* '''Layout Parameters''': <code>colset</code>, <code>set???</code> | |||
:* '''Styling Parameters''': <code>style</code>, <code>class</code>, <code>color</code> | |||
== How it works == | |||
# <code>title</code> and <code>image</code> are optional. | |||
#* If <code>title</code> is omitted, the title bar will show as a line. | |||
#* If <code>image</code> is omitted, the image part will disappear. | |||
# Every entry is composed of a <code>label???</code> and <code>data???</code>, and modified by <code>set???</code> and <code>colset</code>. | |||
#* In most cases, the <code>???</code> should be the same for the same entry. | |||
#* A <code>label???</code> is required to add an entry. | |||
#** If the <code>set???</code> is set for this <code>label</code>, it will add a multiple-column entry. | |||
#*** When adding a multiple-column entry, <code>set???</code> is how many columns in the entry (label of the entry not included). | |||
#*** Also, when adding a multiple-column entry, <code>colset</code> 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 <code>colset</code> to 30 (2 x 3 x 5). | |||
#**** You can also use [[Template:PRODUCT]] to calculate the product. | |||
#*** For multiple-column entries, you should write <code>data</code> as <code>data???/???</code>. For example, if you have <code>label30</code> and <code>set30</code>, you should write <code>data30/1</code>, <code>data30/2</code>, etc. | |||
#** Otherwise, it will add a single-column entry. | |||
</noinclude> |