Template:Xpdtpn
Appearance
{{#{{#/{{{1}}}|/{{{1}}}}}|{{#/{{{2}}}|/{{{2}}}}}}}
gives {{#{{#/{{{1}}}|/{{{1}}}}}|{{#/{{{2}}}|/{{{2}}}}}}} [1]
This expand demo template uses #titleparts
, allowing 4 parameters to be entered in the form of two "page titles". It is a version of Template:Xpdtp for parser functions with #.
Example
[edit]{{xpdtpn|if:x/ifexpr:3+2|ifexpr:3-2/3-2}}
gives
{{#{{#if:x|ifexpr:3+2}}|{{#ifexpr:3-2|3-2}}}}
gives 3-2 [2]