Template:Yesno/doc: Difference between revisions
Template page
More actions
Created page with "{{documentation header}} <!-- Documentation here --> == Usage == This template is used to make other templates by turning an input into either "Yes" or no text. The first (and only) parameter is the input, and if the input is "1", "t", "true", "yes", "y", or "on", the template will output "yes". If the input is "no", "n", "0", "off", "f", or "false", the template will output no text, and as such <code><nowiki>{{#if:{{Yesno|{{{1}}}}}|(true output)|(false output)}}</nowiki..." Â |
(No difference)
|
Latest revision as of 19:46, 16 June 2025
[purge]
This is the documentation page. It should be transcluded into Template:Yesno. See Template:Documentation for more information.Usage
This template is used to make other templates by turning an input into either "Yes" or no text. The first (and only) parameter is the input, and if the input is "1", "t", "true", "yes", "y", or "on", the template will output "yes". If the input is "no", "n", "0", "off", "f", or "false", the template will output no text, and as such {{#if:{{Yesno|{{{1}}}}}|(true output)|(false output)}} will display the true output if the {{{1}}} parameter is set to any of the six true values, and will display the false output if the parameter is set to any of the six false values. This can also be done with {{Yesno|{{{1|}}}|yes=(true output)|no=(false output)}}.