= – Template
Jump to navigation
Jump to search
m (Text replacement - "{{Inline code|" to "{{ic|") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
=<noinclude> | <includeonly>=</includeonly><noinclude>{{Doc/Template | ||
= | |descr= Use to transclude the equals symbol into template parameters, where the normal use of the symbol would provoke the parsing of the parameter's text, assigning the text to the right of the symbol as the value of a variable named by the text to the left. | ||
Use to transclude the equals symbol into template parameters, where the normal use of the symbol would provoke the parsing of the parameter's text, assigning the text to the right of the symbol as the value of a variable named by the text to the left. | |||
e.g {{hl|<nowiki>{{ic|_foo = true;}}</nowiki>}} tells the wiki "use the {{Template|ic}} template with {{hl|_foo}} parameter using {{hl|true}} as an argument". Using {{Template|{{=}}}} solves this issue. | |||
{{Feature|informative|Another quick solution to solve the equals issue would be telling the wiki that the first (1) argument is our content: {{hl|<nowiki>{{hl|1= _foo = true;}}</nowiki>}}.}} | |||
</noinclude> | |||
|example1= <nowiki>{{=}}</nowiki> | |||
|result1= {{=}} | |||
}}</noinclude> |
Revision as of 13:10, 27 July 2022
Use to transclude the equals symbol into template parameters, where the normal use of the symbol would provoke the parsing of the parameter's text, assigning the text to the right of the symbol as the value of a variable named by the text to the left.
e.g {{ic|_foo = true;}} tells the wiki "use the {{ic}} template with _foo parameter using true as an argument". Using {{=}} solves this issue.
This template is used on these pages.
Usage
{{=}}
Code | Result |
---|---|
{{=}} | = |