Module:links: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
No edit summary
Line 7: Line 7:
local link = data.term
local link = data.term
local alt = data.alt or data.term
local alt = data.alt or data.term
local anchor = data.anchor or data.a
if data.language and data.language.proto then
if data.language and data.language.proto then
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
elseif data.language then
elseif data.language then
link = link .. "#" .. string.gsub(data.language.name, " ", "_")
local jump = data.language.name
if anchor then jump = data.language.code .. anchor end
link = link .. "#" .. string.gsub(jump, " ", "_")
end
end

Navigation menu