Template:Yes/doc: Difference between revisions

Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
No edit summary
m (Reverted edits by Chrissyb (talk) to last revision by Prophecy)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<includeonly>{{high-use}}</includeonly>
<includeonly>{{high-use|2,000+}}</includeonly>
== Usage ==
== Usage ==
This template helps to eliminate all the <nowiki>{{#switch:{{{1}}}|Y|y|YES|yes|Yes=...}}</nowiki> terms in biobox templates making them easier to read.
This template helps to eliminate all the <nowiki>{{#switch:{{{1}}}|Y|y|YES|yes|Yes=...}}</nowiki> terms in biobox templates making them easier to read.
Line 15: Line 15:
== See also ==
== See also ==
* {{tl|No}}
* {{tl|No}}
<includeonly>
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
[[Category:{{SITENAME}} metatemplates|{{PAGENAME}}]]
</includeonly>

Latest revision as of 23:02, 26 March 2012

This is a documentation subpage for Template:Yes (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

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