Template:parameter if value
Jump to navigation
Jump to search
- The following documentation is located at Template:parameter if value/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
This template is to be used in substing templates, and should always be substituted with safesubst:
(which has to be enclosed in includeonly
tags). The first parameter is the parameter value, and is required. If it is not empty, a template parameter (with a pipe before it) is returned. If the second parameter is present, it is the parameter name.
{{safesubst:parameter if value|1|nocap}}
→ |nocap=1{{safesubst:parameter if value|1}}
→ |1