Modulo:Yesno: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m una versione importata da wikt:Modulo:Yesno: Template utile per creare avvisi
update
Etichette: Ripristino manuale DiBabel [1.2]
 
Riga 1:
--[[ Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.
 
Il modulo è stato importato da:
https://en.wikipedia.org/w/index.php?title=Module:Yesno&oldid=828075573
]]
return function (val, default)
--[[ If your wiki uses non-ascii characters for any of "yes", "no", etc., you
-- should replace "val:lower()" with "mw.ustring.lower(val)" in the
-- following line. ]]
val = type(val) == 'string' and val:lower() or val
if val == nil then