For faster navigation, this Iframe is preloading the Wikiwand page for Template:Lan.

Template:Lan

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

Lan模板可以在普通繁简转换功能(-{zh:; zh-hans:; zh-hant:; zh-cn:;……}-)无法发挥作用时替代其进行转换,比如图片的转换(建议使用((Image)))、提示文字的转换等。然而,Lan模板是按界面语言而非语言变种转换的,不能通过页面顶部的用字标签改变用字。也就是说,在可以使用-{}-进行转换时,请不要使用Lan模板。

Lan模板的实现机理与-{}-的方式完全不同。Lan模板通过调取MediaWiki:Conversionname的值在zh、zh-hans、zh-hant、zh-cn、zh-tw、zh-hk、zh-sg之间的自动切换,来实现内容的转换。因此,Lan模板支持代码的转换,而这一功能是-{}-所不具备的。

用法

((lan
|zh=原文
|zh-hans=简体中文
|zh-hant=繁體中文
|zh-cn=大陆
|zh-tw=台灣
|zh-hk=港澳
|zh-sg=马新
))

其他环境

JavaScript小工具应该使用MediaWiki:Gadget-HanAssist.js中的mw.libs.HanAssist / require( 'ext.gadget.HanAssist' )

在元維基、維基數據及MediaWiki由於命名問題而改命名為meta:Template:Conversion-zhd:Template:Conversion-zhmw:Template:Conversion-zh

{{bottomLinkPreText}} {{bottomLinkText}}
Template:Lan
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?