Jump to content

User:Stmrlbs/Template/outer

From Wikipedia, the free encyclopedia

A. Call inner macro like this {{User:Stmrlbs/Template/inner|var={{{var_outer}}}}}
Results:

  1. use inner variable with no default - {{{var}}} is "{{{var_outer}}}"
  2. use inner variable with specific default - {{{var|innerdefault}}} is "{{{var_outer}}}"
  3. use inner variable with null default - {{{var|}}} is "{{{var_outer}}}"

B. Call inner macro like this {{User:Stmrlbs/Template/inner|var={{{var_outer|outerdefault}}}}}
Results:

  1. use inner variable with no default - {{{var}}} is "outerdefault"
  2. use inner variable with specific default - {{{var|innerdefault}}} is "outerdefault"
  3. use inner variable with null default - {{{var|}}} is "outerdefault"

C. Call inner macro like this {{User:Stmrlbs/Template/inner|var={{{var_outer|}}}}}
Results:

  1. use inner variable with no default - {{{var}}} is ""
  2. use inner variable with specific default - {{{var|innerdefault}}} is ""
  3. use inner variable with null default - {{{var|}}} is ""

D. Call inner macro like this {{User:Stmrlbs/Template/inner|var= }}
Results:

  1. use inner variable with no default - {{{var}}} is ""
  2. use inner variable with specific default - {{{var|innerdefault}}} is ""
  3. use inner variable with null default - {{{var|}}} is ""

E. Call inner macro like this {{User:Stmrlbs/Template/inner}}
Results:

  1. use inner variable with no default - {{{var}}} is "{{{var}}}"
  2. use inner variable with specific default - {{{var|innerdefault}}} is "innerdefault"
  3. use inner variable with null default - {{{var|}}} is ""