TemplateDoc:Acronym/Exists: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
No edit summary
Line 2: Line 2:
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>


==Example==
===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===
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"