Template:Tnull: Difference between revisions
Jump to navigation
Jump to search
m (-extra space) |
(remove {{pp-template}} since included in {{documentation}}) |
||
Line 1: | Line 1: | ||
<includeonly><tt>{{{{#ifeq:{{lcfirst:{{{1|}}}}}|{{lc:{{{1|}}}}}|{{lcfirst:{{{1|}}}}}|{{{1|}}}}}{{#if:{{{2|}}}||{{{2}}}|}}{{#if:{{{3|}}}||{{{3}}}|}}{{#if:{{{4|}}}||{{{4}}}|}}{{#if:{{{5|}}}||{{{5}}}|}}{{#if:{{{6|}}}||{{{6}}}|}}{{#if:{{{7|}}}||{{{7}}}|}}{{#if:{{{8|}}}||{{{8}}}|}}}}</tt></includeonly><noinclude> | <includeonly><tt>{{{{#ifeq:{{lcfirst:{{{1|}}}}}|{{lc:{{{1|}}}}}|{{lcfirst:{{{1|}}}}}|{{{1|}}}}}{{#if:{{{2|}}}||{{{2}}}|}}{{#if:{{{3|}}}||{{{3}}}|}}{{#if:{{{4|}}}||{{{4}}}|}}{{#if:{{{5|}}}||{{{5}}}|}}{{#if:{{{6|}}}||{{{6}}}|}}{{#if:{{{7|}}}||{{{7}}}|}}{{#if:{{{8|}}}||{{{8}}}|}}}}</tt></includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 21:06, 4 October 2010
[edit] Template documentation
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.
Example
Typing {{tnull|foo|bar|baz|boo}}
in the "edit-form" would yield {{foo|bar|baz|boo}}
in the "read-mode".
Note on the "=" character
If there is a "=" character in any parameter, you must replace it with =
as in:
{{tnull|click|image=image name|width=width|height=height|link=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}}