Template:LanguageSelector/link/doc

From "PTTLink Wiki"
Jump to navigation Jump to search

Displays a link to the current page in displayed in another specified language.

Usage

{{LanguageSelector/link |1= |2= |3= |action= }}

Template parameters

ParameterDescriptionDefaultStatus
1language code, required to display any actual linkemptyoptional
2what to display within the link:
  • code : display only the language code
  • yes : display the language name and the language icon (if any)
  • only : display only the language icon
  • otherwise : display only the language name
emptyoptional
3icon file name (required when parameter 2 is yes or only)emptyoptional
actionoptional action (such as "edit") to include in the target URL. Passed through to {{UselangLink}}emptyoptional

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

Relies on:
{{UselangLink}}

Examples

Code Renders as
"{{LanguageSelector/link|fr}}" "français"
"{{LanguageSelector/link|fr|code}}" "[fr]"
"{{LanguageSelector/link|fr|yes|}}" "français"
"{{LanguageSelector/link|fr|only|}}" "[fr]"
"{{LanguageSelector/link}}" ""

Warning: Default sort key "LanguageSelector/link" overrides earlier default sort key "LanguageSelector/link/doc".