Template:Localized article: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New template to try to normalize localized articles interlinks look)
 
mNo edit summary
Line 1: Line 1:
<includeonly>[[{{{1}}}|{{{2}}}]] [[Image:{{#ifexist: Flag_{{{3}}}.png | Flag_{{{3}}}.png | Preferences-desktop-locale.png }}|{{#switch: {{{4}}}
<includeonly>[[{{{1}}}|{{{2}}}]] [[Image:{{#ifexist: Image:Flag_{{{3}}}.png | Flag_{{{3}}}.png | Preferences-desktop-locale.png }}|{{#switch: {{{4}}}
  <!-- Beginning of a caption text -->
  <!-- Beginning of a caption text -->
  | en = In {{#switch: {{{3}}}
  | en = In {{#switch: {{{3}}}
     <!-- Language names (these will be concatenated with the beginning of the caption text)-->
     <!-- Language names (these will be concatenated with the beginning of the caption text) -->
     | us = English
     | us = English
     | uk = English
     | uk = English
Line 21: Line 21:
     }}
     }}
  | Localized article
  | Localized article
}}|20px]]</includeonly>
}}|20px|link={{{1}}}]]</includeonly>
<noinclude>{{Template documentation|Use this template to add links to articles which are translated, and you want them to look as such. It adds a standard link with a flag which represents the language the article is in and a hover text explaining that in a certain language.|
<noinclude>{{Template documentation|Use this template to add links to articles which are translated, and you want them to look as such. It adds a standard link with a flag which represents the language the article is in and a hover text explaining that in a certain language.|
<nowiki>{{Localized article|Article title|Link text|Language the article is written in|Language the flag caption is written in}}</nowiki>
<nowiki>{{Localized article|Article title|Link text|Language the article is written in|Language the flag caption is written in}}</nowiki>

Revision as of 14:56, 23 July 2016

Applications-office.pngTemplate Documentation

Use this template to add links to articles which are translated, and you want them to look as such. It adds a standard link with a flag which represents the language the article is in and a hover text explaining that in a certain language.

Usage

{{Localized article|Article title|Link text|Language the article is written in|Language the flag caption is written in}}

  • Only the two first parameters are mandatory.
  • Language the article is written in can be us or uk (English), es (Spanish), fr (French) and de (German).
  • Language the flag caption is written in can be en (English) or es (Spanish).




If you want to add more languages and flags to the list, please do it! Just make sure you don't break the template and the flag style looks consistent.