Template:UnusedParamName/doc
Description
One of the most prominent examples is the <syntaxhighlight>
invoked with {{#tag}}
in a template.
The short version could like this:
{{#tag: syntaxhighlight<!--
-->|{{{1}}}<!--
-->|{{#if: {{{inline_param|}}}|inline|{{UnusedParamName}}}}=1<!--
-->}}
Here, the <syntaxhighlight>
is invoked with a single attribute, which name can resolve to either inline
, if a param named inline_param
is present, or to {{UnusedParamName}}
.
Since inline
is an attribute which enables the inline display of the code if it's present, to disable it we need to not pass it as a parameter, which can be done by dynamically generating the attribute name.
In cases, where inline
and other similar attributes should not be present, they are instead replaced with {{UnusedParamName}}
, which is likely not to be used by target template.
The value of this template (wrapped in code for clarity): @@__UNUSED_PARAM_NAME__@@