Template: LanguageNativeLink

From LibrePlanet
Jump to: navigation, search
m (fixing...)
m (Added a warning about editing this template)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the &quot;LanguageNativeLink&quot; sub-template. Edit the page to see the template text.
+
This is the &quot;'''LanguageNativeLink'''&quot; template. Edit the page to see the template text.
 +
<!--
 +
Coded by: alexus <http://libreplanet.org/wiki/User:Alexus>
 +
Revision: 2.0
 +
Date:    25/01/2011
 +
-->
  
Rev. 1.1 - 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 sub-template is designed to simplify [[Template:Languages]], by allowing a way to automatically generate formatted native language code links.
+
'''''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. Please, '''do not edit''' if you are not REALLY sure about what you are doing.
  
''IMPORTANT NOTE'' - This template should not be used anywhere except in the [[Template:Languages]] template. This sub-template doesn't display properly when not included. Please see [[Template:Languages]] for the complete version.
+
This template calls:
 +
* the &quot;LanguageNative&quot; template
 +
 
 +
'''Usage'''
 +
 
 +
It should be called in the following format:
 +
<pre>
 +
{{LanguageNativeLink|master page=<MasterPage>|language=<LangCode>}}
 +
</pre>
 +
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
 
</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>

Latest revision as of 15:04, 8 September 2011

This is the "LanguageNativeLink" 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. Please, do not edit if you are not REALLY sure about what you are doing.

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