Template:INITOC: Difference between revisions
From Step Mods | Change The Game
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{title|}}}|<h3>{{{title}}}</h3> | <includeonly>{{#if:{{{title|}}}|<h3>{{{title}}}</h3> | ||
}}<div style="padding:0 7px; border:{{{borderSize|1px}}} solid {{{borderColor|#666}}}; width:{{{width|80%}}}; -webkit-column-count:{{{columns|5}}}; -moz-column-count:{{{columns|5}}}; column-count:{{{columns|5}}}; -webkit-column-rule:{{{borderSize|1px}}} solid {{{borderColor|#666}}}; -moz-column-rule:{{{borderSize|1px}}} solid {{{borderColor|#666}}}; column-rule:{{{borderSize|1px}}} solid {{{borderColor|#666}}};">{{{text|}}}</div></includeonly><noinclude> | }}<div style="padding:0 7px; border:{{{borderSize|1px}}} solid {{{borderColor|#666}}}; width:{{{width|80%}}}; -webkit-column-count:{{{columns|5}}}; -moz-column-count:{{{columns|5}}}; column-count:{{{columns|5}}}; -webkit-column-rule:{{{borderSize|1px}}} solid {{{borderColor|#666}}}; -moz-column-rule:{{{borderSize|1px}}} solid {{{borderColor|#666}}}; column-rule:{{{borderSize|1px}}} solid {{{borderColor|#666}}};">{{{text|}}}</div></includeonly><noinclude>__NOTOC__ | ||
== Purpose & Usage == | |||
This template allows text to be displayed and automatically arranged through several columns. It is used on the some INI Guides to help create a custom TOC. | |||
===Parameters=== | |||
*''text'' (required) is the content within the columns | |||
*''title'' (optional) adds a title right before the column that is an level 3 header. Required for some INI Guides | |||
*''borderSize'' (optional) adjusts the size of the border around the columns. Setting it to 0 disables the border. Default is 1px. | |||
*''borderColor'' (optional) sets the color of the borders. Default is #666. | |||
*''width'' (optional) sets the width of the entire block of columned content. Default is 80%. | |||
*''columns'' (optional) sets the number of columns to use. Default is 5. | |||
== Examples == | |||
'''Code:''' | |||
<pre>{{Columns|Love<br />is<br />columns!}}</pre> | |||
'''Result:''' | |||
{{Columns|Love<br />is<br />columns!}} | |||
{{Columns | '''Code:''' | ||
<pre>{{Columns|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 />}}</pre> | |||
'''Result:''' | |||
{{Columns|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 />}} | |||
|columns | |||
}} | |||
{{Columns | |||
| | |||
}} | |||
== See Also == | |||
*[[INI Guide/Custom TOC]] | |||
</noinclude> | </noinclude> |
Revision as of 21:17, June 27, 2015
Purpose & Usage
This template allows text to be displayed and automatically arranged through several columns. It is used on the some INI Guides to help create a custom TOC.
Parameters
- text (required) is the content within the columns
- title (optional) adds a title right before the column that is an level 3 header. Required for some INI Guides
- borderSize (optional) adjusts the size of the border around the columns. Setting it to 0 disables the border. Default is 1px.
- borderColor (optional) sets the color of the borders. Default is #666.
- width (optional) sets the width of the entire block of columned content. Default is 80%.
- columns (optional) sets the number of columns to use. Default is 5.
Examples
Code:
{{Columns|Love<br />is<br />columns!}}
Result: Template:Columns
Code:
{{Columns|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