Module:Yesno:修订间差异
删除的内容 添加的内容
更新 Module:Yesno(zhwiki 版,支持 是/否/开/关 中文输入) |
修复模块返回类型:改为返回表而非函数,使 {{#invoke:Yesno|yesno}} 能正常调用 |
||
第2行:
-- It works similarly to the template {{yesno}}.
local p = {}
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
第37行 ⟶ 第39行:
end
end
return p
| |||