Template:=/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(Use {{Escape template list}}) |
(clarify usage of HTML entity) |
||
Line 5: | Line 5: | ||
== Usage == |
== Usage == |
||
This template allows "=" to be used in unnamed template parameters. It inserts the |
This template allows "=" to be used in unnamed template parameters. It inserts the [[equals-sign]] ("=") into the text. Alternatively, the [[HTML]] entity "=" can be used if there is no need for it to be interpreted as wikimarkup, such as when the literal equals-sign is to be displayed to the user. |
||
== Examples == |
== Examples == |
||
Line 12: | Line 12: | ||
You can also use named parameters to bypass the restriction: |
You can also use named parameters to bypass the restriction: |
||
* <code><nowiki>{{Font color|black|yellow|3= 2 + 2 = 4}}</nowiki></code> produces: {{Font color|black|yellow|3= 2 + 2 = 4}} |
* <code><nowiki>{{Font color|black|yellow|3= 2 + 2 = 4}}</nowiki></code> produces: {{Font color|black|yellow|3= 2 + 2 = 4}} |
||
Unlike &#61;, the template only delays the interpretation of the symbol as code: |
|||
<syntaxhighlight lang="html"> |
|||
{{concat|<div class{{=}}"hatnote">This should be italicised.</div>}} |
|||
{{concat|<div class="hatnote">This will not be italicised.</div>}} |
|||
</syntaxhighlight> |
|||
produces: |
|||
{{concat|<div class{{=}}"hatnote">This should be italicised.</div>}} |
|||
{{concat|<div class="hatnote">This will not be italicised.</div>}} |
|||
== TemplateData == |
== TemplateData == |