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 = string.gsub(string.gsub(language.name, " ", "_"), "%-", "%-")
appendix = "Appendix:" .. appendix .. "/"
term = string.gsub(term, appendix, "")
term = string.gsub(term, appendix, "")
end
end