Module:Documentation: Difference between revisions

m Switch the order of title and tools
m 1 revision imported
Tags: Mobile edit Mobile web edit
 
(4 intermediate revisions by 3 users not shown)
Line 172: Line 172:
body
body
:addClass( badDoc and 'documentation-badDoc' or '' )
:addClass( badDoc and 'documentation-badDoc' or '' )
:tag( 'div' )
:tag( 'div' ):addClass( 'documentation-header-tools' )
:attr( 'id', 'documentation-header-tools' )
:wikitext( i18n.linkBar:format( i18n.linkFormat:format( i18n.commonInternalLinkPipe:format( i18n.commonNamespacedPageWithSub:format( i18n.namespaceSpecial, i18n.specialPurge, page.fullText ), i18n.linkTextPurge ) ) ) )
:wikitext( i18n.linkBar:format( i18n.linkFormat:format( i18n.commonInternalLinkPipe:format( i18n.commonNamespacedPageWithSub:format( i18n.namespaceSpecial, i18n.specialPurge, page.fullText ), i18n.linkTextPurge ) ) ) )
:done()
:done()
Line 254: Line 253:


-- Generates the link bar
-- Generates the link bar
local links = mw.html.create( 'span' )
local links = mw.html.create( 'span' ):addClass( 'documentation-header-tools' )
:attr( 'id', 'documentation-header-tools' )


local linkList = {}
local linkList = {}