Module:head/templates: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 45: Line 45:
local p = m_parameters.process(args, params)
local p = m_parameters.process(args, params)
local language = m_languages.get_by_code(p[1])
local language = m_languages.get_by_code(p[1])
local term = p["head"] or mw.title.getCurrentTitle().text
local term = mw.title.getCurrentTitle().text
if language.proto then
if language.proto then
local appendix = string.gsub(string.gsub(language.name, " ", "_"), "%-", "%%-")
local appendix = string.gsub(string.gsub(language.name, " ", "_"), "%-", "%%-")
Line 54: Line 54:
term = term,
term = term,
language = language,
language = language,
head = p["head"],
pos = p[2],
pos = p[2],
genders = p["g"],
genders = p["g"],

Navigation menu