模板:CH/usage
更多语言
更多操作
字词转换开始{{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:可以用来指定连接的显示样式。