第72行: |
第72行: |
| mw.smw.set({['设定类型'] = "世界观设定"}) | | mw.smw.set({['设定类型'] = "世界观设定"}) |
| out = out .. (renderLiteInfoBox(frame, "WorldItem.svg", "世界观介绍页")) | | out = out .. (renderLiteInfoBox(frame, "WorldItem.svg", "世界观介绍页")) |
| + | out = out .. "[[Category:世界观介绍页]]" |
| + | out = out .. "[[Category:世界观设定]]" |
| elseif type == "联动设定" then | | elseif type == "联动设定" then |
| local text = "" | | local text = "" |
| out = out .. (renderLiteInfoBox(frame, "联动.svg", "联动介绍页")) | | out = out .. (renderLiteInfoBox(frame, "联动.svg", "联动介绍页")) |
| mw.smw.set({['设定类型'] = "联动设定"}) | | mw.smw.set({['设定类型'] = "联动设定"}) |
| + | out = out .. "[[Category:联动介绍页]]" |
| + | out = out .. "[[Category:联动设定]]" |
| else -- 公共设定 | | else -- 公共设定 |
| out = out .. (renderLiteInfoBox(frame, "SharedItem.svg", "公共设定页")) | | out = out .. (renderLiteInfoBox(frame, "SharedItem.svg", "公共设定页")) |
| mw.smw.set({['设定类型'] = "公共设定"}) | | mw.smw.set({['设定类型'] = "公共设定"}) |
| + | out = out .. "[[Category:公共设定]]" |
| end | | end |
| else -- base must exist | | else -- base must exist |
第89行: |
第94行: |
| if parentType == "世界观设定" then | | if parentType == "世界观设定" then |
| out = out .. (renderLiteInfoBox(frame, "WorldItem.svg", "本页面属于世界观: [[" .. base .. "]]")) | | out = out .. (renderLiteInfoBox(frame, "WorldItem.svg", "本页面属于世界观: [[" .. base .. "]]")) |
| + | out = out .. "[[Category:世界观设定]]" |
| elseif parentType == "联动设定" then | | elseif parentType == "联动设定" then |
| local text = "" | | local text = "" |
| out = out .. (renderLiteInfoBox(frame, "联动.svg", "本页面属于联动: [["..base.."]")) | | out = out .. (renderLiteInfoBox(frame, "联动.svg", "本页面属于联动: [["..base.."]")) |
| + | out = out .. "[[Category:联动设定]]" |
| else -- 公共设定 | | else -- 公共设定 |
| out = out .. (renderLiteInfoBox(frame, "SharedItem.svg", "公共设定页")) | | out = out .. (renderLiteInfoBox(frame, "SharedItem.svg", "公共设定页")) |
| + | out = out .. "[[Category:公共设定]]" |
| end | | end |
| end | | end |