Examples/Module: dplvar (example 1): Difference between revisions
Content added Content deleted
imported>FrozenPlum mNo edit summary |
imported>FrozenPlum (Add example) |
||
Line 4: | Line 4: | ||
it saves as a new section at the bottom of your '''User:Username/Sandbox''' |
it saves as a new section at the bottom of your '''User:Username/Sandbox''' |
||
--> |
--> |
||
== |
==Part 1== |
||
This sets a variable, names it "varName", and then assigns the value "My Value" to it. |
This sets a variable, names it "varName", and then assigns the value "My Value" to it. |
||
<pre> |
<pre> |
||
Line 12: | Line 12: | ||
'''Note:''' The result will be empty, because setting the variable doesn't also ''display'' that variable. |
'''Note:''' The result will be empty, because setting the variable doesn't also ''display'' that variable. |
||
==Result== |
==Part 1 Result== |
||
{{#dplvar:set|varName|My Value}} |
{{#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> |
<noinclude> |
||
[[Category:Uses dplvar module]] |
[[Category:Uses dplvar module]] |