12,564
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
| Line 17: | Line 17: | ||
local l_gloss = m_data.aliases[gloss_code] | local l_gloss = m_data.aliases[gloss_code] | ||
local l = m_data.labels[l_gloss] | local l = m_data.labels[l_gloss] | ||
if l then | if l then l_gloss = type(l.glossary) == "string" and l.glossary or l.label end | ||
-- format hover | |||
glosslet_format = frame:expandTemplate{title = "hover", args = {glosslet_format, l_gloss, noline = args.noline or (args.style == nil and l and args.nolink == nil), style = args.style}} | glosslet_format = frame:expandTemplate{title = "hover", args = {glosslet_format, l_gloss, noline = args.noline or (args.style == nil and l and args.nolink == nil), style = args.style}} | ||
if l and args.nolink == nil then glosslet_format = "[[Appendix:Glossary#" .. l_gloss .. "|" .. glosslet_format .. "]]" end | |||
-- format links (hover and links MUST be in this order) | |||
end | end | ||
gloss_keys[glosslet] = '<span style="font-variant: small-caps">' .. glosslet_format .. '</span>' | gloss_keys[glosslet] = '<span style="font-variant: small-caps">' .. glosslet_format .. '</span>' | ||