45,660
edits
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
local alldata = require('Module:qhv-noun/data') | local alldata = require('Module:qhv-noun/data') | ||
local PAGENAME = mw.title.getCurrentTitle().text | local PAGENAME = mw.title.getCurrentTitle().text | ||
local NAMESPACE = mw.title.getCurrentTitle().nsText | |||
local export = {} | local export = {} | ||
Line 58: | Line 59: | ||
local numbers = nil | local numbers = nil | ||
local decl = {} | local decl = {} | ||
local word = | local word = NAMESPACE == "Template" and "vala" or parent_args.word or PAGENAME | ||
local args = {} | local args = {} | ||
Line 131: | Line 132: | ||
elseif param == "title" then | elseif param == "title" then | ||
return pass.forms.nom_sg[1] | return pass.forms.nom_sg[1] | ||
elseif param == "pagename" and NAMESPACE == "Template" then | |||
return "vala" | |||
elseif param == "pagename" then | elseif param == "pagename" then | ||
return PAGENAME | return PAGENAME |