Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

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

Add example
imported>FrozenPlum
mNo edit summary
imported>FrozenPlum
(Add example)
Line 4:
it saves as a new section at the bottom of your '''User:Username/Sandbox'''
-->
==ExamplePart 1==
This sets a variable, names it "varName", and then assigns the value "My Value" to it.
<pre>
Line 12:
'''Note:''' The result will be empty, because setting the variable doesn't also ''display'' that variable.
 
==Part 1 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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.