Module:Documentation: Difference between revisions

[Options] label uses <div> instead of <span>
(Move "Module:Documentation/styles.css" to "Template:Documentation/styles.css"; Swap options and other elements in header)
([Options] label uses <div> instead of <span>)
 
Line 21: Line 21:
local header = "[[File:Template-info.svg|x24px]] <b>" .. args.type .. " Documentation</b>"
local header = "[[File:Template-info.svg|x24px]] <b>" .. args.type .. " Documentation</b>"
if args.content == nil and docPage.exists then  
if args.content == nil and docPage.exists then  
header = tostring(mw.html.create("span"):addClass("documentation-actions")
header = tostring(mw.html.create("div"):addClass("documentation-actions")
:tag("span"):addClass("documentation-action-label"):wikitext("[Options]"):done()
:tag("div"):addClass("documentation-action-label"):wikitext("[Options]"):done()
:tag("ul"):addClass("documentation-action-menu")
:tag("ul"):addClass("documentation-action-menu")
:tag("li"):wikitext("[[" .. docPage.fullText .. "|View doc page]]"):done()
:tag("li"):wikitext("[[" .. docPage.fullText .. "|View doc page]]"):done()
420

edits