模块:Documentation:修订间差异

添加424字节 、​ 2023年9月30日 (星期六)
回退到SkyEye FAST在2023-09-30 15:20:05时制作的修订版本3212,通过popups
(回退到SkyEye FAST在2023-09-30 15:12:38时制作的修订版本3211,通过popups
标签手工回退 已被回退
(回退到SkyEye FAST在2023-09-30 15:20:05时制作的修订版本3212,通过popups
标签手工回退
 
第91行:
:attr( 'class', 'documentation-header documentation-docpage' .. ( badDoc and ' documentation-baddoc' or '' ) )
:tag( 'div' )
:addClasscss( 'linksfloat', 'right' )
:wikitext( '[[', page:fullUrl( 'action=purge' ), ' 清除缓存]]' )
:done()
第185行:
end
links = mw.html.create( 'span' )
:addClasscss( 'linksfloat', 'right' )
:wikitext( mw.text.nowiki( '[' ), table.concat( links, ' | ' ), mw.text.nowiki( ']' ) )
local body = mw.html.create( 'div' )
body:css{
body:attr( 'class', 'documentation' .. classes )
padding = '0.8em 1em 0.7em',
['margin-top'] = '1em'
}
body:attr( 'class', 'documentation' .. classes )
local header = mw.html.create( 'div' ):addClass( 'documentation-header' )
header:css{
margin = '-0.8em -1em 0.8em',
padding = '0.8em 1em 0.7em',
['border-bottom'] = 'inherit'
}
 
header
:node( links )
:tag( 'span' )
:css{
:addClass( 'title' )
['font-weight'] = 'bold',
:wikitext( '文档页面' )
['font-size'] = '130%',
['margin-right'] = '1em',
['line-height'] = '1'
}
:wikitext( '文档页面' )
if not noDoc and pageType ~= 'template' and pageType ~= 'message' then
第215行 ⟶ 第230行:
:tag( 'div' )
:addClass( 'documentation-footer' )
:css{
margin = '0.7em -1em -0.7em',
['border-top'] = 'inherit',
padding = '0.8em 1em 0.7em',
clear = 'both'
}
:node( links )
:wikitext( '上述文档引用自[[', docPage.fullText, ']]。' )
2,007

个编辑