Template:Columnlist: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
mNo edit summary
Derik (talk | contribs)
Correcting error in documentation, adding profanity.
Line 23: Line 23:
'''<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.)
'''<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.)


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 <sup>({{#time: M-d-y| 12:07, 7 September 2007 (UTC) }})</sup> this option may not work on  non-Geko-based browsers.  ('''Read:''' IE before v7.)  It should be used sparingly until widely supported.
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)


'''Technical note:''' This template references itself recursively, and a sub-template [[Template:Columnlist/Vomitorium]] as a balance of elegance and simplicity against wikiparser-induced profanity.
As of this writing<sup>({{#time: M-d-y| 12:29, 7 September 2007 (UTC) }})</sup>, this template does not work in Internet Explorer.  Fuck them.<ref>'Not work' in this case means they see the same list without the pretty columns.  The page does not break, it merely loosk better on real browsers.</ref>
 
:''For similar multicolumn display of long reference/footnote sections see: [[Template: reflist]].
 
 
<small>'''Technical note:''' This template references itself recursively, and a sub-template [[Template:Columnlist/Vomitorium]] as a balance of elegance and simplicity against wikiparser-induced profanity.</small>
 
==Footnotes==
<references/>
[[Category: Templates]]
[[Category: Templates]]
</noinclude><includeonly>{{ #if: {{#ifexpr: {{{1}}} }}
</noinclude><includeonly>{{ #if: {{#ifexpr: {{{1}}} }}

Revision as of 12:29, 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 template does not work in Internet Explorer. Fuck them.[1]

For similar multicolumn display of long reference/footnote sections see: Template: reflist.


Technical note: This template references itself recursively, and a sub-template Template:Columnlist/Vomitorium as a balance of elegance and simplicity against wikiparser-induced profanity.

Footnotes

  1. ↑ 'Not work' in this case means they see the same list without the pretty columns. The page does not break, it merely loosk better on real browsers.