• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Languages

  • Template
  • Talk
  • Language
  • Watch
  • Change
[[{{{1}}} language]]

Babel: [[Template:User {{{2}}}-0|0]] | [[Template:User {{{2}}}-1|1]] | [[Template:User {{{2}}}-2|2]] | [[Template:User {{{2}}}-3|3]] | [[Template:User {{{2}}}-4|4]] | [[Template:User {{{2}}}|N]] | [[Template:User {{{2}}}-5|5]]

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

Contents

  • 1 Usage
    • 1.1 General
    • 1.2 Language void
    • 1.3 User space
    • 1.4 Different category
    • 1.5 Category sections
    • 1.6 Voiding the category
    • 1.7 Format
  • 2 See also

Usage

change

General

change

This template is to be placed in template documentation of user languages. It is intended primarily for userboxes (such as {{User en-ca-1}}), and it should not be placed on mainspace articles. It is written as (example for English):

{{Languages|English|en}}

You write only English (not language: the template writes that by itself).

Language void

change

For most languages, saying "language" after it is necessary to direct it straight to the language's mainspace page, but sometimes saying "language" directs it to a red link. To stop this problem put:

{{Languages|English|en|langvoid=}}

User space

change

Most language userboxes are in the template namespace. For those in user space, add the |userspace=yes parameter:

{{Languages|Southern American English|UBX/SoE|userspace=yes}}

Different category

change

This template automatically puts the template in its User template category, to redirect to a different User templates category do this, using Scottish English as an example:

{{Languages|Scottish English|en-sco|catalt=en}}

Category sections

change

By default the template categorizes templates like:

1
Template:User en-1

2
Template:User en-2

And so on, but if you wanted to replace these with different abbreviations such as:

c
Template:User en-ca-1
Template:User en-ca-2

e
Template:User en-1
Template:User en-2

Add |sections= with the abbreviated code, such as "ca" or "en", etc. Do not place the "-", at the end of "sections" as was done previously, this will mess up the sorting.

Voiding the category

change

Some templates, such as the blank series and other fictional languages, do not need to have their own category. To void the category completely, use this wikitext markup text:

{{Languages|Spoken|blank|catvoid=}}

Format

change

If all of these functions were used on one template they would look like this:

{{Languages|English|en|langvoid=|catvoid=|catalt=en|sections=us|#=N}}

Please note catalt, sections and # cannot exist if catvoid exists.

See also

change
  • {{Complang}}
  • {{Language table}}
The documentation on top is transcluded from Template:Languages/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://simple.wikipedia.org/w/index.php?title=Template:Languages&oldid=3066429"
Last edited on 27 September 2011, at 22:50

Languages

    • العربية
    • ܐܪܡܝܐ
    • অসমীয়া
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • Banjar
    • Беларуская
    • भोजपुरी
    • Dansk
    • Dolnoserbski
    • English
    • Esperanto
    • فارسی
    • Français
    • Հայերեն
    • Hornjoserbsce
    • Bahasa Hulontalo
    • Bahasa Indonesia
    • Jawa
    • Ikinyarwanda
    • Ikirundi
    • Kurdî
    • Македонски
    • Malagasy
    • മലയാളം
    • مصرى
    • ဘာသာမန်
    • Bahasa Melayu
    • Монгол
    • မြန်မာဘာသာ
    • नेपाली
    • नेपाल भाषा
    • 日本語
    • ଓଡ଼ିଆ
    • ਪੰਜਾਬੀ
    • پښتو
    • Português
    • Qaraqalpaqsha
    • Qırımtatarca
    • Română
    • Русиньскый
    • संस्कृतम्
    • Scots
    • Seeltersk
    • Setswana
    • سنڌي
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Sunda
    • Tagalog
    • தமிழ்
    • తెలుగు
    • Tetun
    • Basa Ugi
    • Українська
    • Tiếng Việt
    • 吴语
    • Yorùbá
    • 粵語
    • 中文
    • Betawi
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last changed on 27 September 2011, at 22:50.
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop