Template:UnusedParamName

From Cosmoteer Wiki
Jump to navigation Jump to search


Template documentation
View or edit this documentation. (About template documentation)
CalloutIconNote.pngNote
Portions of the template sample may not be visible without values provided.

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__@@


This template contains a keyword that can be used in place of template/tag parameter name to result in a parameter which is almost always will be unused

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified