模块:Yesno:修订历史

来自Age Of History 2 Chinese Wiki
跳转至:导航、​搜索

差异选择:选中要对比的修订的单选按钮,然后按Enter键或下面的按钮。
说明:(当前)=与最后修订的差异,(之前)=与上个修订的差异,=小编辑。

2025年7月2日 (星期三)

  • 当前之前 00:082025年7月2日 (三) 00:08 Comvan 留言 贡献 853字节 +853 创建页面,内容为“-- 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'…”