模板:Tnull

来自决策链云智库
Zeroclanzhang讨论 | 贡献2023年7月13日 (四) 23:20的版本 (创建页面,内容为“<code>{{{{#if:{{{1|}}}|{{{1}}}| tnull|...}}{{#if:{{{2|}}}||{{{2}}}|}}{{#if:{{{3|}}}||{{{3}}}|}}{{#if:{{{4|}}}||{{{4}}}|}}{{#if:{{{5|}}}||{{{5}}}|}}{{#if:{{{6|}}}||{{{6}}}|}}{{#if:{{{7|}}}||{{{7}}}|}}{{#if:{{{8|}}}||{{{8}}}|}}{{#if:{{{9|}}}||{{{9}}}|}}}}</code><noinclude>{{/doc}}</noinclude>”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{tnull|...}}

Usage

Tnull is used to nullify templates in the monospaced font. It is similar to {{tlx}} in the way that it has support for many parameters, but it does not link the template name. It is similar to {{tlc}}, but does not prevent text wrapping.

Example

Typing {{tnull|foo|bar|baz|boo}} in the edit window would yield {{foo|bar|baz|boo}} in the rendered page.

Special character handling

"=" (equality sign)

If there is a "=" character (equality/equals sign) in any parameter, it must be replaced with &#61; [or {{}}?]:

{{tnull|click|image&#61;image name|width&#61;width|height&#61;height|link&#61;page name}}

Or you can use parameter-number=value as in:

{{tnull|click|2=image=image name|3=width=width|4=height=height|5=link=page name}}

Either method would yield the following output:

{{click|image=image name|width=width|height=height|link=page name}}

"|" (vertical bar, pipe)

If a second consecutive pipe (|) is used to denote that a parameter has been skipped, you must replace it with &#124; as in:

{{tnull|look from|Alan|&#124;all the Alans}}

That would yield the following displayed output:

{{look from|Alan||all the Alans}}

}}