Template:Multilingual link/doc: Difference between revisions
Template page
More actions
added |
modified |
||
| Line 1: | Line 1: | ||
This template allows to create links to different language versions of same Wikipedia article, and only one link will be displayed. | This template allows to create links to different language versions of same Wikipedia article, and only one link will be displayed. | ||
{{intricate template}} | |||
== Usage == | == Usage == | ||
| Line 72: | Line 73: | ||
|ja=ΜCOMシリーズ<br> | |ja=ΜCOMシリーズ<br> | ||
|title=NEC µPD780C<br> | |title=NEC µPD780C<br> | ||
<nowiki>}}</nowiki></code><includeonly> | <nowiki>}}</nowiki></code> | ||
== Syntax helper == | |||
The wikitext to call the template {{tlc|multilingual link}} can be long (sometimes hundreds of lines), writing such text is a tedious task. The Perl script [[Template:Multilingual link/Syntax helper|''Syntax helper'']] creates such wikitext for you. For example, if you type <code style="font-family: monospace; font-size: 110%; white-space: nowrap;">./syntaxhelper.perl en:Saint Petersburg State Agrarian University</code> or <code style="font-family: monospace; font-size: 110%; white-space: nowrap;">./syntaxhelper.perl Q1628690</code>, it returns the wikitext | |||
<br><code style="font-family: monospace; font-size: 80%; white-space: nowrap; margin: 1em auto;">{{multilingual link | |||
<br>|be=Санкт-Пецярбургскі дзяржаўны аграрны ўніверсітэт | |||
<br>|en=Saint Petersburg State Agrarian University | |||
<br>|eo=Sankt-Peterburga Ŝtata Agrikultura Universitato | |||
<br>|et=Peterburi Riiklik Agraarülikool | |||
<br>|fr=Université agraire d'État de Saint-Pétersbourg | |||
<br>|ru=Санкт-Петербургский государственный аграрный университет | |||
<br>}}</code><br> | |||
and you just need to copy and past that wikitext. See the [[Template:Multilingual link/Syntax helper|''Syntax helper'']].<includeonly> | |||
[[Category:Interwiki link templates]] | [[Category:Interwiki link templates]] | ||
</includeonly> | </includeonly> | ||