Module:head/templates: Difference between revisions

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