User:KirkLU/js/Draft.js

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。

local p = {}

array = {}
for i=1,100 do
	array[i] = {}
		for j=1,2 do
			array[i][j] = 0
		end
end

function p.name(frame)
    local args
    if frame == mw.getCurrentFrame() then
        args = frame.args
    else
        args = frame
    end

	local code = args.code
	for i=1,100 do
		if(code == array[i][1] = 0) then
			return array[i][2]
		end
	end
end

return p