Azaret' User page
Citizen Page · User Page · Sandbox · Translations · Project · eReplicants · Talk Page · Contributions · \(^o^)/ Hall of Fame \(^o^)/
Azaret | |
This article is part of the series: | |
eRepublik | |
Wiki | |
|
How do a multi-language template
This little text for explain how create a multi-language template. There is 3 mandatory part for it, the main template, the core and the English version. For this example, we want to make this template : {{MyMultiLangTemplate}}
The main template
This page will be with the MyMultiLangTemplate name.
<noinclude>{{LangMenu|Template:MyMultiLangTemplate}}</noinclude> {{MyMultiLangTemplate/{{TemplateLang|MyMultiLangTemplate}}}} <noinclude> ==Usage== <pre>{{MyMultiLangTemplate}}</pre> </noinclude>
The core template
This page will be the core of your template, named MyMultiLangTemplate/Core. There you'll put all your code. Write your code like you want it show.
'''My example''' : [[User:Azaret|My page]]
Now, you must change text to translate by variable. You can put all Name you want for variable, but put the text is better.
'''{{{My example|My example}}}''' : [[User:Azaret|{{{My page|My page}}}]]
Then you can change links for that, in translated template, the link automatically to translated page. with that : {{#ifeq: {{SUBPAGENAME}}|{{BASEPAGENAME}}||/{{SUBPAGENAME}}}}. just put it after the link.
'''{{{My example|My example}}}''' : [[User:Azaret{{#ifeq: {{SUBPAGENAME}}|{{BASEPAGENAME}}||/{{SUBPAGENAME}}}}|{{{My page|My page}}}]]
And that all, you have your core template ready.
The English template
It's simple, you must use there the core template, like that :
{{MyMultiLangTemplate/Core}}.
For other translated page, you must set variable (if your core is in english, else you must set them for the english version too). Just set variable as variable of template. For example for MyMultiLangTemplate/Espanol :
{{MyMultiLangTemplate/Core|My example=Mi ejemplo|My page=Mi pagina}}
Info
Biography
According to the eRepublik Wiki, I made my first edit here on the 22 August 2009, 10:51.
I am also the main supporter for the countries France and Paraguay.
Citizen Page - Azaret
This user page template was taken from the colleague Rowan Quigley. I hope he doesn't mind.
Userboxes
This user lives in the Paraguay. (In eRepublik). |
This user uses French (Français). |