Template:Language: Difference between revisions
Jump to navigation
Jump to search
(swapping language and languages templates as per mediwikirecovery plan) |
(edited info about usage) |
||
Line 4: | Line 4: | ||
<tr valign="top" style="background: #EEF3E2;"> | <tr valign="top" style="background: #EEF3E2;"> | ||
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">'''[[Project:Language policy|Languages]]:''' </td><td style="padding: 1px 1em 0; background: #F6F9ED;"> | <td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">'''[[Project:Language policy|Languages]]:''' </td><td style="padding: 1px 1em 0; background: #F6F9ED;"> | ||
[[ | [[{{NAMESPACE}}:{{BASEPAGENAME}}/de|Deutsch]] • | ||
[[ | [[{{NAMESPACE}}:{{BASEPAGENAME}}/es|Español]] • | ||
[[ | [[{{NAMESPACE}}:{{BASEPAGENAME}}/fr|Français]] • | ||
[[ | [[{{NAMESPACE}}:{{BASEPAGENAME}}/he|עברית]] • | ||
[[ | [[{{NAMESPACE}}:{{BASEPAGENAME}}/it|Italiano]] • | ||
[[ | [[{{NAMESPACE}}:{{BASEPAGENAME}}/nl|Nederlands]] • | ||
[[ | [[{{NAMESPACE}}:{{BASEPAGENAME}}/pl|Polski]] • | ||
[[ | [[{{NAMESPACE}}:{{BASEPAGENAME}}/pt|Português]] • | ||
[[ | [[{{NAMESPACE}}:{{BASEPAGENAME}}/ru|Русский]] • | ||
[[ | [[{{NAMESPACE}}:{{BASEPAGENAME}}/zh-hant|中文(繁體)]] | ||
</td></tr></table></div><br/></onlyinclude> | </td></tr></table></div><br/></onlyinclude> | ||
== Syntax == | == Syntax == | ||
<nowiki>{{ | <nowiki>{{Language}}</nowiki> | ||
* '''PageName''' (optional) - the name of the page to display language links for. If omitted then the English version of the current page is used. This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on [[MediaWiki/fr]] you would need to use <code><nowiki>{{Languages|MediaWiki}}</nowiki></code> and not <code><nowiki>{{Languages|MediaWiki/fr}}</nowiki></code>). | * '''PageName''' (optional) - the name of the page to display language links for. If omitted then the English version of the current page is used. This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on [[MediaWiki/fr]] you would need to use <code><nowiki>{{Languages|MediaWiki}}</nowiki></code> and not <code><nowiki>{{Languages|MediaWiki/fr}}</nowiki></code>). | ||
Line 23: | Line 23: | ||
== Usage == | == Usage == | ||
The template should only be placed on pages that exist in more than one language | The template should only be placed on english pages that exist in more than one language. The the language'''s''' template should be used on each translation of the page and should be placed in the same location on all pages. | ||
For example, on the Main Page you would include the text <code><nowiki>{{Language}}</nowiki></code>, on [[Main Page]] itself, and on each translation of the page you would use the template <code><nowiki>{{Languages|Main Page}}</nowiki></code> | |||
For example, on the Main Page you would include the text <code><nowiki>{{ | |||
See [[Project:Language policy]] for further details about translating pages. | See [[Project:Language policy]] for further details about translating pages. | ||
Revision as of 23:42, 18 July 2009
Template
Languages: |
Deutsch • Español • Français • עברית • Italiano • Nederlands • Polski • Português • Русский • 中文(繁體) |
Syntax
{{Language}}
- PageName (optional) - the name of the page to display language links for. If omitted then the English version of the current page is used. This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on MediaWiki/fr you would need to use
{{Languages|MediaWiki}}
and not{{Languages|MediaWiki/fr}}
).
Usage
The template should only be placed on english pages that exist in more than one language. The the languages template should be used on each translation of the page and should be placed in the same location on all pages.
For example, on the Main Page you would include the text {{Language}}
, on Main Page itself, and on each translation of the page you would use the template {{Languages|Main Page}}
See Project:Language policy for further details about translating pages.