Template:Tnull/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(monospacify (tl -> tlx))
(Use <code>)
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
'''Tnull''' is used to nullify templates in the monospaced font. It is similar to {{tlx|tlx}}&nbsp;in the way that it has support for up to six 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 up to six parameters.
;Example:
;Example:
:Typing <tt><code>&#123;&#123;tnull|foo|bar|baz|boo&#125;&#125;</code></tt> in the edit-form would yield <span style="font-family:monospace">&#123;&#123;foo|bar|baz|boo&#125;&#125;<span> in the "read-mode".
:Typing <tt><code>&#123;&#123;tnull|foo|bar|baz|boo&#125;&#125;</code></tt> in the edit-form would yield <span style="font-family:monospace">&#123;&#123;foo|bar|baz|boo&#125;&#125;<span> in the "read-mode".
;Note:
;Note:
:If there is an "=" in ''any'' parameter, you must use <tt>parameter number=text</tt>. So to nullify something like {{tlx|click}}, use the syntax <tt>&#123;&#123;tnull|click|2=image=IMAGE NAME|3=width=WIDTH|4=height=HEIGHT|5=link=PAGE TO LINK TO&#125;&#125;</tt>, which would yield {{tnull|click|2=image=IMAGE NAME|3=width=WIDTH|4=height=HEIGHT|5=link=PAGE TO LINK TO}}
:If there is an "=" in ''any'' parameter, you must use <tt>parameter number=text</tt>. So to nullify something like {{tl2|click}}, use the syntax <tt><code>&#123;&#123;tnull|click|2=image=IMAGE NAME|3=width=WIDTH|4=height=HEIGHT|5=link=PAGE TO LINK TO&#125;&#125;</code></tt>, which would yield {{tnull|click|2=image=IMAGE NAME|3=width=WIDTH|4=height=HEIGHT|5=link=PAGE TO LINK TO}}
<includeonly>
<includeonly>
[[Category:Typing-aid templates|Template:Tnull]]
[[Category:Typing-aid templates|Template:Tnull]]
</includeonly>
</includeonly>

Revision as of 01:00, 11 October 2007

Template:Template doc page viewed directly Tnull is used to nullify templates in the monospaced font. It is similar to Template:Tl2 in the way that it has support for up to six parameters.

Example
Typing {{tnull|foo|bar|baz|boo}} in the edit-form would yield {{foo|bar|baz|boo}} in the "read-mode".
Note
If there is an "=" in any parameter, you must use parameter number=text. So to nullify something like Template:Tl2, use the syntax {{tnull|click|2=image=IMAGE NAME|3=width=WIDTH|4=height=HEIGHT|5=link=PAGE TO LINK TO}}, which would yield {{click|image=IMAGE NAME|width=WIDTH|height=HEIGHT|link=PAGE TO LINK TO}}