TemplateDoc:Acronym/Exists: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
(Inserting TemplateDoc notice)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Notice/TemplateDoc}}
==Usage==
==Usage==
This template is used to check if the given parameter is a valid [[Halopedia:Acronyms|acronym]] on Halopedia. It can be used in conjunction with the <code><nowiki>{{#if:...|...|...}}</nowiki></code> parser function in order to conditionally display one thing if the acronym exists and another if it doesn't.
This template is used to check if the given parameter is a valid [[Halopedia:Acronyms|acronym]] on Halopedia. It can be used in conjunction with the <code><nowiki>{{#if:...|...|...}}</nowiki></code> parser function in order to conditionally display one thing if the acronym exists and another if it doesn't.


==Parameters==
<pre>
*'''1''' {{C|Unnamed field}} - The acronym to check.
{{Acronym/Exists
|
}}
</pre>
 
===Parameters===
{| width=100% class="wikitable"
!width=12%|''Field Name''
!width=12%|''Field Aliases''
!width=12%|''Optional or Required?''
!width=auto|''Description''
!width=24%|''Example''
|-
|'''1''' {{C|Unnamed field}}
| -
|'''Required'''
|The acronym to check.
|<code>TFoR</code>
|}
 
===Error states===
This template has no error states.


==Example==
===Example===
Here is an example of what the template will output, when used:
Here is an example of what the template will output, when used:
{| class="wikitable"
{| class="wikitable"
Line 24: Line 47:
|}
|}


[[Category:Acronym template documentation]]
<noinclude>[[Category:Acronym template documentation]]</noinclude>

Latest revision as of 20:04, June 4, 2020

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

Usage[edit]

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.

{{Acronym/Exists
|
}}

Parameters[edit]

Field Name Field Aliases Optional or Required? Description Example
1 (Unnamed field) - Required The acronym to check. TFoR

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/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!"