更改

跳到导航 跳到搜索
添加81字节 、 2023年10月21日 (六) 02:04
无编辑摘要
第137行: 第137行:     
function p.renderCreator(frame)
 
function p.renderCreator(frame)
 +
    local root = mw.html.create("div")
 
     local title = PageName.getPageName()
 
     local title = PageName.getPageName()
 
     local prop_names = {"维护者", "创作者", "输入设定类型", "设定集核心页", "依赖设定集", "仅允许维护者编辑", "创作阶段", "上级概念", "前置条件", "事后效果"}
 
     local prop_names = {"维护者", "创作者", "输入设定类型", "设定集核心页", "依赖设定集", "仅允许维护者编辑", "创作阶段", "上级概念", "前置条件", "事后效果"}
     local props = SMWUtils.query_page_properties("[["..title.."]]", prop_names)[1]["properties"]
+
     local page = SMWUtils.query_page_properties("[["..title.."]]", prop_names)[1]
     local root = mw.html.create("div")
+
    if page == nil then
 +
        return root:done()
 +
    end
 +
     local props = page["properties"]
 
     root:attr("style", "display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, auto)); width: 100%")
 
     root:attr("style", "display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, auto)); width: 100%")
 
     local maintainerTemp = renderMaintainers(frame, props["维护者"], props["创作者"])
 
     local maintainerTemp = renderMaintainers(frame, props["维护者"], props["创作者"])

导航菜单