Infobox Prototype

From Elwiki
Revision as of 20:13, 1 May 2015 by Boxsnake (talk | contribs)


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

How it works

  1. title and image are optional.
    • If title is omitted, the title bar will show as a line.
    • If image is omitted, the image part will disappear.
  2. Every entry is composed of a label??? and data???, and modified by set??? and colset.
    • 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 this label, 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 multiple-column entries, you should write data as data???/???. For example, if you have label30 and set30, you should write data30/1, data30/2, etc.
      • Otherwise, it will add a single-column entry.