Module:Documentation: Difference between revisions

Jump to navigation Jump to search
merge templatestyles
nix bad comments
Line 80: Line 80:
ret[#ret + 1] = select(i, ...)
ret[#ret + 1] = select(i, ...)
end
end
-- 'template-documentation-toolbar'
-- 'documentation-toolbar'
return '<span class="' .. message('toolbar-class') .. '">('
return '<span class="' .. message('toolbar-class') .. '">('
.. table.concat(ret, ' &#124; ') .. ')</span>'
.. table.concat(ret, ' &#124; ') .. ')</span>'
Line 137: Line 137:
:wikitext(p.sandboxNotice(args, env))
:wikitext(p.sandboxNotice(args, env))
:tag('div')
:tag('div')
-- 'template-documentation-container'
-- 'documentation-container'
:addClass(message('container'))
:addClass(message('container'))
:newline()
:newline()
:tag('div')
:tag('div')
-- 'template-documentation'
-- 'documentation'
:addClass(message('main-div-classes'))
:addClass(message('main-div-classes'))
:newline()
:newline()
Line 147: Line 147:
:wikitext(p._content(args, env))
:wikitext(p._content(args, env))
:tag('div')
:tag('div')
-- 'template-documentation-clear'
-- 'documentation-clear'
:addClass(message('clear'))
:addClass(message('clear'))
:done()
:done()
Line 417: Line 417:
omargs.text = text .. makeCategoryLink(message('sandbox-category'))
omargs.text = text .. makeCategoryLink(message('sandbox-category'))


-- 'template-documentation-clear'
-- 'documentation-clear'
return '<div class="' .. message('clear') .. '"></div>'
return '<div class="' .. message('clear') .. '"></div>'
.. require('Module:Message box').main('ombox', omargs)
.. require('Module:Message box').main('ombox', omargs)
Line 616: Line 616:
data.headingStyleText = headingStyle
data.headingStyleText = headingStyle
else
else
-- 'template-documentation-heading'
-- 'documentation-heading'
data.headingClass = message('main-div-heading-class')
data.headingClass = message('main-div-heading-class')
end
end
Line 635: Line 635:
local sbox = mw.html.create('div')
local sbox = mw.html.create('div')
sbox
sbox
-- 'template-documentation-startbox'
-- 'documentation-startbox'
:addClass(message('start-box-class'))
:addClass(message('start-box-class'))
:newline()
:newline()
Line 748: Line 748:
local box = mw.html.create('div')
local box = mw.html.create('div')
-- 'template-documentation-metadata'
-- 'documentation-metadata'
box:addClass(message('end-box-class'))
box:addClass(message('end-box-class'))
-- 'plainlinks'
-- 'plainlinks'