Template:Tnull: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<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>{{pp-template|small=no}}{{documentation}}</noinclude>") |
(No difference)
|
Latest revision as of 03:23, 4 February 2023
| This high-risk template is indefinitely protected from editing to prevent vandalism. | This high-risk template has been protected from editing to prevent vandalism. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may use the {{editprotected}} template to ask an administrator to make the edit if it is supported by consensus. You may also request that this page be unprotected. |
[edit] File:50px-Template-info.svg.png Template documentation
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[edit source]
Typing {{tnull|foo|bar|baz|boo}} in the edit-form would yield {{foo|bar|baz|boo}} in the "read-mode".
Note on the "=" character[edit source]
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}}