Module:head/templates: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 47: Line 47:
local term = p["head"] or mw.title.getCurrentTitle().text
local term = p["head"] or mw.title.getCurrentTitle().text
if language.proto then
if language.proto then
local appendix = "Appendix:" .. string.gsub(language.name, " ", "_") .. "/"
local appendix = "Appendix:" .. string.sub(language.name, " ", "_") .. "/"
if string.find(term, appendix) then
term = string.sub(term, appendix, "")
term = string.sub(term, #appendix + 1)
end
end
end
return {
return {