Difference between revisions of "Template:Columns-list"

From Team Fortress Wiki
Jump to: navigation, search
(new columns template that autosorts into templates to keep consistent length etc, makes use of -moz and -webkit attributes, will see if it works out.)
 
m (Improve doc)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly><div {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}};" }} }}>{{{2|{{{1|}}} }}}</div></includeonly><noinclude>
 
<includeonly><div {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}};" }} }}>{{{2|{{{1|}}} }}}</div></includeonly><noinclude>
== Usage ==
+
{{see also|Template:Columns}}
* Please see the documentation page [[wikipedia:Template:Columns-list/doc|Template:Columns-list/doc]] on [[wikipedia:Main Page|Wikipedia]] for more information on how to use this template.
+
{{Wikipedia doc}}
[[Category:Formatting templates]]
+
{{Doc begin}}
 +
 
 +
Splits text into a number of columns as defined by the first parameter. Used to make long lists of
 +
 
 +
<pre>
 +
{{Columns-list|2|
 +
* A
 +
* B
 +
* C
 +
* D
 +
* E
 +
* F
 +
}}</pre>
 +
produces:
 +
 
 +
{{Columns-list|2|
 +
* A
 +
* B
 +
* C
 +
* D
 +
* E
 +
* F
 +
}}
 +
[[Category:Formatting templates|Columns-list]]
 
</noinclude>
 
</noinclude>

Latest revision as of 02:25, 31 March 2016

See also: Template:Columns

Documentation for Columns-list


Splits text into a number of columns as defined by the first parameter. Used to make long lists of

{{Columns-list|2|
* A
* B
* C
* D
* E
* F
}}

produces:

  • A
  • B
  • C
  • D
  • E
  • F