Template:List

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Usage[edit]

The result is dependant by default on page content language:

  • "{{List}}" returns "".
  • "{{List|1}}" returns "1".
  • "{{List|1|2}}" returns "1 and 2".
  • "{{List|1|2|3}}" returns "1, 2, and 3".
  • "{{List|1|2|3|4}}" returns "1, 2, 3, and 4".

You can set it to the current user language (currently for you, it is “en”):

  • "{{List|uselang={{uselang}}}}" returns "".
  • "{{List|uselang={{uselang}}|1}}" returns "1".
  • "{{List|uselang={{uselang}}|1|2}}" returns "1 and 2".
  • "{{List|uselang={{uselang}}|1|2|3}}" returns "1, 2, and 3".
  • "{{List|uselang={{uselang}}|1|2|3|4}}" returns "1, 2, 3, and 4".

You can also set it to a specific language (such as “zh” for Chinese):

  • "{{List|uselang=zh}}" returns "".
  • "{{List|uselang=zh|1}}" returns "1".
  • "{{List|uselang=zh|1|2}}" returns "1和2".
  • "{{List|uselang=zh|1|2|3}}" returns "1、2和3".
  • "{{List|uselang=zh|1|2|3|4}}" returns "1、2、3和4".

Dependendy[edit]