模板:Tlxm
外观
{{test:params}}
概要
[编辑]范例
[编辑]{{tlxm|DISPLAYTITLE|正确的标题}}→{{DISPLAYTITLE:正确的标题}}{{tlxm|#ifeq|字串1|字串2|相等时返回的字串|不相等时返回的字串}}→{{#ifeq:字串1|字串2|相等时返回的字串|不相等时返回的字串}}
| 连结形式 → | 含有连结 | 不含连结 | 含有连结并添加subst | 含有连结,连结包含括号 | 含有连结,显示其他文字 | 第一个|替换成:
| |
|---|---|---|---|---|---|---|---|
| 文字样式 ↓ | {{tlg}}选项1
|
— | XML Example
nolink=yes
|
XML Example
subst=yes
|
XML Example
braceinside=yes
|
XML Example
alttext=FOO
|
不适用 |
| 正常 | — | {{tl}} · {{tlp}}2 · {{tlg}}1, 2
|
{{tlf}}2 · {{tnull}}
|
{{tls}} · {{tlsp}}
|
{{tn}}
|
{{tla}}
|
{{tlm}}3
|
代碼 code
|
XML Example
code=yes
XML Example
tt=yes
|
{{tlx}}
|
{{tlc}}2 · {{tld}}
|
{{tlxs}}
|
{{tlxm}}3
| ||
代码 syntaxhighlight
|
不适用 | {{tlsh}}
|
{{tlshm}}
| ||||
| 粗体 | XML Example
bold=yes
|
{{tlb}}
|
|||||
粗體代碼 code
|
XML Example
bold=yes|code=yes
|
{{tlxb}}
| |||||
斜體代碼 code
|
XML Example
italic=yes|code=yes
|
{{tlxi}}
| |||||
注释:1.
{{tlg}}是功能最齐全的模板,可选用任何配搭的文字样式、连结形式。2. 用<span class="nowrap">...</span>标签将文字包围,防止断行。
- 各显示样式的比较
{{tlf|Milford Haven Line|弘安源氏论议}}→ {{Milford Haven Line|弘安源氏论议}}{{tld|Milford Haven Line|弘安源氏论议}}→ Template:Tld{{tlc|Milford Haven Line|弘安源氏论议}}→{{Milford Haven Line|弘安源氏论议}}
- 添加参数
{{para|name|{{var|value}}}}→|name=value{{para|name|{{varserif|value}}}}→|name=Template:Varserif{{tlx|Milford Haven Line|参数1{{=}}赋值1}}→{{Milford Haven Line|参数1=赋值1}}