欢迎来到奇葩栖息地!欢迎加入Discord服务器:XfrfHCzfbW。请先至特殊:参数设置验证邮箱后再进行编辑。在特殊:参数设置挑选自己想要使用的小工具!不会编辑?请至这里学习Wikitext语法。
模块:Documentation:修订间差异
来自奇葩栖息地
添加的内容 删除的内容
SkyEye FAST(讨论 | 贡献) (//Edit via InPageEdit) |
SkyEye FAST(讨论 | 贡献) (//Edit via InPageEdit) 标签:已被回退 |
||
第91行: | 第91行: | ||
:attr( 'class', 'documentation-header documentation-docpage' .. ( badDoc and ' documentation-baddoc' or '' ) ) |
:attr( 'class', 'documentation-header documentation-docpage' .. ( badDoc and ' documentation-baddoc' or '' ) ) |
||
:tag( 'div' ) |
:tag( 'div' ) |
||
: |
:css( 'float', 'right' ) |
||
:wikitext( '[[', page:fullUrl( 'action=purge' ), ' 清除缓存]]' ) |
:wikitext( '[[', page:fullUrl( 'action=purge' ), ' 清除缓存]]' ) |
||
:done() |
:done() |
||
第185行: | 第185行: | ||
end |
end |
||
links = mw.html.create( 'span' ) |
links = mw.html.create( 'span' ) |
||
: |
:css( 'float', 'right' ) |
||
:wikitext( mw.text.nowiki( '[' ), table.concat( links, ' | ' ), mw.text.nowiki( ']' ) ) |
:wikitext( mw.text.nowiki( '[' ), table.concat( links, ' | ' ), mw.text.nowiki( ']' ) ) |
||
local body = mw.html.create( 'div' ) |
local body = mw.html.create( 'div' ) |
||
body:css{ |
|||
⚫ | |||
padding = '0.8em 1em 0.7em', |
|||
['margin-top'] = '1em' |
|||
} |
|||
⚫ | |||
local header = mw.html.create( 'div' ):addClass( 'documentation-header' ) |
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 |
header |
||
:node( links ) |
:node( links ) |
||
:tag( 'span' ) |
:tag( 'span' ) |
||
:css{ |
|||
:addClass( 'title' ) |
|||
['font-weight'] = 'bold', |
|||
⚫ | |||
['font-size'] = '130%', |
|||
['margin-right'] = '1em', |
|||
['line-height'] = '1' |
|||
} |
|||
⚫ | |||
if not noDoc and pageType ~= 'template' and pageType ~= 'message' then |
if not noDoc and pageType ~= 'template' and pageType ~= 'message' then |
||
第215行: | 第230行: | ||
:tag( 'div' ) |
:tag( 'div' ) |
||
:addClass( 'documentation-footer' ) |
:addClass( 'documentation-footer' ) |
||
:css{ |
|||
margin = '0.7em -1em -0.7em', |
|||
['border-top'] = 'inherit', |
|||
padding = '0.8em 1em 0.7em', |
|||
clear = 'both' |
|||
} |
|||
:node( links ) |
:node( links ) |
||
:wikitext( '上述文档引用自[[', docPage.fullText, ']]。' ) |
:wikitext( '上述文档引用自[[', docPage.fullText, ']]。' ) |