Template:Yes: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
m (Testtemplate moved to Tamplate:Testtemplate) |
m (Protected "Template:Yes" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
||
| (13 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{#switch:{{{ | <includeonly>{{#switch:{{{1}}}|Y|y|YES|yes|Yes|Yeah|yeah|1=Yes}}</includeonly><noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 16:00, 20 January 2012
[edit]
Template documentation
Usage
This template helps to eliminate all the {{#switch:{{{1}}}|Y|y|YES|yes|Yes=...}} terms in biobox templates making them easier to read.
Just type {{#if:{{yes|{{{parameter|}}}}}|...}} and you can be sure
- that the parameter is not empty
- that it contains Y, y, YES, yes or Yes.
The template gives back "Yes" if the parameter is Y, y, YES, yes; otherwise it gives back nothing.
This helps to cope with entries like "anal = no" for the new biobox. Otherwise, as there is something entered for "anal", it would have appeared in the biobox as if "anal" was "yes".
See also
- {{No}}