10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) 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 and data.language.proto then | if data.language then | ||
if data.language.code == "lnk-pro" and plaenk_alt[link] then link = plaenk_alt[link] end | |||
if data.language.proto 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 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 | ||