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.

Dplvar: Difference between revisions

40 bytes removed ,  4 years ago
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 Manualmanual|section=dplvar}}
 
=== Syntax ===
 
=== Syntax ===
<pre><nowiki>
(1) {{#dplvar:set |name1|value1|name2|value2|..|..}}
Line 9 ⟶ 8:
</nowiki></pre>
 
=== Effect ===
 
(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.
 
=== Example ===
 
<pre><nowiki>
{{#dplvar:set|a|x|b|y|c|z}}
Line 33 ⟶ 30:
c={{#dplvar:c}}
d={{#dplvar:d}}
 
[[Category:DPL Manual]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.