Template:INITOC: Difference between revisions

From Step Mods | Change The Game
No edit summary
Line 16: Line 16:


== Examples ==
== Examples ==
'''''NOTE:''' Do NOT add line breaks within the code. Instead use HTML "br" tags.''<br />
{{Fc|important|'''''NOTE:''' Do NOT add line breaks within the code. Instead use HTML <code><nowiki><br /></nowiki></code> or <code><nowiki><br></nowiki></code> tags between each parameter.''}}<br />
 
'''Code:'''
'''Code:'''
<pre>{{Columns|text=ParamHead1<br />ParamHead2<br />ParamHead3}}</pre>
<pre>{{Columns|text=ParamHead1<br />ParamHead2<br />ParamHead3}}</pre>

Revision as of 17:45, 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 <br /> or <br> 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 /> or <br> tags between each parameter.

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

See Also