Here is a text of template:
# {{{Domain|{{{Lang}}}}}} <br /> # {{#if: {{{Domain|}}} | {{{Domain|}}} |{{{Lang}}} }}<br /> # {{{1|}}}<br />
A) {{User:Alogrin/Template:Test|Lang=english| Domain= }}
This one doesn’t work with a passing of an «empty» Domain to {{{Domain|{{{Lang}}}}}}. But #if: — works.
- english
B) {{User:Alogrin/Template:Test|Lang=english| Domain}}
This works, though only because «Domain» is treated as a string.
- english
- english
- Domain
C) {{User:Alogrin/Template:Test|Lang=english| Domain{{#if: |=Domain-value}}}}
Works, as in (B)
- english
- english
- Domain
D) {{User:Alogrin/Template:Test|Lang=english| Domain{{#if: yes |=Domain-value}}}}
Works, as in (B) — the whole section is treated, as a single string parameter
- english
- english
- Domain =Domain-value
E) {{User:Alogrin/Template:Test|Lang=english| Domain={{#if: | Domain-value}}}}
Works as in (A)
- english
F) {{User:Alogrin/Template:Test|Lang=english| Domain={{#if: yes | Domain-value}}}}
This one is a desirable result — {{{Domain|{{{Lang}}}}}} works in sync with #if:
- Domain-value
- Domain-value
G) {{User:Alogrin/Template:Test|Lang=english| {{#if: | Domain=Domain-value}}}}
Works, as in (B) — the whole section is treated, as a single string parameter
- english
- english
H) {{User:Alogrin/Template:Test|Lang=english| {{#if: yes | Domain=Domain-value}}}}
Works, as in (B) — the whole section is treated, as a single string parameter
- english
- english
- Domain=Domain-value