Module:links: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 189: Line 189:
-- Link to appendix for reconstructed terms and terms in appendix-only languages. Plain links interpret * literally, however.
-- Link to appendix for reconstructed terms and terms in appendix-only languages. Plain links interpret * literally, however.
elseif reconstructed == 1 then
elseif reconstructed then
if lang:getCode() == "und" then
if lang:getCode() == "und" then
return nil
return nil
else
else
target = "*" .. target
target = (target:match("^%*") and "" or "*") .. target
end
end
-- Reconstructed languages and substrates require an initial *.
-- Reconstructed languages and substrates require an initial *.
Line 210: Line 210:


elseif lang:hasType("appendix-constructed") then
elseif lang:hasType("appendix-constructed") then
target = "wik:Appendix:" .. lang:getCanonicalName() .. "/" .. target
target = "wikt:Appendix:" .. lang:getCanonicalName() .. "/" .. target
end
end


Navigation menu