Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Yesno: Difference between revisions

From Persist Online Wiki
Content added Content deleted
Template>Alistair3149
(Created page with "-- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default) -- If your wiki...")
 
(Undid revision 948472533 by [[Special:Contributions/w>Vogone|w>Vogone]] ([[User talk:w>Vogone|talk]]))
Line 14: Line 14:
or val == 'true'
or val == 'true'
or val == 't'
or val == 't'
or val == 'on'
or tonumber(val) == 1
or tonumber(val) == 1
then
then
Line 22: Line 23:
or val == 'false'
or val == 'false'
or val == 'f'
or val == 'f'
or val == 'off'
or tonumber(val) == 0
or tonumber(val) == 0
then
then
Cookies help us deliver our services. By using our services, you agree to our use of cookies.