In a MediaWiki template I'm making, I want to let it to become [[CODE-value]]
when CODE=value
is used and empty when CODE=value
is not given in the actual page. The current version
[[CODE-{{{CODE|}}}|{{{CODE|}}}]]
fails the second requirement. Any ideas?
{{#if}}
.{{#if: {{{CODE}}} | [[CODE-{{{CODE}}}]] | (not applicable) }}
in the template still does not work. Any additional hint?{{#if: {{{CODE|}}}
, so that the condition is empty whenCODE
is not set.