因为以下原因,您没有权限编辑本页:
您可以查看和复制此页面的源代码。
-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.
return function (val, default)
-- 如果你的维基使用非ASCII字符来表示 "是"、"否 "等等
-- 你应该在下面一行用 "mw.ustring.lower(val) "替换 "val:lower()"。
val = type(val) == 'string' and mw.ustring.lower(val) or val
if val == nil then
return nil
elseif val == true
or val == '是'
or val == 'yes'
or val == 'y'
or val == 'true'
or val == 't'
or val == 'on'
or val == 'ja'
or tonumber(val) == 1
then
return true
000
1:0
本页使用的模板:
- 模板:Documentation(查看源代码)
- 模块:Arguments(查看源代码)
- 模块:Array(查看源代码)
- 模块:DPLlua(查看源代码)
- 模块:DependencyList(查看源代码)
- 模块:Documentation(查看源代码)
- 模块:Documentation/config(查看源代码)
- 模块:Documentation/styles.css(查看源代码)
- 模块:Format link(查看源代码)
- 模块:Hatnote(查看源代码)
- 模块:Hatnote list(查看源代码)
- 模块:Mbox(查看源代码)
- 模块:Paramtest(查看源代码)
- 模块:User error(查看源代码)
- 模块:Yesno(查看源代码)
- 模块:Yesno/doc(查看源代码)
返回模块:Yesno。