Examples/Module: dplvar (example 1): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum (Add example) |
imported>FrozenPlum m (Couple of wording changes) |
||
Line 5:
-->
==Part 1==
This sets a variable, names it "varName", and then assigns the value "My Value" to it.<br>
'''Note:''' The result
<pre>
{{#dplvar:set|varName|My Value}}
</pre>
▲'''Note:''' The result will be empty, because setting the variable doesn't also ''display'' that variable.
==Part 1 Result==
|
Latest revision as of 03:00, 21 April 2023
Part 1
This sets a variable, names it "varName", and then assigns the value "My Value" to it.
Note: The result is empty because setting a variable simply assigns a value, it doesn't also display that variable.
{{#dplvar:set|varName|My Value}}
Part 1 Result
{{#dplvar:set|varName|My Value}}
Part 2
This displays the (already set above) value of the variable called "varName".
{{#dplvar:varName}}
Part 2 Result
{{#dplvar:varName}}