Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Multilingual link/doc: Difference between revisions

Template page
created
 
added
Line 2: Line 2:


== Usage ==
== Usage ==
=== Main parameters ===
Just use ISO codes of languages as parameter names, and article names as parameter values.
Just use ISO codes of languages as parameter names, and article names as parameter values.


Line 19: Line 20:
|vi=Lưu lượng truy cập<br>
|vi=Lưu lượng truy cập<br>
<nowiki>}}</nowiki></code><br>and the template will display just one link. Users with interface in one of the mentioned languages (Arabic, English, Esperanto, French, Galician, Greek, Korean, Polish, Russian, Slovenian, Ukrainian, Uzbek, Vietnamese) will see the link to the article in their language; users with interface in some other language will see the English link.
<nowiki>}}</nowiki></code><br>and the template will display just one link. Users with interface in one of the mentioned languages (Arabic, English, Esperanto, French, Galician, Greek, Korean, Polish, Russian, Slovenian, Ukrainian, Uzbek, Vietnamese) will see the link to the article in their language; users with interface in some other language will see the English link.
=== Default language ===
When default language is not indicated, default language is English (''en'') if it is present.


The code<br><code style="font: 80% monospace;"><nowiki>{{multilingual link</nowiki><br>
The code<br><code style="font: 80% monospace;"><nowiki>{{multilingual link</nowiki><br>
Line 31: Line 35:
|ru=Ментелли, Давид<br>
|ru=Ментелли, Давид<br>
|default=eo<br>
|default=eo<br>
<nowiki>}}</nowiki></code><br>and other users (with interface not in Esperanto, Hungarian or Russian) will see the link in Esperanto. The value of the parameter ''default'' must be just ISO code, and version in the indicated language must be provided. If you use the parameter ''default'' but do not provide the name of article in the language of some user neither in the indicated default language (for examle, you write <code style="font: 80% monospace;">|default=fr</code> but do not fill the parameter ''fr''), the template will display nothing for that user.
<nowiki>}}</nowiki></code><br>and other users (with interface not in Esperanto, Hungarian or Russian) will see the link in Esperanto. The value of the parameter ''default'' must be just ISO code, and version in the indicated language must be provided. If you use the parameter ''default'' but do not provide the name of article in the language of some user neither in the indicated default language (for example, you write <code style="font: 80% monospace;">|default=fr</code> but do not fill the parameter ''fr''), the template will display nothing for that user.


If you do not use the parameter ''default'', be sure to have an English version (the parameter ''en''). If the article has not an English version, be sure to use the parameter ''default''. And if you use the parameter ''default'', be sure to have also the parameter for the indicated default language (for example, if <code  style="font: 80% monospace;">|default=de</code>, the parameter ''de'' must be present).<includeonly>
If you do not use the parameter ''default'', be sure to have an English version (the parameter ''en''). If the article has not an English version, be sure to use the parameter ''default''. And if you use the parameter ''default'', be sure to have also the parameter for the indicated default language (for example, if you write <code  style="font: 80% monospace;">|default=de</code>, the parameter ''de'' must be present).
 
If both parameters ''en'' and ''default'' are present, the parameter ''default'' takes precedence. For example, if you write<br><code style="font: 80% monospace;"><nowiki>{{multilingual link</nowiki><br>
|en=MHSnet<br>
|eo=.oz<br>
|fr=.oz<br>
|ru=.oz<br>
|uk=.oz<br>
<nowiki>}}</nowiki></code><br>than users with interface in English, Esperanto, French, Russian or Ukrainian will see the link in their interface language, and all other users will see the link in English. But if you write<br><code style="font: 80% monospace;"><nowiki>{{multilingual link</nowiki><br>
|en=MHSnet<br>
|eo=.oz<br>
|fr=.oz<br>
|ru=.oz<br>
|uk=.oz<br>
|default=eo<br>
<nowiki>}}</nowiki></code><br>than users with interface in English, Esperanto, French, Russian or Ukrainian will see the link in their interface language, and all other users will see the link in Esperanto.<includeonly>


[[Category:Interwiki link templates]]
[[Category:Interwiki link templates]]
</includeonly>
</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.