Module:head/templates: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Tag: Reverted
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 = mw.title.getCurrentTitle().text
local term = mw.title.getCurrentTitle().subpageText
if language.proto then
if language.proto then
term = mw.ustring.gsub(term, "^[^/]+/", "")
term = mw.ustring.gsub(term, "^[^/]+/", "")

Navigation menu