Module:links: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 12: Line 12:
alt = "*" .. alt
alt = "*" .. alt
link = "Appendix:" .. data.language.name .. "/" .. data.term
link = "Appendix:" .. data.language.name .. "/" .. data.term
if anchor then link = link .. "#" .. data.language.code .. anchor end
if anchor then link = link .. "#" .. data.language.name .. anchor end
elseif data.language then
elseif data.language then
local jump = data.language.name
local jump = data.language.name
if anchor then jump = data.language.code .. anchor end
if anchor then jump = data.language.name .. anchor end
link = link .. "#" .. string.gsub(jump, " ", "_")
link = link .. "#" .. string.gsub(jump, " ", "_")
end
end

Navigation menu