12,564
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
| Line 17: | Line 17: | ||
local l = m_data.labels[m_data.aliases[gloss_code]] | local l = m_data.labels[m_data.aliases[gloss_code]] | ||
local l_gloss = m_data.aliases[gloss_code] | local l_gloss = m_data.aliases[gloss_code] | ||
if l then l_gloss = type(l.glossary) == "string" and l.glossary or l.label end | if l then | ||
glosslet_format = frame:expandTemplate{title = "hover", args = {glosslet_format, l_gloss, noline = args.style == nil, style = args.style | l_gloss = type(l.glossary) == "string" and l.glossary or l.label | ||
if args.nolink == nil then glosslet_format = "[[Appendix:Glossary#" .. l_gloss .. "|" .. glosslet_format .. "]]" end | |||
end | |||
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, nolink = args.nolink}} | |||
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>' | ||