Module:Documentation: Difference between revisions

No edit summary
No edit summary
Line 80: Line 80:
:tag( 'div' )
:tag( 'div' )
:attr( 'id', 'documentation-header-tools' )
:attr( 'id', 'documentation-header-tools' )
:css( 'float', 'right' )
:wikitext( '[[', page:fullUrl( 'action=purge' ), ' ' .. f:preprocess('{{lc:{{int:smw purge}}}}') .. ']]' )
:wikitext( '[[', page:fullUrl( 'action=purge' ), ' ' .. f:preprocess('{{lc:{{int:smw purge}}}}') .. ']]' )
:done()
:done()
Line 170: Line 169:
local links = mw.html.create( 'span' )
local links = mw.html.create( 'span' )
:attr( 'id', 'documentation-header-tools' )
:attr( 'id', 'documentation-header-tools' )
:css( 'float', 'right' )


local purgeLink = '[[Special:Purge/' .. docPage.fullText .. '|' .. f:preprocess('{{lc:{{int:smw purge}}}}') .. ']]'
local purgeLink = '[[Special:Purge/' .. docPage.fullText .. '|' .. f:preprocess('{{lc:{{int:smw purge}}}}') .. ']]'
Line 205: Line 203:
:tag( 'span' )
:tag( 'span' )
:attr( 'id', 'documentation-jump-to-code' )
:attr( 'id', 'documentation-jump-to-code' )
:css( 'white-space', 'nowrap' )
:wikitext( '[[#the-code|Jump to code ↴]]' )
:wikitext( '[[#the-code|Jump to code ↴]]' )
end
end