Help:Template: Difference between revisions

Content deleted Content added
General: Fixed wikilink. The wililink behind "Substituting" was pointing to "Substitutionary atonement". Don't know if that was vandalism or just an accident using the article picker. It was really funny, though; I did not expect that at all.
Tags: Mobile edit Mobile web edit
Parameters: removed repeated paragraph about empty-string as a parameter
Line 59:
 
If a template call specifies a parameter which is not defined in the template, it has no effect. Editors sometime specify a parameter they know is not defined in the template, For example, editors sometimes include a parameter like {{tag|reason|open}} to add a brief explanation within the source as a [[Wikipedia:Manual of Style/Hidden text|hidden comment]]. (But some templates, such as [[Template:Requested move|Requested move]], are programmed to show the reason parameter if provided). Certain templates, especially complex ones like [[Wikipedia:Infobox|infoboxes]], may use the [[Module:Check for unknown parameters|check for unknown parameters module]] to alert editors about any [[:Category:Unknown parameters|unrecognized parameters]] to help avoid unintentional errors.
 
If a parameter is specified as blank (e.g., {{para|1}}), it is treated as an empty string, which differs from leaving it out altogether (in which case the default value applies). However, templates are often coded to act the same in both cases.
 
==== Whitespace handling ====