Template:Infobox: Difference between revisions

From Elwiki
mNo edit summary
Line 53: Line 53:
:* <code>color</code>: (Optional) Color of the heading. Default uses wikiskin default.
:* <code>color</code>: (Optional) Color of the heading. Default uses wikiskin default.
<u>'''Other Notes'''</u>
<u>'''Other Notes'''</u>
:* A <code>label???</code> is required to add an entry.
:* Both <code>label???</code> and <code>data???</code> is required to add an entry.
:** <code>set???</code> is required to add an multiple-column 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>.
:** If you are adding a multiple-column entry, the <code>data</code> should be written as <code>data???/...</code>.
:** In this case, if <code>data</code> is omitted, a entry will still be added.
:* <code>colset</code> can also be least common multiple (LCM), just make sure the <code>set???</code> is fractional to <code>colset</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:54, 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

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 having set???, the product of set numbers in the whole infobox.
  • style: (Optional) Style of in infobox, following CSS syntax.
  • class: (Optional) Class of infobox, following HTML class attribute syntax.
  • color: (Optional) Color of the heading. Default uses wikiskin default.

Other Notes

  • Both label??? and data??? 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 as data???/....
    • In this case, if data is omitted, a entry will still be added.
  • colset can also be least common multiple (LCM), just make sure the set??? is fractional to colset