Template:LanguageSelector/switch

出自"PTTLink Wiki"
跳至導覽 跳至搜尋
模板文件檢視 · 編輯 · 歷史 · 清除快取 ]

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}}" ""