Difference between revisions of "Template:=/doc"

From blackwiki
Jump to navigation Jump to search
(+iw)
blackwiki>TAKASUGI Shinji
(They work fine now)
Line 8: Line 8:
 
This is an auxiliary template allowing to encode "<code>=</code>" within template parameters. For obvious reasons this is a '''high risk template''', and it cannot be [[WP:SUBST|substituted]].
 
This is an auxiliary template allowing to encode "<code>=</code>" within template parameters. For obvious reasons this is a '''high risk template''', and it cannot be [[WP:SUBST|substituted]].
  
This template will NOT work for uses such as:
+
ex.
  
: {{N}} <CODE><NOWIKI>{{tl|{{=}}}}</NOWIKI></CODE> {{Arrow}} {{tl|{{=}}}}
+
*<CODE><NOWIKI>{{tl|{{=}}}}</NOWIKI></CODE> {{Arrow}} {{tl|{{=}}}}
: {{N}} <CODE><NOWIKI>{{Colors|black|yellow|2 + 2 {{=}} 4}}</NOWIKI></CODE> {{Arrow}} {{Colors|black|yellow|2 + 2 {{=}} 4}}
+
*<CODE><NOWIKI>{{Colors|black|yellow|2 + 2 {{=}} 4}}</NOWIKI></CODE> {{Arrow}} {{Colors|black|yellow|2 + 2 {{=}} 4}}
 
 
For this, you will need {{tl|Equals}}:
 
 
 
: {{Y}} <CODE><NOWIKI>{{tl|{{Equals}}}}</NOWIKI></CODE> {{Arrow}} {{tl|{{Equals}}}}
 
: {{Y}} <CODE><NOWIKI>{{Colors|black|yellow|2 + 2 {{Equals}} 4}}</NOWIKI></CODE> {{Arrow}} {{Colors|black|yellow|2 + 2 {{equals}} 4}}
 
  
 
{{Lts|{{PAGENAME}}}}
 
{{Lts|{{PAGENAME}}}}

Revision as of 04:16, 3 June 2008

Template:Template doc page

Usage

This is an auxiliary template allowing to encode "=" within template parameters. For obvious reasons this is a high risk template, and it cannot be substituted.

ex.

  • {{tl|{{=}}}} → {{=}}
  • {{Colors|black|yellow|2 + 2 {{=}} 4}} → 2 + 2 = 4

Template:=/doc(edit talk links history)

See also