Template:Load
Jump to navigation
Jump to search
Given a list of variable names {x1, x2, x3, ...}, set the value of those variables to the values of {prev_x1, prev_x2, prev_x3}.
Use this template to restore the variables of a page; should be used with Template:Save.
Example:
| Input | Output |
|---|---|
{{#vardefine:x|1}}{{#vardefine:y|2}}{{#vardefine:z|blue}}
{{Save|x|y|z}}
{{#vardefine:x|1a}}{{#vardefine:y|2a}}{{#vardefine:z|red}}
{{#var:x}}, {{#var:y}}, {{#var:z}}
{{Load|x|y|z}}
{{#var:x}}, {{#var:y}}, {{#var:z}}
|
1a, 2a, red
|