Difference between revisions of "Template:Languages-spoken"
(removed requirement to include name, copied code from llEmployee) |
(→Usage: grumble grumble. I'll have to come back to this later to get around the problems with <pre> stylin.) |
||
Line 39: | Line 39: | ||
|fr=* | |fr=* | ||
|de=* | |de=* | ||
|es= | |es=* | ||
|pt= | |pt=* | ||
|it=* | |it=* | ||
|ja= | |ja=* | ||
|}}</nowiki></pre></code></div> | |}}</nowiki></pre></code></div> | ||
Revision as of 02:48, 28 January 2007
This template uses ISO 639-1 language codes to add a page to the list of Residents, Lindens or Volunteers that speak the language in question.
Usage
Unless you are adding this template to a page that isn't a user page, you will only need to copy & paste "{{PAGENAME}}" to be used as the value for the name variable.
To indicate that you speak a specific language, copy the ISO 639-1 for that language by referring to the Wikipedia's list of ISO 639-1 codes and use it in the manner shown below.
{{languages-spoken
|name={{PAGENAME}}
|type=Residents
|en=*
|fr=*
|de=*
|es=
|pt=
|it=*
|ja=
|}}
The above example would add the article the code is placed on to the following categories:
- Category:English speaking Residents
- Category:French speaking Residents
- Category:German speaking Residents
- Category:Italian speaking Residents
The example would not add them to the following categories:
- Category:Spanish speaking Residents
- Category:Portuguese speaking Residents
- Category:Japanese speaking Residents
This is because the ISO 639-1 codes for those languages- es, pt' and ja respectively- are not "activated" so to speak. In order to "activate" the language, one would have to set the language code to an asterisk, e.g.:
{{languages-spoken
|name={{PAGENAME}}
|type=Residents
|en=*
|fr=*
|de=*
|es=*
|pt=*
|it=*
|ja=*
|}}
The template has been coded this way to allow more flexibility for the order the category links appear on the article, and so other templates could use this template without having to use overly complex wiki-code.
Supported Types
The following values can be used for the type variable. At the current time, multiple types cannot be specified within one template block. To add yourself to multiple types, duplicate the list you entered for the first type, and alter the type value as desired.
Entering any other value will result in an error.