Examples/Module: dplvar (example 1): Difference between revisions

m
Couple of wording changes
imported>FrozenPlum
(Add example)
 
imported>FrozenPlum
m (Couple of wording changes)
 
(2 intermediate revisions by the same user not shown)
Line 4:
it saves as a new section at the bottom of your '''User:Username/Sandbox'''
-->
==ExamplePart 1==
Part one of this exampleThis sets thea variable, names it "varName", and then assigns the value "My Value" to it.<br>
'''Note:''' The result will be'''is empty,''' because setting thea variable simply assigns a value, it doesn't also ''display'' that variable.
<pre>
{{#dplvar:set|varName|My Value}}
</pre>
 
==Part 1 Result==
'''Note:''' The result will be empty, because setting the variable doesn't also ''display'' that variable.
 
==Result==
{{#dplvar:set|varName|My Value}}
 
==Part 2==
This displays the (already set above) value of the variable called "varName".
<pre>
{{#dplvar:varName}}
</pre>
 
==Part 2 Result==
{{#dplvar:varName}}
<noinclude>
[[Category:Uses dplvar module]]
Anonymous user