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