Template:Acronym/Marketing/Exists: Difference between revisions

From Halopedia, the Halo wiki

(Created page with "<includeonly>{{#if:{{Acronym/Marketing|{{{1}}}|NoPassthrough=Yes|Strict={{{Strict|}}}}}|yes|}}</includeonly><noinclude>{{Documentation}} Category:Acronym templates</noincl...")
 
m (→‎top: Moving page, replaced: {{Documentation → {{Doc/Template)
 
Line 1: Line 1:
<includeonly>{{#if:{{Acronym/Marketing|{{{1}}}|NoPassthrough=Yes|Strict={{{Strict|}}}}}|yes|}}</includeonly><noinclude>{{Documentation}} [[Category:Acronym templates]]</noinclude>
<includeonly>{{#if:{{Acronym/Marketing|{{{1}}}|NoPassthrough=Yes|Strict={{{Strict|}}}}}|yes|}}</includeonly><noinclude>{{Doc/Template}} [[Category:Acronym templates]]</noinclude>

Latest revision as of 17:52, December 15, 2021

vde
Template Documentation

Usage

This template is used to check if the given parameter is a valid marketing or ARG 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/Marketing/Exists
|
}}
{{Acronym/Marketing/Exists
|Strict=
}}

Parameters

Field Name Field Aliases Optional or Required? Description Example
1 (Unnamed field) - Required The acronym to check. CE
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 marketing.

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 marketing.

yes

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/Marketing/Exists|ILB}}" "yes"
"{{Acronym/Marketing/Exists|TFoR}}" ""
"{{Acronym/Marketing/Exists|banana}}" ""
"{{#if:{{Acronym/Marketing/Exists|ILB}}|Acronym exists!|Acronym does not exist!}}" "Acronym exists!"
"{{#if:{{Acronym/Marketing/Exists|TFoR}}|Acronym exists!|Acronym does not exist!}}" "Acronym does not exist!"
"{{#if:{{Acronym/Marketing/Exists|banana}}|Acronym exists!|Acronym does not exist!}}" "Acronym does not exist!"