Module:siwa-headword: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 20: Line 20:
part = {term = part}
part = {term = part}
end
end
local partaccel = part.accel
local face = part.hypothetical and "hypothetical" or "bold"
local nolink = part.hypothetical or part.nolink
-- Convert the term into a full link
-- Convert the term into a full link
Line 33: Line 29:
alt = part.alt or (nolink and part.term or nil),
alt = part.alt or (nolink and part.term or nil),
lang = part.lang or data.lang,
lang = part.lang or data.lang,
sc = part.sc or parts.sc or (not part.lang and data.sc),
id = part.id,
genders = part.genders,
genders = part.genders,
tr = part.translit or (not (parts.enable_auto_translit or data.inflections.enable_auto_translit) and "-" or nil),
ts = part.transcription,
accel = parts.accel or partaccel,
},
},
face,
face,