Module:Documentation: Difference between revisions
nix bad comments
(merge templatestyles) |
(nix bad comments) |
||
Line 80: | Line 80: | ||
ret[#ret + 1] = select(i, ...) | ret[#ret + 1] = select(i, ...) | ||
end | end | ||
-- ' | -- 'documentation-toolbar' | ||
return '<span class="' .. message('toolbar-class') .. '">(' | return '<span class="' .. message('toolbar-class') .. '">(' | ||
.. table.concat(ret, ' | ') .. ')</span>' | .. table.concat(ret, ' | ') .. ')</span>' | ||
Line 137: | Line 137: | ||
:wikitext(p.sandboxNotice(args, env)) | :wikitext(p.sandboxNotice(args, env)) | ||
:tag('div') | :tag('div') | ||
-- ' | -- 'documentation-container' | ||
:addClass(message('container')) | :addClass(message('container')) | ||
:newline() | :newline() | ||
:tag('div') | :tag('div') | ||
-- ' | -- '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') | ||
-- ' | -- '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')) | ||
-- ' | -- '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 | ||
-- ' | -- '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 | ||
-- ' | -- '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') | ||
-- ' | -- 'documentation-metadata' | ||
box:addClass(message('end-box-class')) | box:addClass(message('end-box-class')) | ||
-- 'plainlinks' | -- 'plainlinks' |