Difference between revisions of "Template:Lang"
m (Protected "Template:Lang": will soon have a lot of transclusions ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
|
(No difference)
|
Revision as of 07:38, 7 August 2010
Usage
The main purpose of this template is to retain consistency across multiple translated pages.
- Using
{{lang}}
will switch translations based on the value of{{SUBPAGENAME}}
.- e.g. in the article Soldier/de, the
{{SUBPAGENAME}}
is de so{{lang}}
will display the translations for German.
- e.g. in the article Soldier/de, the
- To define an English translation, you can use
{{lang|en=Welcome}}
or simply{{lang|Welcome}}
. - You can also force a particular language to display, overriding
{{SUBPAGENAME}}
.{{lang|force=pl}}
will force Polish to show, always.
- Example
{{Ambox | contents = {{ambox/message | 1 = {{lang|de=Sprache|ja=言語|pl=Język}} | 2 = {{lang|de=Willkommen|ja=Irashaimasu|pl=Witaj}} }} }}