Template: LanguageOtherMsg

From LibrePlanet
Jump to: navigation, search
m (fixing...)
(revision 2.0)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the &quot;Languages&quot; template. Edit the page to see the template text.
+
This is the &quot;'''LanguageOtherMsg'''&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 localized translations for the "In other languages" message.
  
This template shows the available translations of a page. Only works for the "original" page (master page) and its translations which include this template itself.
+
'''''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 be included, either in the "original" page (master page) and in all its translations, ONLY IF almost one translation of the original page really exist in the wiki.
+
'''''Note''''' - The includet cases are all poached [http://translatewiki.net/w/i.php?title=Special%3ATranslations&message=otherlanguages&namespace=8 here] (from translatewiki.net).
  
''NOTE'' - The cases are all poached [http://translatewiki.net/w/i.php?title=Special%3ATranslations&message=otherlanguages&namespace=8 here] from translatewiki.net.
+
'''Usage'''
 
 
'''Usage''':
 
  
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{Languages|master page=MasterPage|language=Code}}
+
{{LanguageOtherMsg|<LangCode>}}
 
</pre>
 
</pre>
 
where:
 
where:
* 'MasterPage' is the "original" page
+
* <LangCode> is the (2-digit lowercase) language code (ISO 639-1) of the language to translate to the "In other languages:" message.
* 'Code' is the locale (ISO 639-1) for the language used for the content of the page in which the template has being included (either if the "original" or a translation page)
 
  
'''Example''':
+
By default it returns the string "In other languages".
 
 
If the "original" page 'MyPage' is written in English (as more often is) and it has a Italian translation at the page 'MyPage.it", then:
 
* in 'MyPage', include this:
 
<pre>
 
{{Languages|master page=MyPage|language=en}}
 
</pre>
 
* in 'MyPage.it', include this:
 
<pre>
 
{{Languages|master page=MyPage|language=it}}
 
</pre>
 
 
</noinclude><onlyinclude>{{#switch:{{{1}}}
 
</noinclude><onlyinclude>{{#switch:{{{1}}}
 
|ab=Абызшәақәа
 
|ab=Абызшәақәа

Revision as of 15:51, 25 January 2011

This is the "LanguageOtherMsg" 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 localized translations for the "In other languages" message.

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.

Note - The includet cases are all poached here (from translatewiki.net).

Usage

It should be called in the following format:

{{LanguageOtherMsg|<LangCode>}}

where:

  • <LangCode> is the (2-digit lowercase) language code (ISO 639-1) of the language to translate to the "In other languages:" message.

By default it returns the string "In other languages". In other languages