Template:=: Difference between revisions
Jump to navigation
Jump to search
(Created page with '=<noinclude> == Usage == {| class="wikitable" ! Input ! Output |- | <pre>{{Test|2 + 2 {{=}} 4}}</pre> | 2 + 2 = 4 |} </noinclude>') |
(more description) |
||
Line 1: | Line 1: | ||
=<noinclude> | =<noinclude> | ||
== Usage == | == Usage == | ||
This template addresses the issue concerning the usage of "=" (equal sign) within the template call. Equal sign in a template call is used to specify a key=value pair, e.g.: <nowiki>{{Template|key=value}}</nowiki>. In order to use equal sign as a value or a parameter to a template, one must use this specific template and the equal sign must appear as a call to a template it-self, e.g.: <nowiki>{{Template|2 + 2 {{=}} 4}}</nowiki> | |||
{| class="wikitable" | {| class="wikitable" | ||
! Input | ! Input | ||
! Output | ! Output | ||
! Remarks | |||
|- | |- | ||
| <pre>{{ | | <pre>{{Hint|2 + 2 = 4}}</pre> | ||
| 2 + 2 = 4 | | {{Hint|2 + 2 = 4}} | ||
| Incorrect usage! | |||
|- | |||
| <pre>{{Hint|2 + 2 {{=}} 4}}</pre> | |||
| {{Hint|2 + 2 {{=}} 4}} | |||
| Correct usage! | |||
|} | |} | ||
</noinclude> | </noinclude> |
Latest revision as of 12:57, 12 October 2009
=
Usage
This template addresses the issue concerning the usage of "=" (equal sign) within the template call. Equal sign in a template call is used to specify a key=value pair, e.g.: {{Template|key=value}}. In order to use equal sign as a value or a parameter to a template, one must use this specific template and the equal sign must appear as a call to a template it-self, e.g.: {{Template|2 + 2 {{=}} 4}}
Input | Output | Remarks |
---|---|---|
{{Hint|2 + 2 = 4}} |
Incorrect usage! | |
{{Hint|2 + 2 {{=}} 4}} |
Correct usage! |