回退到SkyEye FAST在2023-09-30 15:20:05时制作的修订版本3212,通过popups
SkyEye FAST(讨论 | 贡献) 小 (// Edit via InPageEdit) |
SkyEye FAST(讨论 | 贡献) (回退到SkyEye FAST在2023-09-30 15:20:05时制作的修订版本3212,通过popups) 标签:手工回退 |
||
(未显示同一用户的3个中间版本) | |||
第44行:
local out
if not args.content and tostring( page ) == docPage then
local pageType = mw.ustring.lower( args.type or getType( page.nsText, page ) )
local pageTypeDisplay = getTypeDisplay( pageType )
out = f:preprocess( '{{subst:模板:Documentation/preload}}' )
out = out:gsub( '$1' , pageTypeDisplay )
else
local templateArgs = {}
第78行 ⟶ 第81行:
local args = require( 'Module:ProcessArgs' ).merge( true )
local badDoc = args.baddoc
local page = mw.title.getCurrentTitle()
第92行 ⟶ 第89行:
local body = mw.html.create( 'div' )
body
:attr( 'class', 'documentation-header documentation-docpage' .. ( badDoc and ' documentation-baddoc' or '' ) )
:tag( 'div' )
第105行 ⟶ 第98行:
pageType == 'module' and '将' or '应该',
'被放置到[[', namespace, ':',page.baseText,
']]
)
if badDoc then
第142行 ⟶ 第135行:
if not docText and not noDoc then
▲ docText = trim( f:expandTemplate{ title = ':' .. docPage.fullText } )
docText = string.gsub( docText, '<div class="documentation%-header.-</div>\n' , '' )
if docText == '' then
第164行 ⟶ 第155行:
if noDoc then
action = '创建'
preload = '&preload=模板:Documentation/preload&preloadparams%5b%5d=' .. pageTypeDisplay
classes = ' documentation-nodoc'
message = "'''此" .. pageTypeDisplay .. "没有文档页面。" ..
"如果你知道
if not ( args.nocat or namespace == 'User' ) then
category = '没有文档的' .. pageTypeDisplay
第209行 ⟶ 第200行:
padding = '0.8em 1em 0.7em',
['border-bottom'] = 'inherit'
header
:node( links )
:tag( 'span' )
if not noDoc and pageType ~= 'template' and pageType ~= 'message' then
第245行 ⟶ 第237行:
}
:node( links )
:wikitext( '上述文档
end
|