Template:Set if not empty
From Historical Hastings
- Purpose
- A simple template that takes a property name and value, verifies the value is not empty or does not contain an error (using an #iferror check), and then attempts to set the property to that value.
- Placement
- Anywhere where an attempt to set an empty value may cause an error.
- Usage
{{Set if not empty|property name|value}}
| The above documentation is transcluded from Template:Set if not empty/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |