Anonymous user
Dplvar: Difference between revisions
no edit summary
m (Alianin moved page DPL:Dplvar to Extension:DPL3/Dplvar without leaving a redirect: Changing namespaces.) |
No edit summary |
||
Line 1:
{{DPL
=== Syntax ===▼
<pre><nowiki>
(1) {{#dplvar:set |name1|value1|name2|value2|..|..}}
Line 9 ⟶ 8:
</nowiki></pre>
==
(1) assigns the values to symbolic variable names.
(2) assigns the value only if the variable is empty / has not been used so far.
Line 17 ⟶ 15:
The variables can be set and retrieved from an article page or from templates used in that article.
==
<pre><nowiki>
{{#dplvar:set|a|x|b|y|c|z}}
Line 33 ⟶ 30:
c={{#dplvar:c}}
d={{#dplvar:d}}
|