Template:Yes/doc: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
(New page: {{documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> <includeonly>{{high-use}}</includeonly> This template helps to eliminate all the <nowiki>...) |
No edit summary |
||
| Line 8: | Line 8: | ||
* that it contains Y, y, YES, yes or Yes. | * that it contains Y, y, YES, yes or Yes. | ||
The template gives back | 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". | 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". | ||
Revision as of 03:41, 2 June 2008
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".