跳转到内容
打开/关闭菜单
  • 8 条目
  • 75 文件
  • 7 用户
  • 3.7万 编辑
Neodyland Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Template:LanguageSelector/doc

模板页面

(本说明文件的该部分只有有限数量的语言版本。)

Displays a configurable set of links that switch the page it's used on to another language. It is intended to complement {{LangSwitch}}, but you might find previously unintended uses. ;)

用法

{{LanguageSelector |icons= |<unnamed parameters, numbered 2..40>= |notpiol= |action= }}

(本说明文件的该部分只有有限数量的语言版本。)

  • The switch only applies to the page the template is transcluded on, clicking other links will return you to the language set in your MediaWiki preferences. This does not generally apply to script calls, e. g. "hide/show" links, or controls for sortable tables or other embedded stuff.
  • The template can be used inline, it should not break any layout.

模板参数

参数描述默认值状态
iconsdetermines what is displayed
  • yes: icons and text
  • only: only icons, no text
  • code: English language codes
  • anything else: only text, no icons
yes可选
<unnamed parameters, numbered 2..40>A language code. If present, a link for the corresponding language will be produced. Up to 19 language codes can currently be specified, and will display in the order indicated by the parameter sequence. If no unnamed parameters are specified, all languages will be displayed in the default order.optional可选
notpioldummy parameter, if assigned any value, it will suppress the 'This page in other languages: ' textoptional可选
actionpassed through to {{UselangLink}}, read documentation there for further informationoptional可选

附加信息

本模板可以用于以下名字空间: 所有名字空间

本模板可以被以下用户组使用: 所有用户

使用的模板:

另见

(本说明文件的该部分只有有限数量的语言版本。)

Language resources

If you want to add languages, the following resources might be useful

Examples

CodeRendering on page
{{LanguageSelector|de|en|fr|invalid}}
{{LanguageSelector|de|en|fr|invalid|action=edit}}
{{LanguageSelector|de|en|fr|invalid|icons=code}}
{{LanguageSelector|de|en|fr|notpiol=1}}
{{LanguageSelector|de|en|fr|notpiol=1|icons=yes}}
{{LanguageSelector|de|en|fr|notpiol=1|icons=code}}
{{LanguageSelector|de|en|fr|notpiol=1|icons=only}}

There are more examples with the default full list of languages on Template:LanguageSelector/doc/examples.

(Dont put examples with all languages here at it would break the transclusion of the documentation subpage in the main template page).


我们为您提供服务需要使用Cookie。使用我们的服务即表示您同意我们使用Cookie。