Actions

Template

Template:Iflabel

From Beyond the Pale

Revision as of 04:10, 2 January 2026 by Kauria (talk | contribs)

Used to quickly produce a bolded label for an optional parameter in a template.


{{#if: {{{1}}}|'''{{{2}}}'''|}} where 1 is the parameter to check (e.g. {{{mentor|}}} and 2 is the text of the label (e.g. Mentor).


Therefore, {{iflabel|{{{mentor|}}}|Mentor}} would produce Mentor if {{{mentor|}}} is provided with a value, and remain blank if {{{mentor|}}} is undefined.