= – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Stage one. Actually need the template to work in order to build the usage examples.)
 
m (Some wiki formatting)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=<noinclude>
<includeonly>=</includeonly><noinclude>{{Doc/Template
==Usage==
|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 text to the right of the symbol as the value of a variable named by the text to the left.


i.e. (TBA)
e.g {{hl|<nowiki>{{hl|_foo = true;}}</nowiki>}} tells the wiki "use the {{Template|hl}} template with {{hl|_foo}} parameter using {{hl|true}} as an argument". Using {{Template|{{=}}}} solves this issue.
[[Category:Templates|{{uc:{{PAGENAME}}]]
 
</noinclude>
{{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>}}.}}
 
|example1= <nowiki>{{=}}</nowiki>
|result1= {{=}}
 
}}</noinclude>

Latest revision as of 13:12, 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 {{hl|_foo = true;}} tells the wiki "use the {{hl}} template with _foo parameter using true as an argument". Using {{=}} solves this issue.

Another quick solution to solve the equals issue would be telling the wiki that the first (1) argument is our content: {{hl|1= _foo = true;}}.

This template is used on these pages.

Usage

{{=}}


Examples
Code Result
{{=}} =