Template:Columnlist: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
mNo edit summary
Derik (talk | contribs)
No edit summary
Line 1: Line 1:
<noinclude><tt><pre><nowiki>{{Collumnlist|2|
<noinclude><tt><pre><nowiki>{{columnlist|2|
* Dasher
* Dasher
* Dancer
* Dancer
Line 10: Line 10:
}}</nowiki></pre></tt>
}}</nowiki></pre></tt>


[3a]
{{columnlist|2|
{{collumnlist|colwidth=10em|
* Dasher
* Dasher
* Dancer
* Dancer
Line 20: Line 19:
* Donner
* Donner
* Blitzen
* Blitzen
}}[3b]
}}


'''<tt><nowiki>{{columnlist}}</nowiki></tt>''' or '''<tt><nowiki>{{Collist}}</nowiki></tt>''' is used to make long lists display in a multi-column format.  If the first paremeter is a number, the list will display in that ''fixed number'' of variable-width columns.  (If the first parameter is not set, the list displays normally.)


</noinclude><includeonly>{{ #switch: {{{content|ʁ}}}
An optional parameter '''<tt>colwidth=30em</tt>''' can be set to make the list display in a ''variable number'' of fixed-width columns.  ('''em''', '''px''', ex, in, cm, mm, pt, pc)  As of this writing {{now|12:07, 7 September 2007 (UTC)}} this option may not work on  non-Geko-based browsers.  ('''Read:''' IE before v7.)  It should be used sparingly until widely supported.
| ʁ = [a]{{ #if: {{#ifexpr: {{{1}}} }} | {{Collumnlist/Vomitorium | content={{{1|}}} | colwidth={{{colwidth|}}} }} | {{Collumnlist/Vomitorium | colqty={{{1}}} | content={{{2|}}} }} }}
 
| {{Collumnlist/Vomitorium|content={{{content|}}}|colqty={{{colqty|1}}}|colwidth={{{colwidth|10em}}}}}
[[Category: Templates]]
}}
</noinclude><includeonly>{{ #if: {{#ifexpr: {{{1}}} }}
</includeonly>
| {{Columnlist/Vomitorium | content={{{1|}}} | colwidth={{{colwidth|}}} }} <!--If {{{1}}} is *not* a number, send it to the Vomitorium as displayable content, and send the colwidth parameter, if it's set.-->
| {{Columnlist/Vomitorium | colqty={{{1}}} | content={{{2|}}} }} <!--If {{{1}}} is a number, make that the number of collumns and send {{{2}}} as displayable content-->
}}</includeonly>

Revision as of 12:07, 7 September 2007

{{columnlist|2|
* Dasher
* Dancer
* Prancer
* Vixen
* Comet
* Cupid
* Donner
* Blitzen
}}
  • Dasher
  • Dancer
  • Prancer
  • Vixen
  • Comet
  • Cupid
  • Donner
  • Blitzen

{{columnlist}} or {{Collist}} is used to make long lists display in a multi-column format. If the first paremeter is a number, the list will display in that fixed number of variable-width columns. (If the first parameter is not set, the list displays normally.)

An optional parameter colwidth=30em can be set to make the list display in a variable number of fixed-width columns. (em, px, ex, in, cm, mm, pt, pc) As of this writing (Sep-07-07) this option may not work on non-Geko-based browsers. (Read: IE before v7.) It should be used sparingly until widely supported.