卡厄思梦境WIKI
菜单
图鉴
战斗员
伙伴
卡牌
装备
事件
怪物
命运
物品
服饰
贴纸
赛季力量
S2:装备重铸
S3:刻印
出击
卡牌
装备
事件
怪物
命运
搜索
链入页面
相关更改
特殊页面
页面信息
Cargo数据
最近更改
帮助
登录
模块
查看“︁Doc”︁的源代码
←
模块:Doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local p = {} function p.main(frame) local title = mw.title.getCurrentTitle() local fullText = title.fullText local docPageName = fullText .. '/doc' local docTitle = mw.title.new(docPageName) local html = mw.html.create('div'):addClass('tpl-doc') local header = html:tag('div'):addClass('tpl-doc__header') header:tag('span'):addClass('tpl-doc__title'):wikitext('模板文档') local links = header:tag('span'):addClass('tpl-doc__links') links:wikitext('<span class="tpl-doc__link">[[Special:EditPage/' .. fullText .. '|编辑模板]]</span>') links:wikitext('<span class="tpl-doc__link">[[Special:EditPage/' .. docPageName .. '|编辑文档]]</span>') links:wikitext('<span class="tpl-doc__link">[' .. tostring(mw.uri.fullUrl(fullText, {action = 'purge'})) .. ' 刷新模板]</span>') links:wikitext('<span class="tpl-doc__link">[' .. tostring(mw.uri.fullUrl(docPageName, {action = 'purge'})) .. ' 刷新文档]</span>') local body = html:tag('div'):addClass('tpl-doc__body') if docTitle and docTitle.exists then local content = docTitle:getContent() if content and content ~= '' then body:newline():wikitext(frame:preprocess(content)):newline() else body:tag('div'):addClass('tpl-doc__empty') :wikitext('文档子页面存在但内容为空。请[[Special:EditPage/' .. docPageName .. '|补充内容]]。') end else local createUrl = tostring(mw.uri.fullUrl(docPageName, { action = 'edit', preload = 'Template:Doc/preload' })) body:tag('div'):addClass('tpl-doc__empty') :wikitext('此模板尚无说明文档。请前往 [' .. createUrl .. ' 创建文档子页面] 。') end return tostring(html) end return p
该页面使用的模板:
模块:Doc/doc
(
查看源代码
)
返回
模块:Doc
。