Template:Tnull/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>DixonDBot
m Migrating 4 interwiki links, now provided by Wikidata on d:Q7230920
meta>Paine Ellsworth
→‎Note on the "=" character: include subsection on the pipe (|) character
Line 16: Line 16:
Either method would yield the following output:
Either method would yield the following output:
:{{tnull|click|2=image=<var>image name</var>|3=width=<var>width</var>|4=height=<var>height</var>|5=link=<var>page name</var>}}
:{{tnull|click|2=image=<var>image name</var>|3=width=<var>width</var>|4=height=<var>height</var>|5=link=<var>page name</var>}}
=== Note on the "|" character ===
If a second consecutive pipe (|) is used to denote that a parameter has been skipped, you must replace it with <code>&amp;#124;</code> as in:
:<code>&#123;&#123;tnull|look from|Alan|&amp;#124;all the Alans&#125;&#125;</code>
That would yield the following displayed output:
:{{tnull|look from|Alan|&#124;all the Alans}}


=== See also ===
=== See also ===

Revision as of 05:45, 16 June 2013

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 &#61; as in:

{{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}}

Note on the "|" character

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}}

See also

Template:Tl-nav