Template:INITOC: Difference between revisions
From Step Mods | Change The Game
No edit summary |
|||
Line 5: | Line 5: | ||
===Parameters=== | ===Parameters=== | ||
====Required==== | ====Required==== | ||
*''text'': Parameter-heading labels separated by | *''text'': Parameter-heading labels separated by <code><br /></code> or <code><br></code> HTML tags (excluding quotes). | ||
====Optional==== | ====Optional==== |
Revision as of 17:43, July 1, 2015
Purpose & Usage
This template allows text to be displayed and automatically arranged over multiple columns. It is used on the some INI Guides to help create a custom TOC.
Parameters
Required
- text: Parameter-heading labels separated by
or
HTML tags (excluding quotes).
Optional
- title: Adds a level-3 heading right before the column.
- borderColor: Sets the color of the borders. Default is #555.
- width: Sets the width of the entire block of columned content. Default is 65%.
- columns: Sets the number of columns to use. Default is 3.
- gapSize: Sets the whitespace width between columns (analogous to padding). Default is 25px.
- borderSize: Sets the border width between columns (placed in center of the gap). Default is #555.
Examples
NOTE: Do NOT add line breaks within the code. Instead use HTML "br" tags.
Code:
{{Columns|text=ParamHead1<br />ParamHead2<br />ParamHead3}}
Result: Template:Columns
Code:
{{Columns|text=ParamHead1<br />ParamHead2<br />ParamHead3<br />ParamHead4<br />ParamHead5<br />ParamHead6<br />ParamHead7<br />ParamHead8<br />ParamHead9<br />ParamHead10<br />ParamHead11<br />ParamHead12}}
Result: Template:Columns
Code:
{{Columns |title=Love |borderSize=0 |columns=4 |width=100% |text=ParamHead1<br />ParamHead2<br />ParamHead3<br />ParamHead4<br />ParamHead5<br />ParamHead6<br />ParamHead7<br />ParamHead8<br />ParamHead9<br />ParamHead10<br />ParamHead11<br />ParamHead12<br />ParamHead13<br />ParamHead14<br />ParamHead15<br /ParamHead16<br />ParamHead17<br />ParamHead18<br />ParamHead19<br />ParamHead20 }}
Result: Template:Columns