Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikipedia
Search

Module:Yesno

From Wikipedia

Documentation for this module may be created atModule:Yesno/doc

-- Function allowing for consistent treatment of boolean-like wikitext input.-- It works similarly to the template {{yesno}}.returnfunction(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'andval:lower()orvalifval==nilthenreturnnilelseifval==trueorval=='yes'orval=='y'orval=='true'orval=='t'orval=='on'ortonumber(val)==1thenreturntrueelseifval==falseorval=='no'orval=='n'orval=='false'orval=='f'orval=='off'ortonumber(val)==0thenreturnfalseelsereturndefaultendend
Dem retrieve am from "https://gpe.wikipedia.org/w/index.php?title=Module:Yesno&oldid=40740"

[8]ページ先頭

©2009-2025 Movatter.jp