Difference between revisions of "Template:Languages-spoken"

From Second Life Wiki
Jump to navigation Jump to search
m (tweaky-tweaky)
Line 12: Line 12:


<div style="font-size:140%;"><code><pre><nowiki>{{languages-spoken
<div style="font-size:140%;"><code><pre><nowiki>{{languages-spoken
|name={{PAGENAME}}
|name={{blacksam}}
|type=Residents
|type=Residents
|en=*
|en=*
|fr=*
|fr=
|de=*
|de=*
|es=
|es=
|pt=
|pt=
|it=*
|it=
|ja=
|ja=
|nld=*
|}}</nowiki></pre></code></div>
|}}</nowiki></pre></code></div>



Revision as of 22:53, 12 October 2007

This template is deprecated in favour of Template:ISO_639-3/cat-speaking

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={{blacksam}}
|type=Residents
|en=*
|fr=
|de=*
|es=
|pt=
|it=
|ja=
|nld=*
|}}

The above example would add the article the code is placed on to the following categories:

The example would not add them to the following categories:

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.