Editing TemplateDoc:Acronym/Novel
From Halopedia, the Halo wiki
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 4: | Line 4: | ||
This template is used to sanitise Halopedia [[Halopedia:Acronyms|novel acronyms]] before they are used in other templates. It does ''not'' guarantee that an acronym is valid, as the correct response to an invalid acronym will vary between templates that call this one. However, it guarantees that what it returns will be in lower case and that, if it ''was'' a valid acronym, it will have been replaced with the '''primary''' acronym for that topic. For instance, <code>HTFoR</code> will have been replaced with <code>tfor</code>. This allows template pages to only have to consider the primary acronym cases, while still providing support for the secondary acronyms. | This template is used to sanitise Halopedia [[Halopedia:Acronyms|novel acronyms]] before they are used in other templates. It does ''not'' guarantee that an acronym is valid, as the correct response to an invalid acronym will vary between templates that call this one. However, it guarantees that what it returns will be in lower case and that, if it ''was'' a valid acronym, it will have been replaced with the '''primary''' acronym for that topic. For instance, <code>HTFoR</code> will have been replaced with <code>tfor</code>. This allows template pages to only have to consider the primary acronym cases, while still providing support for the secondary acronyms. | ||
Usually, if no acronym match is found, the template will simply return exactly what was passed to it, albeit in lower case. However, by setting the <code> | Usually, if no acronym match is found, the template will simply return exactly what was passed to it, albeit in lower case. However, by setting the <code>Passthrough</code> parameter to <code>no</code>, the template can be made to output nothing if the acronym does not exist. | ||
===Parameters=== | ===Parameters=== | ||
| Line 20: | Line 20: | ||
|<code>TFoR</code> | |<code>TFoR</code> | ||
|- | |- | ||
|''' | |'''Passthrough''' | ||
| - | | - | ||
|''Optional'' | |''Optional'' | ||
|Determines whether or not to pass the original argument through if no acronym match was found. | |Determines whether or not to pass the original argument through if no acronym match was found. Specify <code>no</code> to disable passthrough, and anything else to enable it. Passthrough is enabled by default. | ||
|<code> | |<code>no</code> | ||
|- | |- | ||
|'''Strict''' | |'''Strict''' | ||
| Line 48: | Line 48: | ||
*Strict w/ passthrough: "{{Acronym/Novel|TFoR|Strict=yes}}" | *Strict w/ passthrough: "{{Acronym/Novel|TFoR|Strict=yes}}" | ||
*Not strict w/ passthrough: "{{Acronym/Novel|TFoR}}" | *Not strict w/ passthrough: "{{Acronym/Novel|TFoR}}" | ||
*Strict w/o passthrough: "{{Acronym/Novel|TFoR|Strict=yes| | *Strict w/o passthrough: "{{Acronym/Novel|TFoR|Strict=yes|Passthrough=no}}" | ||
*Not strict w/o passthrough: "{{Acronym/Novel|TFoR| | *Not strict w/o passthrough: "{{Acronym/Novel|TFoR|Passthrough=no}}" | ||
</nowiki></pre> | </nowiki></pre> | ||
| | | | ||
*Strict w/ passthrough: "{{Acronym/Novel|TFoR|Strict=yes}}" | *Strict w/ passthrough: "{{Acronym/Novel|TFoR|Strict=yes}}" | ||
*Not strict w/ passthrough: "{{Acronym/Novel|TFoR}}" | *Not strict w/ passthrough: "{{Acronym/Novel|TFoR}}" | ||
*Strict w/o passthrough: "{{Acronym/Novel|TFoR|Strict=yes| | *Strict w/o passthrough: "{{Acronym/Novel|TFoR|Strict=yes|Passthrough=no}}" | ||
*Not strict w/o passthrough: "{{Acronym/Novel|TFoR| | *Not strict w/o passthrough: "{{Acronym/Novel|TFoR|Passthrough=no}}" | ||
|- | |- | ||
| | | | ||
| Line 61: | Line 61: | ||
*Strict w/ passthrough: "{{Acronym/Novel|HTFoR|Strict=yes}}" | *Strict w/ passthrough: "{{Acronym/Novel|HTFoR|Strict=yes}}" | ||
*Not strict w/ passthrough: "{{Acronym/Novel|HTFoR}}" | *Not strict w/ passthrough: "{{Acronym/Novel|HTFoR}}" | ||
*Strict w/o passthrough: "{{Acronym/Novel|HTFoR|Strict=yes| | *Strict w/o passthrough: "{{Acronym/Novel|HTFoR|Strict=yes|Passthrough=no}}" | ||
*Not strict w/o passthrough: "{{Acronym/Novel|HTFoR| | *Not strict w/o passthrough: "{{Acronym/Novel|HTFoR|Passthrough=no}}" | ||
</nowiki></pre> | </nowiki></pre> | ||
| | | | ||
*Strict w/ passthrough: "{{Acronym/Novel|HTFoR|Strict=yes}}" | *Strict w/ passthrough: "{{Acronym/Novel|HTFoR|Strict=yes}}" | ||
*Not strict w/ passthrough: "{{Acronym/Novel|HTFoR}}" | *Not strict w/ passthrough: "{{Acronym/Novel|HTFoR}}" | ||
*Strict w/o passthrough: "{{Acronym/Novel|HTFoR|Strict=yes| | *Strict w/o passthrough: "{{Acronym/Novel|HTFoR|Strict=yes|Passthrough=no}}" | ||
*Not strict w/o passthrough: "{{Acronym/Novel|HTFoR| | *Not strict w/o passthrough: "{{Acronym/Novel|HTFoR|Passthrough=no}}" | ||
|- | |- | ||
| | | | ||
| Line 74: | Line 74: | ||
*Strict w/ passthrough: "{{Acronym/Novel|FoR|Strict=yes}}" | *Strict w/ passthrough: "{{Acronym/Novel|FoR|Strict=yes}}" | ||
*Not strict w/ passthrough: "{{Acronym/Novel|FoR}}" | *Not strict w/ passthrough: "{{Acronym/Novel|FoR}}" | ||
*Strict w/o passthrough: "{{Acronym/Novel|FoR|Strict=yes| | *Strict w/o passthrough: "{{Acronym/Novel|FoR|Strict=yes|Passthrough=no}}" | ||
*Not strict w/o passthrough: "{{Acronym/Novel|FoR| | *Not strict w/o passthrough: "{{Acronym/Novel|FoR|Passthrough=no}}" | ||
</nowiki></pre> | </nowiki></pre> | ||
| | | | ||
*Strict w/ passthrough: "{{Acronym/Novel|FoR|Strict=yes}}" | *Strict w/ passthrough: "{{Acronym/Novel|FoR|Strict=yes}}" | ||
*Not strict w/ passthrough: "{{Acronym/Novel|FoR}}" | *Not strict w/ passthrough: "{{Acronym/Novel|FoR}}" | ||
*Strict w/o passthrough: "{{Acronym/Novel|FoR|Strict=yes| | *Strict w/o passthrough: "{{Acronym/Novel|FoR|Strict=yes|Passthrough=no}}" | ||
*Not strict w/o passthrough: "{{Acronym/Novel|FoR| | *Not strict w/o passthrough: "{{Acronym/Novel|FoR|Passthrough=no}}" | ||
|- | |- | ||
| | | | ||
| Line 87: | Line 87: | ||
*Strict w/ passthrough: "{{Acronym/Novel|banana|Strict=yes}}" | *Strict w/ passthrough: "{{Acronym/Novel|banana|Strict=yes}}" | ||
*Not strict w/ passthrough: "{{Acronym/Novel|banana}}" | *Not strict w/ passthrough: "{{Acronym/Novel|banana}}" | ||
*Strict w/o passthrough: "{{Acronym/Novel|banana|Strict=yes| | *Strict w/o passthrough: "{{Acronym/Novel|banana|Strict=yes|Passthrough=no}}" | ||
*Not strict w/o passthrough: "{{Acronym/Novel|banana| | *Not strict w/o passthrough: "{{Acronym/Novel|banana|Passthrough=no}}" | ||
</nowiki></pre> | </nowiki></pre> | ||
| | | | ||
*Strict w/ passthrough: "{{Acronym/Novel|banana|Strict=yes}}" | *Strict w/ passthrough: "{{Acronym/Novel|banana|Strict=yes}}" | ||
*Not strict w/ passthrough: "{{Acronym/Novel|banana}}" | *Not strict w/ passthrough: "{{Acronym/Novel|banana}}" | ||
*Strict w/o passthrough: "{{Acronym/Novel|banana|Strict=yes| | *Strict w/o passthrough: "{{Acronym/Novel|banana|Strict=yes|Passthrough=no}}" | ||
*Not strict w/o passthrough: "{{Acronym/Novel|banana| | *Not strict w/o passthrough: "{{Acronym/Novel|banana|Passthrough=no}}" | ||
|} | |} | ||
<noinclude>[[Category:Acronym template documentation]]</noinclude> | <noinclude>[[Category:Acronym template documentation]]</noinclude> | ||