420
edits
HyperNervie (talk | contribs) (Move "Module:Documentation/styles.css" to "Template:Documentation/styles.css"; Swap options and other elements in header) |
HyperNervie (talk | contribs) ([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(" | header = tostring(mw.html.create("div"):addClass("documentation-actions") | ||
:tag(" | :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() | ||
edits