Template: LanguageNativeLink
(revision 2.0) |
m (fixed errors displaying template infos) |
||
Line 2: | Line 2: | ||
This is the "'''LanguageNativeLink'''" sub-template. Edit the page to see the template text. | This is the "'''LanguageNativeLink'''" sub-template. Edit the page to see the template text. | ||
<!-- | <!-- | ||
− | |||
Coded by: alexus <http://libreplanet.org/wiki/User:Alexus> | Coded by: alexus <http://libreplanet.org/wiki/User:Alexus> | ||
− | |||
Revision: 2.0 | Revision: 2.0 | ||
− | |||
Date: 25/01/2011 | Date: 25/01/2011 | ||
− | |||
--> | --> | ||
− | |||
− | |||
'''Description''' | '''Description''' | ||
− | |||
This template is designed to be called as a sub-template from [[Template:Languages]], to return formatted native language code links to the translations of a "original" master page. | This template is designed to be called as a sub-template from [[Template:Languages]], to return formatted native language code links to the translations of a "original" master page. | ||
− | |||
'''''Important note''''' - This template should not be used anywhere except in [[Template:Languages]]. It doesn't display properly when not included. Please see [[Template:Languages]] for the complete version. | '''''Important note''''' - This template should not be used anywhere except in [[Template:Languages]]. It doesn't display properly when not included. Please see [[Template:Languages]] for the complete version. | ||
This template calls: | This template calls: | ||
− | |||
* the "LanguageNative" template | * the "LanguageNative" template | ||
− | |||
'''Usage''' | '''Usage''' | ||
− | |||
− | |||
It should be called in the following format: | It should be called in the following format: | ||
− | |||
<pre> | <pre> | ||
− | |||
{{LanguageNativeLink|master page=<MasterPage>|language=<LangCode>}} | {{LanguageNativeLink|master page=<MasterPage>|language=<LangCode>}} | ||
− | |||
</pre> | </pre> | ||
− | |||
where: | where: | ||
− | + | * <WikiPage> is the page url to link | |
− | * <WikiPage> is the page url | ||
− | |||
* <LangCode> is the (2-digit lowercase) language code (ISO 639-1) of the native language to display as the link | * <LangCode> is the (2-digit lowercase) language code (ISO 639-1) of the native language to display as the link | ||
</noinclude><includeonly><span lang="{{lc:{{{2}}}}}" xml:lang="{{lc:{{{2}}}}}">[[{{{1}}}|{{LanguageNative|{{lc:{{{2}}}}}}}]]</span></includeonly> | </noinclude><includeonly><span lang="{{lc:{{{2}}}}}" xml:lang="{{lc:{{{2}}}}}">[[{{{1}}}|{{LanguageNative|{{lc:{{{2}}}}}}}]]</span></includeonly> |
Revision as of 17:04, 25 January 2011
This is the "LanguageNativeLink" sub-template. Edit the page to see the template text.
Description
This template is designed to be called as a sub-template from Template:Languages, to return formatted native language code links to the translations of a "original" master page.
Important note - This template should not be used anywhere except in Template:Languages. It doesn't display properly when not included. Please see Template:Languages for the complete version.
This template calls:
- the "LanguageNative" template
Usage
It should be called in the following format:
{{LanguageNativeLink|master page=<MasterPage>|language=<LangCode>}}
where:
- <WikiPage> is the page url to link
- <LangCode> is the (2-digit lowercase) language code (ISO 639-1) of the native language to display as the link