第62行:
第62行:
local parent, name
local parent, name
base, sub = PageName.split(pagename)
base, sub = PageName.split(pagename)
−
local root = mw.html.create(nil)
+
local out = ""
if isIndexPage or not base then
if isIndexPage or not base then
if type == "世界观设定" then
if type == "世界观设定" then
−
root:wikitext(renderLiteInfoBox(frame, "WorldItem.svg", "世界观介绍页"))
+
out = out .. (renderLiteInfoBox(frame, "WorldItem.svg", "世界观介绍页"))
elseif type == "联动设定" then
elseif type == "联动设定" then
local text = ""
local text = ""
−
root:wikitext(renderLiteInfoBox(frame, "联动.svg", "联动介绍页"))
+
out = out .. (renderLiteInfoBox(frame, "联动.svg", "联动介绍页"))
else -- 公共设定
else -- 公共设定
−
root:wikitext(renderLiteInfoBox(frame, "SharedItem.svg", "公共设定页"))
+
out = out .. (renderLiteInfoBox(frame, "SharedItem.svg", "公共设定页"))
end
end
else
else
if type == "世界观设定" then
if type == "世界观设定" then
−
root:wikitext(renderLiteInfoBox(frame, "WorldItem.svg", "本页面属于世界观: [[" .. base .. "]]"))
+
out = out .. (renderLiteInfoBox(frame, "WorldItem.svg", "本页面属于世界观: [[" .. base .. "]]"))
elseif type == "联动设定" then
elseif type == "联动设定" then
local text = ""
local text = ""
−
root:wikitext(renderLiteInfoBox(frame, "联动.svg", "本页面属于联动: [["..base.."]"))
+
out = out .. (renderLiteInfoBox(frame, "联动.svg", "本页面属于联动: [["..base.."]"))
else -- 公共设定
else -- 公共设定
−
root:wikitext(renderLiteInfoBox(frame, "SharedItem.svg", "公共设定页"))
+
out = out .. (renderLiteInfoBox(frame, "SharedItem.svg", "公共设定页"))
end
end
end
end
−
return root:done()
+
return out
end
end