Template:Tnull/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
m (typo)
No edit summary
 
(10 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
===Usage===
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
'''Tnull''' is used to nullify templates in the monospaced font. It is similar to {{tlx|tlx}} in the way that it has support for many parameters.
 
'''Tnull''' is used to nullify templates in the monospaced font. It is similar to {{tl2|tlx}}&nbsp;in the way that it has support for many parameters.


=== Example ===
=== Example ===
Typing <code>&#123;&#123;tnull|foo|bar|baz|boo&#125;&#125;</code> in the "edit-form" would yield <code>&#123;&#123;foo|bar|baz|boo&#125;&#125;</code> in the "read-mode".


Typing <code>&#123;&#123;tnull|foo|bar|baz|boo&#125;&#125;</code> in the edit-form would yield <code>&#123;&#123;foo|bar|baz|boo&#125;&#125;</code> in the "read-mode".
=== Note on the "=" character ===
If there is a "=" character in ''any'' parameter, you must replace it with <code>&amp;#61;</code> as in:
:<code>&#123;&#123;tnull|click|image&amp;#61;<var>image name</var>|width&amp;#61;<var>width</var>|height&amp;#61;<var>height</var>|link&amp;#61;<var>page name</var>&#125;&#125;</code>


=== Note on the "=" character ===
Or you can use <code><var>parameter-number</var>=<var>value</var></code> as in:
:<code>&#123;&#123;tnull|click|2=image=<var>image name</var>|3=width=<var>width</var>|4=height=<var>height</var>|5=link=<var>page name</var>&#125;&#125;</code>


If there is a "=" character in ''any'' parameter, you must replace it with <code>&amp;#61;</code>, as in:
:<code>&#123;&#123;tnull|click|image&amp;#61;<var>image name</var>|width&amp;#61;<var>width</var>|height&amp;#61;<var>height</var>|link&amp;#61;<var>page name</var>&#125;&#125;</code>. 
Or you can use <code><var>parameter-number</var>=<var>value</var></code>, as in:
:<code>&#123;&#123;tnull|click|2=image=<var>image name</var>|3=width=<var>width</var>|4=height=<var>height</var>|5=link=<var>page name</var>&#125;&#125;</code>).
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>}}
=== See also ===
* {{tl|tlc}} – No link, several parameters and text in <code>&lt;code>&lt;/code></code> style.
* {{tl|tld}} – No link, several parameters and <tt>teletype</tt> text style.
* {{tl|tlf}} – No link, several parameters and normal text style.
* {{tl|tl}} –  Template link, no parameters and normal text style.
* {{tl|tlx}} – Template link, several parameters and interwiki links, <tt>teletype</tt> text style.
* {{tl|tn}} – Same as {{tlf|tl}}, but shows the braces as part of the link.


<includeonly>
<includeonly>
<!-- ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE -->
[[Category:Wiki templates]]
[[Category:Typing-aid templates|{{PAGENAME}}]]
 
</includeonly>
</includeonly>

Latest revision as of 03:17, 22 May 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}}