Template:CH/doc
更多语言
更多操作
字詞轉換基礎模板用來在一個頁面裡,轉換不同地區的翻譯用語或指定特定的標題,構成該基礎模板有:
- {{[[{{#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:可以用來指定連接的顯示樣式。