TemplateDoc:Acronym/Exists
From Halopedia, the Halo wiki
Usage
This template is used to check if the given parameter is a valid acronym on Halopedia. It can be used in conjunction with the {{#if:...|...|...}}
parser function in order to conditionally display one thing if the acronym exists and another if it doesn't.
Parameters
- 1 (Unnamed field) - The acronym to check.
Example
Here is an example of what the template will output, when used:
Wiki markup | Result |
---|---|
"{{Acronym/Exists|CE}}"
|
"yes" |
"{{Acronym/Exists|banana}}"
|
"" |
"{{#if:{{Acronym/Exists|CE}}|Acronym exists!|Acronym does not exist!}}"
|
"Acronym exists!" |
"{{#if:{{Acronym/Exists|banana}}|Acronym exists!|Acronym does not exist!}}"
|
"Acronym does not exist!" |