Actions

Template

Let

From NEC Retro

Revision as of 09:06, 28 December 2021 by Black Squirrel (talk | contribs) (Created page with "<includeonly>{{#forargs:|varname|varcontent|{{#vardefine:{{#var:varname}}|{{#var:varcontent}}}}}}</includeonly><noinclude> Shorthand for vardefine. ==Usage== * <tt><nowiki>{{...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.