Template:LanguageSelector/switch

Матеріал з "PTTLink Wiki"
Перейти до навігації Перейти до пошуку
Документація шаблонуview · редагувати · історія · очистити кеш ]

Selects a default icon.

Usage

{{LanguageSelector/switch |1= |2= |action= }}

Параметри шаблону

ПараметрОписЗа замовчуваннямСтатус
1language codeemptyобов'язковий
2determines what is displayed
  • yes: icons and text
  • only: only icons, no text
  • code: English language codes
  • anything else: only text, no icons
codeобов'язковий
actionis passed through to {{LanguageSelector/link}}, and ultimately to {{UselangLink}}.emptyнеобов'язковий

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:
{{LanguageSelector/link}}

Examples

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