Module:qhv-headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 12: Line 12:


local PAGENAME = mw.title.getCurrentTitle().text
local PAGENAME = mw.title.getCurrentTitle().text
local NAMESPACE = mw.title.getCurrentTitle().nsText
local SUBPAGENAME = mw.title.getCurrentTitle().subpageText


local legal_gender = {
local legal_gender = {
Line 72: Line 74:
-- This is the only function that can be invoked from a template.
-- This is the only function that can be invoked from a template.
function export.show(frame)
function export.show(frame)
if NAMESPACE == "Template" and not SUBPAGENAME == "doc" then return end
local parent_args = frame:getParent().args
local parent_args = frame:getParent().args

Navigation menu