Module:Documentation: Difference between revisions

m
Minor change in wording
mNo edit summary
m (Minor change in wording)
Line 24: Line 24:
:tag("span"):addClass("documentation-action-label"):wikitext("[Options]"):done()
:tag("span"):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 documentation page]]"):done()
:tag("li"):wikitext("[[" .. docPage.fullText .. "|View doc page]]"):done()
:tag("li"):wikitext("[[" .. docPage.talkPageTitle.fullText .. "|Documentation talk page]]"):done()
:tag("li"):wikitext("[[" .. docPage.talkPageTitle.fullText .. "|Doc discussions]]"):done()
:tag("li"):wikitext("[[Special:EditPage/" .. docPage.fullText .. "|Edit documentation]]"):done()
:tag("li"):wikitext("[[Special:EditPage/" .. docPage.fullText .. "|Edit doc]]"):done()
:tag("li"):wikitext("[[Special:PageHistory/" .. docPage.fullText .. "|Documentation revision history]]"):done()
:tag("li"):wikitext("[[Special:PageHistory/" .. docPage.fullText .. "|Doc revisions]]"):done()
:tag("li"):wikitext("[[Special:Purge/" .. currentPage.fullText .. "|Purge this page]]"):done()
:tag("li"):wikitext("[[Special:Purge/" .. currentPage.fullText .. "|Purge this page]]"):done()
:done()
:done()
Line 40: Line 40:
if docPage.namespace == 0 then docTitle = ":" .. docTitle end
if docPage.namespace == 0 then docTitle = ":" .. docTitle end
content = mw.getCurrentFrame():expandTemplate{ title = docTitle, args = {} }
content = mw.getCurrentFrame():expandTemplate{ title = docTitle, args = {} }
else content = "Documentation page [[" .. docPage.fullText .. "]] doesn't exist. Click the link to create one!"
else content = "Documentation page [[" .. docPage.fullText .. "]] doesn't exist. Click the link to create it!"
end
end
end
end
420

edits