TemplateDoc:Acronym/Official/Exists

From Halopedia, the Halo wiki

This is a template documentation page!
You cannot edit the associated template from here. To do so, please see Template:Acronym/Official/Exists instead!

Usage[edit]

This template is used to check if the given parameter is a valid official or reserved 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.

Simplified Version Full Version
{{Acronym/Official/Exists
|
}}
{{Acronym/Official/Exists
|
|Strict=
}}

Parameters[edit]

Field Name Field Aliases Optional or Required? Description Example
1 (Unnamed field) - Required The acronym to check. TFoR
Strict - Optional Determines whether or not the test should strictly adhere to the standard acronyms defined on this page. If this is set (to any value whatsoever), it will only check against the standard acronyms. Otherwise, it may check against non-standard acronyms, that are specific to the official/reserved category.

IMPORTANT: Non-standard acronyms are permitted to clash with acronyms in other categories! Always set strict to enabled if your template deals with other types of media as well as official/reserved acronyms.

yes

Error states[edit]

This template has no error states.

Example[edit]

Here is an example of what the template will output, when used:

Wiki markup Result
"{{Acronym/Official/Exists|HP}}" "yes"
"{{Acronym/Official/Exists|CE}}" ""
"{{Acronym/Official/Exists|banana}}" ""
"{{#if:{{Acronym/Official/Exists|HP}}|Acronym exists!|Acronym does not exist!}}" "Acronym exists!"
"{{#if:{{Acronym/Official/Exists|CE}}|Acronym exists!|Acronym does not exist!}}" "Acronym does not exist!"
"{{#if:{{Acronym/Official/Exists|banana}}|Acronym exists!|Acronym does not exist!}}" "Acronym does not exist!"