Jump to content

Шаблон:Language table

Мавод аз Википедиа — донишномаи озод
Code Result
 {{Шаблон:User prog-0}}
prog-0This user does not know how to program.
Transclusions
 {{Шаблон:User prog-1}}
prog-1This user is a beginning programmer.
Transclusions
 {{Шаблон:User prog-2}}
prog-2This user is an intermediate programmer.
Transclusions
 {{Шаблон:User prog-3}}
prog-3This user is an advanced programmer.
Transclusions
 {{Шаблон:User prog-4}}
prog-4This user is an expert programmer.
Transclusions
 {{Шаблон:User prog-N}}
prog-NThis user thinks in bytecode and dreams of electric sheep.
Transclusions
 {{Шаблон:User prog}}
progThis user is a programmer.
Transclusions
Ҳуҷҷатгузорӣ

This template scans for all the language userboxes of a given language, and lists them in the standard table for showing userboxes, how to use them, and where they are used.

Note that to do this it uses 5 ParserFunctions each time it is invoked. This is painful on Wikipedia's servers. It also raises the practical issue that on large pages it may exceed the 500 ParserFunction limit. If this is an issue, look into using {{User:10nitro/usbl}} and {{User:10nitro/Userboxlist2}}.

This template was created for programming languages, so without a designated language, it defaults to "programming", however, it can be used for any language following the standard "Template:User language-x"

Usage

The syntax for using this template is rather simple:

{{Language table|language-abbreviation}}

Or, if the set uses an non-standard location (such as being in user-space), it is possible to have them located at "pathlanguage-x" by setting the path variable:

{{Language table|language-abbreviation|path=User:username/more path_}}

Note that if the location is "User:10nitro/User c", then the path must be "User:10nitro/User_", as the space at the end is required, but would be stripped if a literal space, rather than an underscore!

See also