Template:UndefParam/doc: Difference between revisions

From Zombie Panic! Official Wiki
Jump to navigation Jump to search
Created page with "{{Documentation/Header}} Used to allow for optional unspecified parameters when calling another template from within a template. See https://www.mediawiki.org/wiki/Help:Parser_functions_in_templates#Testing_and_passing_undefined_parameters for more info. ==Syntax== The first and only parameter is the value that would be passed to the actual parameter This template should be used after the parameter name but before the "=" sign.<br> e.g. <code><nowiki>|myParam{{UndefPa..."
 
(No difference)

Latest revision as of 13:48, 10 June 2025

This is the documentation page for UndefParam.
It contains usage information, categories, and other content not part of the original template page.

Used to allow for optional unspecified parameters when calling another template from within a template.

See https://www.mediawiki.org/wiki/Help:Parser_functions_in_templates#Testing_and_passing_undefined_parameters for more info.

Syntax

The first and only parameter is the value that would be passed to the actual parameter

This template should be used after the parameter name but before the "=" sign.
e.g. |myParam{{UndefParam|{{{myParam|}}}}}={{{myParam}}}

For unnamed parameters, use |<number>=<value> explicitly.
e.g. |1{{UndefParam|{{{1|}}}}}={{{1}}}

Examples

See {{Survivor}} or {{Game}}

Template Data

Template parameters

ParameterDescriptionTypeStatus
No parameters specified