Module:links: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
mNo 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
if data.language and data.language.proto then
alt = "*" .. alt
if link == mw.title.getCurrentTitle().subpageText then
link = "Appendix:" .. data.language.name .. "/" .. data.term
if data.language.proto then
elseif data.language then
alt = "*" .. alt
link = link .. "#" .. string.gsub(data.language.name, " ", "_")
end
return "<b>" .. alt .. "</b>"
else
if data.language and data.language.proto then
alt = "*" .. alt
link = "Appendix:" .. data.language.name .. "/" .. data.term
elseif data.language then
link = link .. "#" .. string.gsub(data.language.name, " ", "_")
end
return "[[" .. link .. "|" .. alt .. "]]"
end
end
return "[[" .. link .. "|" .. alt .. "]]"
end
end


Navigation menu