Module:links: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 10: Line 10:
local plaenk_alt = mw.loadData("Module:lnk-pro-morph/data").alt
local plaenk_alt = mw.loadData("Module:lnk-pro-morph/data").alt
if data.language.code == "lnk-pro" and plaenk_alt[link] then link = plaenk_alt[link] end
if data.language and data.language.proto then
if data.language then
if not data.nostar then alt = "*" .. alt end -- * is an asterisk but sometimes the asterisk gets mistaken for wiki formatting
link = "Appendix:" .. data.language.name .. "/" .. data.term
if data.language.code == "lnk-pro" and plaenk_alt[link] then link = plaenk_alt[link] end
if anchor then link = link .. "#" .. data.language.name .. anchor end
elseif data.language then
if data.language.proto then
local jump = data.language.name
if not data.nostar then alt = "*" .. alt end -- * is an asterisk but sometimes the asterisk gets mistaken for wiki formatting
if anchor then jump = data.language.name .. anchor end
link = "Appendix:" .. data.language.name .. "/" .. data.term
link = link .. "#" .. string.gsub(jump, " ", "_")
if anchor then link = link .. "#" .. data.language.name .. anchor end
else
local jump = data.language.name
if anchor then jump = data.language.name .. anchor end
link = link .. "#" .. string.gsub(jump, " ", "_")
end
end
end

Navigation menu