Template:Infobox: Difference between revisions

From Elwiki
mNo edit summary
No edit summary
Line 51: Line 51:
:* <code>data???</code>: Data 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>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>colset</code>: (Optional) '''Required''' 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>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>class</code>: (Optional) Class of infobox, following HTML <code>class</code> attribute syntax.

Revision as of 14:53, 3 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) Required 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