Module:Array:修订历史

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

2024年10月31日 (星期四)

  • 当前之前 22:352024年10月31日 (四) 22:35Selfice 留言 贡献 1,967字节 +1,967 创建页面,内容为“local p = {} local function stringToArray(str, separator, mapper) local arr = {} local i = 1 for v in mw.text.gsplit(str, separator) do arr[i] = mapper(v) i = i + 1 end return arr end local function tableToArray(tbl, offset, mapper) local arr = {} for k, v in pairs(tbl) do if type(k) == 'number' and k > offset then arr[k - offset] = mapper(v) end end return arr end function p.main() local args = require('Module:ProcessArgs').merge() ret…”