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
fixing documentation
helpful link
Line 5: Line 5:
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=}}
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.
Uses only [[mw:Help:Magic words|magic words]], should work on any MediaWiki installation.


== Examples ==
== Examples ==

Revision as of 13:55, 13 January 2010

{{{1}}}

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 autonym, and can be replaced with the optional named parameter |text=

Uses only magic words, should work on any MediaWiki installation.

Examples

  • {{UselangLink|ja}} yields 日本語
  • {{UselangLink|text=Japanese}} yields Japanese
  • {{UselangLink|INVALID}} yields invalid
Contents
Cookies help us deliver our services. By using our services, you agree to our use of cookies.