Template:Acronym/Exists: Difference between revisions
From Halopedia, the Halo wiki
|
|
(2 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
| <includeonly>{{#switch:{{lc:{{{1|}}}}} | | <includeonly>{{#if:{{Acronym|{{{1}}}|NoPassthrough=yes}}|yes|}}</includeonly><noinclude>{{Doc/Template}} [[Category:Acronym templates]]</noinclude> |
| <!-- ####### OFFICIAL ###### -->
| |
| | hp = yes | |
| <!-- ####### GAMES ####### -->
| |
| | ce = yes
| |
| | hce = yes
| |
| | h1 = yes
| |
| | h1c = yes
| |
| | h1x = yes
| |
| | pc = yes
| |
| | hpc = yes
| |
| | cued = yes
| |
| | h2 = yes
| |
| | h2c = yes
| |
| | h2x = yes
| |
| | h2v = yes
| |
| | h2pc = yes
| |
| | h2mmp = yes
| |
| | h3 = yes
| |
| | hw = yes
| |
| | odst = yes
| |
| | h3odst = yes
| |
| | h3m = yes
| |
| | hr = yes
| |
| | ha = yes
| |
| | cea = yes
| |
| | hcea = yes
| |
| | koth = yes
| |
| | h4koth = yes
| |
| | h4 = yes
| |
| | sa = yes
| |
| | hsa = yes
| |
| | mcc = yes
| |
| | hmcc = yes
| |
| | tmcc = yes
| |
| | htmcc = yes
| |
| | h2a = yes
| |
| | ss = yes
| |
| | hss = yes
| |
| | h5 = yes
| |
| | h5g = yes
| |
| | h5f = yes
| |
| | hwde = yes
| |
| | hw2 = yes
| |
| | hrec = yes
| |
| | ftr = yes
| |
| | hfr = yes
| |
| | hftr = yes
| |
| | hi = yes
| |
| | hinf = yes
| |
| <!-- ####### NOVELS ####### -->
| |
| | tfor = yes
| |
| | htfor = yes
| |
| | tf = yes
| |
| | htf = yes
| |
| | fs = yes
| |
| | hfs = yes | |
| | goo = yes | |
| | hgoo = yes
| |
| | ch = yes
| |
| | hch = yes
| |
| | tcp = yes
| |
| | htcp = yes
| |
| | evo = yes
| |
| | hevo = yes
| |
| | cry = yes
| |
| | hcry = yes
| |
| | gla = yes
| |
| | hgla = yes
| |
| | pri = yes
| |
| | hpri = yes
| |
| | ttw = yes
| |
| | httw = yes
| |
| | sil = yes
| |
| | hsil = yes
| |
| | mordi = yes
| |
| | hmordi = yes
| |
| | bc = yes
| |
| | hbc = yes
| |
| | nb = yes
| |
| | hnb = yes
| |
| | hitd = yes
| |
| | hhitd = yes
| |
| | st = yes
| |
| | hst = yes
| |
| | ll = yes
| |
| | hll = yes
| |
| | soi = yes
| |
| | hsoi = yes
| |
| | fra = yes
| |
| | hfra = yes
| |
| | sas = yes
| |
| | hsas = yes
| |
| | env = yes
| |
| | henv = yes
| |
| | ret = yes
| |
| | hret = yes
| |
| | loo = yes
| |
| | hloo = yes
| |
| | badb = yes
| |
| | hbadb = yes
| |
| | sisto = yes
| |
| | hsisto = yes
| |
| | batb = yes
| |
| | hbatb = yes
| |
| | ren = yes
| |
| | hren = yes
| |
| | oblv = yes
| |
| | hoblv = yes
| |
| | merdi = yes
| |
| | hmerdi = yes
| |
| | sor = yes
| |
| | hsor = yes
| |
| <!-- ####### COMICS ####### -->
| |
| | hgn = yes
| |
| | hu = yes
| |
| | h3col = yes
| |
| | h3tcol = yes
| |
| | hwg = yes
| |
| | hhj = yes
| |
| | hbl = yes
| |
| | for = yes
| |
| | hfor = yes
| |
| | hinit = yes
| |
| | he = yes
| |
| | hesc = yes
| |
| | tfs = yes
| |
| | htfs = yes
| |
| | tfss = yes
| |
| | htfss = yes
| |
| | roa = yes
| |
| | hroa = yes
| |
| | hcd = yes
| |
| | hlw = yes
| |
| <!-- ####### ART BOOKS ####### -->
| |
| | aoh = yes
| |
| | aoh3 = yes
| |
| | aobw = yes
| |
| | aoh4 = yes
| |
| | aaoh4 = yes
| |
| | aoh5 = yes
| |
| | aoh5g = yes
| |
| | aohi = yes
| |
| <!-- ####### REFERENCE BOOKS ####### -->
| |
| | enc = yes
| |
| | henc = yes
| |
| | evg = yes
| |
| | hevg = yes
| |
| | h4evg = yes
| |
| | hm = yes
| |
| | myth = yes
| |
| | hmyth = yes
| |
| | mythos = yes
| |
| | hwf = yes
| |
| | osfm = yes
| |
| | hosfm = yes
| |
| <!-- ####### FILMS AND TV ####### -->
| |
| | hla = yes
| |
| | har = yes
| |
| | hcom = yes
| |
| | hlos = yes
| |
| | hleg = yes
| |
| | fud = yes
| |
| | h4fud = yes
| |
| | hn = yes
| |
| | nf = yes
| |
| | hnf = yes
| |
| | tforas = yes
| |
| | tv = yes
| |
| <!-- ####### MARKETING AND ARGS ####### -->
| |
| | ilb = yes
| |
| | iris = yes
| |
| | bel = yes
| |
| | h3bel = yes
| |
| | sec3 = yes
| |
| | htt = yes
| |
| | hts = yes
| |
| }}</includeonly><noinclude>{{Documentation}}</noinclude> | |
Latest revision as of 17:49, December 15, 2021
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.
{{Acronym/Exists
|
}}
Parameters
Field Name
|
Field Aliases
|
Optional or Required?
|
Description
|
Example
|
1 (Unnamed field)
|
-
|
Required
|
The acronym to check.
|
TFoR
|
Error states
This template has no error states.
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!"
|