Template:Multilingual link/doc: Difference between revisions
Template page
More actions
added |
added |
||
| Line 52: | Line 52: | ||
|uk=.oz<br> | |uk=.oz<br> | ||
|default=eo<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> | <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. | ||
=== Displayed titles === | |||
By default, visible text of link is article name. It can be changed with parameters, whose names consist of the word ''title'', space and ISO code of language. For example, if you write<br><code style="font: 80% monospace;"><nowiki>{{multilingual link</nowiki><br> | |||
|de=Scharfrichterhaus (Passau)<br> | |||
|en=Scharfrichterhaus<br> | |||
|zh=刽子手之家<br> | |||
<nowiki>}}</nowiki></code><br>than all users will see just article names, but if you write<br><code style="font: 80% monospace;"><nowiki>{{multilingual link</nowiki><br> | |||
|de=Scharfrichterhaus (Passau)|title de=Scharfrichterhaus<br> | |||
|en=Scharfrichterhaus<br> | |||
|zh=刽子手之家<br> | |||
<nowiki>}}</nowiki></code><br>than users with German language interface will see the title ''Scharfrichterhaus'' pointing to the article ''Scharfrichterhaus (Passau)''. Titles can be provided for many languages; for example, you can write<br><code style="font: 80% monospace;"><nowiki>{{multilingual link</nowiki><br> | |||
|de=The Octagon (Dunedin)|title de=The Octagon<br> | |||
|en=The Octagon, Dunedin|title en=The Octagon<br> | |||
|zh=八角广场 (但尼丁)|title zh=八角广场<br> | |||
<nowiki>}}</nowiki></code><br>Also, you can provide one universal title for all languages; for example:<br><code style="font: 80% monospace;"><nowiki>{{multilingual link</nowiki><br> | |||
|en=NEC μCOM series<br> | |||
|it=Serie NEC μCOM<br> | |||
|ja=ΜCOMシリーズ<br> | |||
|title=NEC µPD780C<br> | |||
<nowiki>}}</nowiki></code><includeonly> | |||
[[Category:Interwiki link templates]] | [[Category:Interwiki link templates]] | ||
</includeonly> | </includeonly> | ||