Template: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:可以用來指定連接的顯示樣式。
}}}}