Difference between revisions of "Template:Languages-spoken"

From Second Life Wiki
Jump to navigation Jump to search
(→‎Usage: added more info on language code usage)
(removed requirement to include name, copied code from llEmployee)
Line 1: Line 1:
<includeonly>
<includeonly>
{{
{{
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.
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.



Revision as of 11:04, 16 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:

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.