10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) 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( | local jump = data.language.name | ||
if anchor then jump = data.language.code .. anchor end | |||
link = link .. "#" .. string.gsub(jump, " ", "_") | |||
end | end | ||