Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K 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...
 
No edit summary
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>[{{fullurl:{{FULLPAGENAME}}|uselang={{{1}}}}} {{{text|{{#language:{{{1}}}}}}}}]</onlyinclude>
{{#if: {{{bare|}}}
 
| {{fullurl:{{FULLPAGENAME}}|uselang={{lc:{{{1|}}}}}{{#if: {{{action|}}}
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.
  | &amp;{{{action|}}}
 
  }}}}
The text of the link defaults to the language's [[w:autonym|autonym]], and can be replaced with the optional named parameter {{par|text}}
| <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|uselang={{lc:{{{1}}}}}}}{{#if: {{{action|}}}
 
  | &amp;{{{action|}}}
== Examples ==
  }} <bdi {{#if: {{{text|}}}|| lang="{{lc:{{{1|}}}}}" }} title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}">{{#if: {{{text|}}}
* {{tlc|UselangLink|ar}} yields {{UselangLink|ar}}
  | {{{text|}}}
* {{tlc|UselangLink|wol|Wolof}} yields {{UselangLink|wol|Wolof}}
  | {{#language:{{lc:{{{1|}}}}}}}
* {{tlc|UselangLink|INVALID}} yields {{UselangLink|INVALID}}  
  }}</bdi>]</span>
 
}}<noinclude>{{Documentation}}</noinclude>
[[category:helper templates]]
[[category:internationalization templates]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.