Difference between revisions of "Template:="

From "PTTLink Wiki"
Jump to navigation Jump to search
m (1 revision imported)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
=<noinclude>
+
{{#if:{{{2|}}}|{{#invoke:Iteration|plist}}|{{{1|<nowiki>=</nowiki>}}}}}<noinclude>
{{documentation}}
+
{{Lua|Module:Iteration}}
 +
----
 +
#This template allows the use of the equal sign "=" inside template parameters, e.g. <code><nowiki>{{</nowiki>en|''a'' <nowiki>{{</nowiki>=<nowiki>}}</nowiki> ''b''<nowiki>}}</nowiki></code><br>
 +
#With parameter 1 any other text string (e.g. a tag, a code sequence, or something else) can be passed.<br>
 +
::Explanation:
 +
:::The only way I know for performing {{M|iteration}}s is the LUA function <code>frame:expandTemplate</code>, which needs '''obligately''' a template.
 +
:::When just some text should be passed, it can be done with the ''pseudo template'' {{T|=}} which does nothing than just passing any text. 
 +
::This function is used '''very often'''!
 +
 
 +
::When ''more than one'' parameter is specified, the list of all parameters is passed; parameters can be <code><nowiki>param{{=}}value</nowiki></code>
 +
[[Category:Workaround templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 08:03, 24 January 2022

=


  1. This template allows the use of the equal sign "=" inside template parameters, e.g. {{en|a {{=}} b}}
  2. With parameter 1 any other text string (e.g. a tag, a code sequence, or something else) can be passed.
Explanation:
The only way I know for performing Template:Ms is the LUA function frame:expandTemplate, which needs obligately a template.
When just some text should be passed, it can be done with the pseudo template {{=}} which does nothing than just passing any text.
This function is used very often!
When more than one parameter is specified, the list of all parameters is passed; parameters can be param{{=}}value