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

Template page
m beta documentation (should use template)
 
m see also +; header
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
|i18n-method=
|i18n-method=
|i18n-desc=
|i18n-desc=
|seealso=
|seealso=* {{tl|multilingual link}} – choose link to Wikipedia article in the user interface language
|setscats=
|setscats=
|lines=
|lines=
Line 20: Line 20:
|relieson=
|relieson=
}}
}}
== Description ==
Takes a mandatory unnamed parameter containing a [[m:List of Wikipedias|language code]].
Takes a mandatory unnamed parameter containing a [[m:List of Wikipedias|language code]].


Line 35: Line 36:
* {{tlc|UselangLink|2=ja|3=bare=yes}} yields {{UselangLink|ja|bare=yes}}
* {{tlc|UselangLink|2=ja|3=bare=yes}} yields {{UselangLink|ja|bare=yes}}
* {{tlc|UselangLink|INVALID}} yields {{UselangLink|INVALID}}
* {{tlc|UselangLink|INVALID}} yields {{UselangLink|INVALID}}
* {{tlc|UselangLink|2=ja|3=bare=yes|4=action=edit}} yields {{UselangLink|ja|bare=yes|action=action=edit}}
* {{tlc|UselangLink|2=ja|3=bare=yes|4=action=action=edit}} yields {{UselangLink|ja|bare=yes|action=action=edit}}
* {{tlc|UselangLink|2=ja|3=bare=yes|4=action=edit}} yields {{UselangLink|ja|bare=yes|action=action=edit&section=1}}
* {{tlc|UselangLink|2=ja|3=bare=yes|4=action=action=edit}} yields {{UselangLink|ja|bare=yes|action=action=edit&section=1}}
* {{tlc|UselangLink|2=ja|3=bare=yes|4=action=edit}} yields {{UselangLink|ja|bare=yes|action=action=history}}
* {{tlc|UselangLink|2=ja|3=bare=yes|4=action=action=edit}} yields {{UselangLink|ja|bare=yes|action=action=history}}


{{DEFAULTSORT:UselangLink}}
{{DEFAULTSORT:UselangLink}}

Latest revision as of 16:43, 25 January 2024

Returns a link to the corresponding language version of the page it's used on.

Usage

{{UselangLink/doc |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1emptyoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

See also

Description

Takes a mandatory unnamed parameter containing a language code.

The text of the link defaults to the language's autonym, and the optional named parameter |text= can be used to replaced it.

If the dummy parameter |bare= is present, only the target link will be returned.

The content of the optional named parameter |action= will be appended to the URL with a leading "&".

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

Examples


Cookies help us deliver our services. By using our services, you agree to our use of cookies.