模板:CItem
更多语言
更多操作
||
|{{#ifexist: Template:CH/doc
|[] [編輯]
|[創建]
}}
}} {{#if:|{{{heading}}}|{{#ifeq:Template|Template||这个說明來自於本頁包含的Template:CH/doc。(編輯 | 歷史)
}}{{#switch: CItem |sandbox|testcases= |#default= {{#switch: Template |Template |User= {{#ifexist: Template:CItem/sandbox |这个模板有沙盒 ([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} 編輯]) {{#ifexist: Template:CItem/testcases |和 測試案例 ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} 編輯])}}供编辑者試驗。 |{{#ifexist: Template:CItem/testcases |这个模板有測試案例 ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} 編輯]) 供编辑者試驗。}} }}}}}}
{{#if:|{{{content}}}|{{#ifexist:Template:CH/doc | {{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
|semi
|autoconfirmed=semi
|administrator
|full
|sysop=indef
|move=move
|#default=indef}}
|move={{#ifeq:
{{#switch:{{#ifeq:citem/template|citem/template|undefined|{{#ifeq:citem|sandbox|sysop|undefined}}}}
|semi
|autoconfirmed=autoconfirmed
|administrator
|full
|sysop=sysop
|undefined=
|#default=}}
|sysop|yes|no
}}
|create={{#if:
{{#switch:{{#ifeq:citem/template|citem/template|undefined|{{#ifeq:citem|sandbox|sysop|undefined}}}}
|semi
|autoconfirmed=autoconfirmed
|administrator
|full
|sysop=sysop
|undefined=
|#default=}}
|yes|no
}}
|#default={{#if:
{{#switch:{{#ifeq:citem/template|citem/template|undefined|{{#ifeq:citem|sandbox|sysop|undefined}}}}
|semi
|autoconfirmed=autoconfirmed
|administrator
|full
|sysop=sysop
|undefined=
|#default=}}
|{{#ifeq:{{#switch:
|semi
|autoconfirmed=autoconfirmed
|administrator
|full
|sysop=sysop
|#default=}}
|{{#switch:{{#ifeq:citem/template|citem/template|undefined|{{#ifeq:citem|sandbox|sysop|undefined}}}}
|semi
|autoconfirmed=autoconfirmed
|administrator
|full
|sysop=sysop
|undefined=
|#default=}}
|no|yes
}}
|no}}
}}|yes|{{#ifeq:no|yes|
| {{
{{#switch:
{{#if:
|
| {{#ifeq:template|
| main
| {{#ifeq:template|template talk
| talk
| template
}}
}}
}}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | image = ombox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = protection | image = [[Image:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}} |full=Padlock.svg |semi=Padlock-silver-medium.svg |move=Padlock-olive.svg |indef=Padlock-red.svg |office=Padlock-black.svg |create=Padlock-skyblue.svg |#default=Transparent.gif
}}|40px|本{{#ifeq:Template|File|文件由于已使用于高风险模板或系统消息故|高风险模板}}已获永久{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed=半保护 |move=移动保护 |administrator |full |sysop |#default=保护}}以免遭到破坏]]
| imageright = | class = | style = | textstyle = | text = {{#if:|{{{reason}}},|}}本{{#switch:Template
|File=文件由于已使用于高风险模板{{#switch:
|semi
|autoconfirmed=
|administrator
|full
|sysop=或系统讯息
|#default=}}故
|#default=高风险模板
}}已获得{{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed=半 |move=移动 |administrator |full |sysop |#default=}}保护{{#ifeq:-|-sysop||}}以免受到破坏。{{#switch:
|semi
|autoconfirmed=
|administrator
|full
|sysop
|#default={{#switch:Template|File=
请勿移动此文件到维基共享。}}}}
{{#ifeq:no|yes|请注意保护并非对{{#ifeq:{{#switch:{{#ifeq:-|-sysop|move|}}
|semi
|autoconfirmed=semi
|administrator
|full
|sysop=indef
|move=move
|#default=indef}}|move|当前标题|当前版本}}的认可。}}请参阅页面保护方针及保护日志以获取更多信息。{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
|semi
|autoconfirmed=semi
|administrator
|full
|sysop=indef
|move=move
|#default=indef}}
|full|indef=请在讨论页提交您打算进行的修改。取得共识以后,您可以使用Template:Tlx请求管理员进行修改,{{#ifeq:Template|MediaWiki||或申请解除保护。}}
|semi=如果您不能修改此{{#switch:⧼Conversionname⧽
|zh-hans|zh-cn|zh-sg={{#switch:template |=条目 |talk=讨论 |user=用户 |user talk=用户讨论 |wikipedia=项目页面 |wikipedia talk=项目讨论 |file|image=文件 |file talk|image talk=文件讨论 |mediawiki=MediaWiki |mediawiki talk=MediaWiki讨论 |template=模板 |template talk=模板讨论 |help=帮助 |help talk=帮助讨论 |category=分类 |category talk=分类讨论 |portal=主题 |portal talk=主题讨论 |#default=输入命名空间错误}} |zh|zh-hant|zh-tw|zh-hk={{#switch:template
|=條目
|talk=討論
|user=用戶
|user talk=用戶討論
|wikipedia=項目頁面
|wikipedia talk=項目討論
|file|image=檔案
|file talk|image talk=檔案討論
|mediawiki=MediaWiki
|mediawiki talk=MediaWiki討論
|template=模板
|template talk=模板討論
|help=幫助
|help talk=幫助討論
|category=分類
|category talk=分類討論
|portal=主題
|portal talk=主題討論
|#default=輸入命名空間錯誤}}
|#default=输入语言错误 }},您可以{{#ifeq:Template|Template talk||请求修改、在讨论页提出修改提议、}}申请解除保护、登录或创建账号。
|move=如您打算移动本{{#switch:⧼Conversionname⧽
|zh-hans|zh-cn|zh-sg={{#switch:template |=条目 |talk=讨论 |user=用户 |user talk=用户讨论 |wikipedia=项目页面 |wikipedia talk=项目讨论 |file|image=文件 |file talk|image talk=文件讨论 |mediawiki=MediaWiki |mediawiki talk=MediaWiki讨论 |template=模板 |template talk=模板讨论 |help=帮助 |help talk=帮助讨论 |category=分类 |category talk=分类讨论 |portal=主题 |portal talk=主题讨论 |#default=输入命名空间错误}} |zh|zh-hant|zh-tw|zh-hk={{#switch:template
|=條目
|talk=討論
|user=用戶
|user talk=用戶討論
|wikipedia=項目頁面
|wikipedia talk=項目討論
|file|image=檔案
|file talk|image talk=檔案討論
|mediawiki=MediaWiki
|mediawiki talk=MediaWiki討論
|template=模板
|template talk=模板討論
|help=幫助
|help talk=幫助討論
|category=分類
|category talk=分類討論
|portal=主題
|portal talk=主題討論
|#default=輸入命名空間錯誤}}
|#default=输入语言错误 }},请在讨论页提案或递交移动请求,您亦可以申请解除保护。
|office=无论您能否编辑本{{#switch:⧼Conversionname⧽
|zh-hans|zh-cn|zh-sg={{#switch:template |=条目 |talk=讨论 |user=用户 |user talk=用户讨论 |wikipedia=项目页面 |wikipedia talk=项目讨论 |file|image=文件 |file talk|image talk=文件讨论 |mediawiki=MediaWiki |mediawiki talk=MediaWiki讨论 |template=模板 |template talk=模板讨论 |help=帮助 |help talk=帮助讨论 |category=分类 |category talk=分类讨论 |portal=主题 |portal talk=主题讨论 |#default=输入命名空间错误}} |zh|zh-hant|zh-tw|zh-hk={{#switch:template
|=條目
|talk=討論
|user=用戶
|user talk=用戶討論
|wikipedia=項目頁面
|wikipedia talk=項目討論
|file|image=檔案
|file talk|image talk=檔案討論
|mediawiki=MediaWiki
|mediawiki talk=MediaWiki討論
|template=模板
|template talk=模板討論
|help=幫助
|help talk=幫助討論
|category=分類
|category talk=分類討論
|portal=主題
|portal talk=主題討論
|#default=輸入命名空間錯誤}}
|#default=输入语言错误 }},请务必先提案至讨论页。除非您获得维基媒体基金会授权,请勿解除保护。
|create=请查看{{#if:|[[{{{xfd}}}|存废讨论]]或}} 刪除日志以获取本页遭刪除之原因。如您打算創建此頁面,請務先申请解除保护或恢復已刪除內容。
}} | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }} }}|}}{{#ifeq:{{#ifeq:template|template|{{#switch:{{#ifeq:-|-sysop|move|}}
|semi
|autoconfirmed={{#ifeq:|sysop|}}
|move=
|administrator
|full
|sysop
|#default=}}}}{{#ifeq:template|file|[[category:{{#switch:
|semi
|autoconfirmed=被保护的
|administrator
|full
|sysop
|#default=被保护的}}页面|citem]]}}|no||{{#ifeq:Template|Template|{{#switch:{{#ifeq:-|-sysop|move|}}
|semi
|autoconfirmed={{#ifeq:|sysop|}}
|move=
|administrator
|full
|sysop
|#default=}}}}{{#ifeq:Template|File|[[Category:{{#switch:
|semi
|autoconfirmed=被保护的
|administrator
|full
|sysop
|#default=被保护的}}页面|CItem]]}}}}
字词转换基础模板用来在一个页面里,转换不同地区的翻译用语或指定特定的标题,构成该基础模板有:
- {{[[{{#switch:
|#default = CH
| =
{{#ifeq: |
| Template:CH
| CH
}}
}}|CH]]{{#if:||{{{arg}}}}}}}(Convert Header):字词转换开始,作用是生成下拉提示信息链接。
- {{[[{{#switch:
|#default = CTitle
| =
{{#ifeq: |
| Template:CTitle
| CTitle
}}
}}|CTitle]]{{#if:||{{{arg}}}}}}}(Convert Title):标题转换
- {{[[{{#switch:
|#default = CContentH
| =
{{#ifeq: |
| Template:CContentH
| CContentH
}}
}}|CContentH]]{{#if:||{{{arg}}}}}}}(Convert Content Header):全文转换开始
- {{[[{{#switch:
|#default = CGroup
| =
{{#ifeq: |
| Template:CGroup
| CGroup
}}
}}|CGroup]]{{#if:||{{{arg}}}}}}}(Convert Group):引入已定义的全文转换组,方便某一主题的转换共享
- {{[[{{#switch:
|#default = CItem
| =
{{#ifeq: |
| Template:CItem
| CItem
}}
}}|CItem]]{{#if:||{{{arg}}}}}}}(Convert Item):单项全文转换
- {{[[{{#switch:
|#default = CContentF
| =
{{#ifeq: |
| Template:CContentF
| CContentF
}}
}}|CContentF]]{{#if:||{{{arg}}}}}}}(Convert Content Footer):全文转换结束
- {{[[{{#switch:
|#default = CF
| =
{{#ifeq: |
| Template:CF
| CF
}}
}}|CF]]{{#if:||{{{arg}}}}}}}(Convert Footer):字词转换结束,作用是生成提示信息尾部 模板{{[[{{#switch:
|#default = NoteTA
| =
{{#ifeq: |
| Template:noteTA
| NoteTA
}}
}}|noteTA]]{{#if:||{{{arg}}}}}}}和各类主题转换模板是对本模板系列的一个简化用法的套用。
使用说明
用法为:
字词转换开始{{CH}}
标题转换(可省略){{CTitle|标题转换维基语法|desc=标题转换说明}}
全文转换开始(如无全文转换,可省略){{CContentH|title=全文转换区的栏头说明}}
引入其它转换组,可重复使用{{CGroup|转换组名称}}
{{CGroup|转换组名称}}
……
固定转换,可重复使用{{CFixedRule|固定转换词语}}
{{CFixedRule|固定转换词语}}
……
单项转换,可重复使用{{CItem|全文转换维基语法|desc=转换说明}}
{{CItem|全文转换维基语法|desc=转换说明}}
……
全文转换结束{{CContentF}}
字词转换结束{{CF}}
- {{[[{{#switch:
|#default = CH
| =
{{#ifeq: |
| Template:CH
| CH
}}
}}|CH]]{{#if:||{{{arg}}}}}}}、{{[[{{#switch:
|#default = CF
| =
{{#ifeq: |
| Template:CF
| CF
}}
}}|CF]]{{#if:||{{{arg}}}}}}}必须成对使用,{{[[{{#switch:
|#default = CContentH
| =
{{#ifeq: |
| Template:CContentH
| CContentH
}}
}}|CContentH]]{{#if:||{{{arg}}}}}}}、{{[[{{#switch:
|#default = CContentF
| =
{{#ifeq: |
| Template:CContentF
| CContentF
}}
}}|CContentF]]{{#if:||{{{arg}}}}}}}必须成对使用。
- {{[[{{#switch:
|#default = CItem
| =
{{#ifeq: |
| Template:CItem
| CItem
}}
}}|CItem]]{{#if:||{{{arg}}}}}}}、{{[[{{#switch:
|#default = CGroup
| =
{{#ifeq: |
| Template:CGroup
| CGroup
}}
}}|CGroup]]{{#if:||{{{arg}}}}}}}两种全文转换模板必须放在{{[[{{#switch:
|#default = CContentH
| =
{{#ifeq: |
| Template:CContentH
| CContentH
}}
}}|CContentH]]{{#if:||{{{arg}}}}}}}、{{[[{{#switch:
|#default = CContentF
| =
{{#ifeq: |
| Template:CContentF
| CContentF
}}
}}|CContentF]]{{#if:||{{{arg}}}}}}}对之间。
其它参数说明:
- desc:转换描述说明,可省略。
- {{[[{{#switch:
|#default = CTitle
| =
{{#ifeq: |
| Template:CTitle
| CTitle
}}
}}|CTitle]]{{#if:||{{{arg}}}}}}}可以有title参数:填写标题转换栏头的提示文字,可省略(将采用下面1),也可以用内置的数字参数:
- {{[[{{#switch:
|#default = CContentH
| =
{{#ifeq: |
| Template:CContentH
| CContentH
}}
}}|CContentH]]{{#if:||{{{arg}}}}}}}可以有title参数:填写全文转换栏的提示文字,可省略(将采用下面1)。也可以用内置的参数:
- 1:为了阅读方便,本文使用全文手工转换。转换内容:
- {{[[{{#switch:
|#default = CH
| =
{{#ifeq: |
| Template:CH
| CH
}}
}}|CH]]{{#if:||{{{arg}}}}}}}可以有style参数:弹出内容的样式,可省略。
- {{[[{{#switch:
|#default = CTitle
| =
{{#ifeq: |
| Template:CTitle
| CTitle
}}
}}|CTitle]]{{#if:||{{{arg}}}}}}}可以有style参数:标题转换区栏头的样式,可省略。
- {{[[{{#switch:
|#default = CContentH
| =
{{#ifeq: |
| Template:CContentH
| CContentH
}}
}}|CContentH]]{{#if:||{{{arg}}}}}}}可以有style参数:全文转换区栏头的样式,可省略。
- {{[[{{#switch:
|#default = CTitle
| =
{{#ifeq: |
| Template:CTitle
| CTitle
}}
}}|CTitle]]{{#if:||{{{arg}}}}}}}{{[[{{#switch:
|#default = CContentH
| =
{{#ifeq: |
| Template:CContentH
| CContentH
}}
}}|CContentH]]{{#if:||{{{arg}}}}}}}{{[[{{#switch:
|#default = CF
| =
{{#ifeq: |
| Template:CF
| CF
}}
}}|CF]]{{#if:||{{{arg}}}}}}}还有一个不常用的命名参数──linkStyle:可以用来指定连接的显示样式。
}}}}