Template:Boolean/doc

From BTA-Mirror
Revision as of 19:22, 19 March 2023 by imported>Ttv pedro270707 (Created page with "This template parses a boolean value. It should generally be used in other templates. == Usage == This template takes <code>1</code>, <code>true</code>, <code>yes</code> and <code>y</code> and parses them into <code>y</code>, and any other strings into <code>n</code>. The parsed values are regularly used in this wiki. {| class="wikitable" ! Code !! Output |- |<code><nowiki>{{boolean|1}}</nowiki></code> || {{boolean|1}} |- |<code><nowiki>{{boolean|true}}</nowiki></code>...")

This template parses a boolean value. It should generally be used in other templates.

Usage

This template takes 1, true, yes and y and parses them into y, and any other strings into n. The parsed values are regularly used in this wiki.

Code Output
{{boolean|1}} y
{{boolean|true}} y
{{boolean|yes}} y
{{boolean|y}} y
{{boolean|0}} n
{{boolean|false}} n
{{boolean|no}} n
{{boolean|n}} n
{{boolean|This is not a boolean}} n