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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Add example)
 
imported>FrozenPlum
mNo edit summary
Line 5: Line 5:
-->
-->
==Example==
==Example==
Part one of this example sets the variable, names it "varName", and then assigns the value "My Value".
This sets a variable, names it "varName", and then assigns the value "My Value" to it.
<pre>
<pre>
{{#dplvar:set|varName|My Value}}
{{#dplvar:set|varName|My Value}}

Revision as of 23:42, 10 April 2023

Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

This sets a variable, names it "varName", and then assigns the value "My Value" to it.

{{#dplvar:set|varName|My Value}}

Note: The result will be empty, because setting the variable doesn't also display that variable.

Result

{{#dplvar:set|varName|My Value}}