Difference between revisions of "Let"
From NEC Retro
(Created page with "<includeonly>{{#forargs:|varname|varcontent|{{#vardefine:{{#var:varname}}|{{#var:varcontent}}}}}}</includeonly><noinclude> Shorthand for vardefine. ==Usage== * <tt><nowiki>{{...") |
m (Text replacement - "Category:NEC Retro templates" to "Category:Templates") |
||
Line 10: | Line 10: | ||
* <tt><nowiki>{{let|xxx=yyy|zzz={{#var:xxx}}}}</nowiki></tt> - This won't work. A single use of the template can't reference itself. Use <tt><nowiki>{{let|xxx=yyy}}{{let|zzz={{#var:xxx}}}}</nowiki></tt> instead. | * <tt><nowiki>{{let|xxx=yyy|zzz={{#var:xxx}}}}</nowiki></tt> - This won't work. A single use of the template can't reference itself. Use <tt><nowiki>{{let|xxx=yyy}}{{let|zzz={{#var:xxx}}}}</nowiki></tt> instead. | ||
− | [[Category: | + | [[Category:Templates]] |
</noinclude> | </noinclude> |
Latest revision as of 12:34, 1 January 2022
Shorthand for vardefine.
Usage
- {{let|xxx=yyy}} = {{#vardefine:xxx|yyy}}
- {{let|xxx=yyy|zzz=aaa}} = {{#vardefine:xxx|yyy}}{{#vardefine:zzz|aaa}}
Limitations
- {{let|xxx=yyy|zzz={{#var:xxx}}}} - This won't work. A single use of the template can't reference itself. Use {{let|xxx=yyy}}{{let|zzz={{#var:xxx}}}} instead.