Template:INITOC: Difference between revisions
From Step Mods | Change The Game
No edit summary |
No edit summary |
||
Line 31: | Line 31: | ||
'''Code:''' | '''Code:''' | ||
<pre>{{Columns | <pre>{{Columns | ||
| | |heading=Love | ||
|borderSize=0 | |borderSize=0 | ||
|columns= | |columns=4 | ||
|width=100% | |width=100% | ||
|text=Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br /> | |text=Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br /> | ||
Line 39: | Line 39: | ||
'''Result:''' | '''Result:''' | ||
{{Columns | {{Columns | ||
| | |heading=Love | ||
|borderSize=0 | |borderSize=0 | ||
|columns= | |columns=4 | ||
|width=100% | |width=100% | ||
|text=Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br /> | |text=Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br /> |
Revision as of 18:22, June 30, 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: Column content.
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
elements.
Code:
{{Columns|text=Love<br />is<br />columns!}}
Result: Template:Columns
Code:
{{Columns|text=Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />}}
Result: Template:Columns
Code:
{{Columns |heading=Love |borderSize=0 |columns=4 |width=100% |text=Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br />Love<br />is<br />columns!<br /> }}
Result: Template:Columns