Module:Yesno/doc: Difference between revisions
From NOISZ Wiki
RiceEmpress (talk | contribs) (Created page with "Yesno is a function that converts various "affirmative" and "negative" inputs in modules into booleans; "yes", "Y", "true" and "1" are all converted into a true boolean, for example. This is for consistent treatment of boolean-like wikitext input.") |
RiceEmpress (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
Yesno is a function that converts various "affirmative" and "negative" inputs in modules into booleans; "yes", "Y", "true" and " | Yesno is a function that converts various "affirmative" and "negative" inputs in modules into booleans; "yes", "Y", 1 "true", "t" and "on" are all converted into a true boolean, and "no", "N", 0, "false", "f" and "off" are converted to a false boolean. This is for consistent treatment of boolean-like wikitext input. | ||
Latest revision as of 16:25, 4 December 2025
Yesno is a function that converts various "affirmative" and "negative" inputs in modules into booleans; "yes", "Y", 1 "true", "t" and "on" are all converted into a true boolean, and "no", "N", 0, "false", "f" and "off" are converted to a false boolean. This is for consistent treatment of boolean-like wikitext input.