-- Function allowing for consistent treatment of boolean-like wikitext input.-- It works similarly to the template {{Có hay không}}.returnfunction(val,default)val=type(val)=='string'andmw.ustring.lower(val)orvalifval==nilthenreturnnilelseifval==trueorval=='yes'orval=='có'orval=='y'orval=='c'orval=='true'orval=='thực'orval=='rồi'ortonumber(val)==1thenreturntrueelseifval==falseorval=='no'orval=='không'orval=='n'orval=='ko'orval=='k'orval=='false'orval=='sai'orval=='chưa'ortonumber(val)==0thenreturnfalseelsereturndefaultendend