Module:qhv-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 122: Line 122:
local function link(term)
local function link(term)
local nom = pass.forms["nom_sg"]
local links = {}
local links = {}
for alt in gmatch(term, "([^%s,]+)") do
for alt in gmatch(term, "([^%s,]+)") do
alt = "[[Contionary:" .. alt .. (term == nom and "" or "#High Valyrian") .. "|" .. alt .. "]]"
alt = "[[Contionary:" .. alt .. "|" .. alt .. "]]"
table.insert(links, alt)
table.insert(links, alt)
end
end