模块:Documentation:修订间差异

删除16字节 、​ 2021年6月13日 (星期日)
// Edit via InPageEdit
(建立内容为“local p = {} local defaultDocPage = 'doc' local getType = function( namespace, page ) local pageType = 'template' if namespace == '模块' then pageType = 'm…”的新页面)
 
(// Edit via InPageEdit)
第44行:
local out
if not args.content and tostring( page ) == docPage then
out = f:preprocess( '{{subst:Template模板:Documentation/preload}}' )
else
local templateArgs = {}
第67行:
out = f:preprocess( out )
if not args.nocat then
out = out .. '[[Category分类:需要替换模板的页面]]'
end
end
第105行:
pageType == 'module' and '将' or '应该',
'被放置到[[', namespace, ':',page.baseText,
']],查看[[Template模板:Documentation]]以获取更多信息。'
)
if badDoc then
第111行:
end
if not ( args.nocat or namespace == 'User' ) then
body:wikitext( '[[Category分类:文档页面]]' )
end
第164行:
if noDoc then
action = '创建'
preload = '&preload=Template模板:Documentation/preload'
classes = ' documentation-nodoc'
message = "'''此" .. pageTypeDisplay .. "没有文档页面。" ..
第170行:
if not ( args.nocat or namespace == 'User' ) then
category = '没有文档的' .. pageTypeDisplay
if not mw.title.new( 'Category分类:' .. category ).exists then
category = '没有文档的页面'
end
第179行:
if not ( args.nocat or namespace == 'User' ) then
category = '文档质量较低的' .. pageTypeDisplay
if not mw.title.new( 'Category分类:' .. category ).exists then
category = '文档质量较低的页面'
end
第249行:
if category then
body:wikitext( '[[Category分类:', category, ']]' )
end
2,007

个编辑