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