Examples/Module: dplvar (example 1)

From DynamicPageList3 Manual
Revision as of 03:00, 21 April 2023 by imported>FrozenPlum (Couple of wording changes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

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}}