Difference between revisions of "Template:Columns-list"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Improve doc)
 
(2 intermediate revisions by 2 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>
 
{{see also|Template:Columns}}
 
{{see also|Template:Columns}}
== Usage ==
+
{{Wikipedia doc}}
* 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.
+
{{Doc begin}}
  
=== Example ===
+
Splits text into a number of columns as defined by the first parameter. Used to make long lists of
<pre><nowiki>
+
 
 +
<pre>
 
{{Columns-list|2|
 
{{Columns-list|2|
* Lorem ipsum dolor sit amet.
+
* A
* Lorem ipsum dolor sit amet.
+
* B
* Lorem ipsum dolor sit amet.
+
* C
* Lorem ipsum dolor sit amet.
+
* D
* Lorem ipsum dolor sit amet.
+
* E
* Lorem ipsum dolor sit amet.
+
* F
* Lorem ipsum dolor sit amet.
+
}}</pre>
* Lorem ipsum dolor sit amet.
+
produces:
* Lorem ipsum dolor sit amet.
 
* Lorem ipsum dolor sit amet.
 
* Lorem ipsum dolor sit amet.
 
* Lorem ipsum dolor sit amet.
 
}}</nowiki></pre>
 
... produces:
 
  
 
{{Columns-list|2|
 
{{Columns-list|2|
* Lorem ipsum dolor sit amet.
+
* A
* Lorem ipsum dolor sit amet.
+
* B
* Lorem ipsum dolor sit amet.
+
* C
* Lorem ipsum dolor sit amet.
+
* D
* Lorem ipsum dolor sit amet.
+
* E
* Lorem ipsum dolor sit amet.
+
* F
* Lorem ipsum dolor sit amet.
 
* Lorem ipsum dolor sit amet.
 
* Lorem ipsum dolor sit amet.
 
* Lorem ipsum dolor sit amet.
 
* Lorem ipsum dolor sit amet.
 
* Lorem ipsum dolor sit amet.
 
 
}}
 
}}
 
+
[[Category:Formatting templates|Columns-list]]
[[Category:Formatting templates]]
 
 
</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