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:UselangLink: Difference between revisions

Template page
it begins...
 
fixing documentation
Line 1: Line 1:
<onlyinclude>[{{fullurl:{{FULLPAGENAME}}|uselang={{{1}}}}} {{{text|{{#language:{{{1}}}}}}}}]</onlyinclude>
<onlyinclude>[{{fullurl:{{FULLPAGENAME}}|uselang={{{1}}}}} {{{text|{{#language:{{{1}}}}}}}}]</onlyinclude>


Takes a language code and returns a link to corresponding language version of the page it's used on. Uses only magic words, should work on any MediaWiki installation.
Takes a mandatory unnamed parameter containing a language code. Returns a link to the corresponding language version of the page it's used on.


The text of the link defaults to the language's [[w:autonym|autonym]], and can be replaced with the optional named parameter {{par|text}}
The text of the link defaults to the language's [[w:autonym|autonym]], and can be replaced with the optional named parameter {{code|1={{!}}text=}}
 
Uses only magic words, should work on any MediaWiki installation.


== Examples ==
== Examples ==
* {{tlc|UselangLink|ar}} yields {{UselangLink|ar}}
* {{tlc|UselangLink|ja}} yields {{UselangLink|ja}}
* {{tlc|UselangLink|wol|Wolof}} yields {{UselangLink|wol|Wolof}}
* {{tlc|UselangLink|ja|2=text=Japanese}} yields {{UselangLink|ja|text=Japanese}}
* {{tlc|UselangLink|INVALID}} yields {{UselangLink|INVALID}}  
* {{tlc|UselangLink|INVALID}} yields {{UselangLink|INVALID}}


[[category:helper templates]]
[[category:helper templates]]
[[category:internationalization templates]]
[[category:internationalization templates]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.