Template:MaybeVar

From QBWiki
Revision as of 18:38, 14 December 2025 by Kevin Wang (talk | contribs) (Created page with "<includeonly>{{#if:{{{1|}}}|{{#if:{{#var:{{{1}}}}}|{{#var:{{{1}}}}}|{{{1}}}}}|0}} </includeonly><noinclude> {{Template doc| Given an argument, return either the contents of t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template documentation

Given an argument, return either the contents of the variable or echo - default to 0.

{{#vardefine:x|100}}
{{MaybeVar|x}}, {{MaybeVar}}, {{MaybeVar|y}}, {{MaybeVar|100}}


100 , 0 , y , 100