今天是2025年4月14日 第16周 星期一
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
查看“模块:Yesno”的源代码
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您可以查看和复制此页面的源代码。
-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.
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
return nil
elseif val == true
or val == 'yes'
or val == 'y'
or val == 'true'
or val == 't'
or val == 'on'
or val == '是'
or val == '开'
or val == '開'
or tonumber(val) == 1
then
000
1:0
该页面使用的模板:
- Template:Documentation(查看源代码)(受保护)
- 模块:Arguments(查看源代码)
- 模块:Category handler(查看源代码)
- 模块:Category handler/blacklist(查看源代码)
- 模块:Category handler/config(查看源代码)
- 模块:Category handler/data(查看源代码)
- 模块:Category handler/shared(查看源代码)
- 模块:Documentation(查看源代码)
- 模块:Documentation/config(查看源代码)(受保护)
- 模块:Message box(查看源代码)
- 模块:Message box/configuration(查看源代码)
- 模块:Namespace detect/config(查看源代码)
- 模块:Namespace detect/data(查看源代码)
- 模块:Yesno(查看源代码)
- 模块:Yesno/doc(查看源代码)
返回至模块:Yesno。