12,564
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
| Line 21: | Line 21: | ||
if l_gloss then -- check valid gloss (does not necessarily check for standardised glossing practices, just whatever is in form of/data) | if l_gloss then -- check valid gloss (does not necessarily check for standardised glossing practices, just whatever is in form of/data) | ||
local l = m_data.labels[l_gloss] | local l = m_data.labels[l_gloss] | ||
if l then l_gloss = | if l then l_gloss = l.label end -- check if label has glossary text and update | ||
glosslet_format = frame:expandTemplate{title = "hover", args = {glosslet_format, l_gloss, noline = args.noline or (args.style == nil and l and args.nolinks == nil), style = args.style}} --[[ format hover text (I spent ages agonising over the logic in excel for the conditions of this system, so here it is) | glosslet_format = frame:expandTemplate{title = "hover", args = {glosslet_format, l_gloss, noline = args.noline or (args.style == nil and l and args.nolinks == nil), style = args.style}} --[[ format hover text (I spent ages agonising over the logic in excel for the conditions of this system, so here it is) | ||
LINKS ENABLED? IN GLOSSARY? (L) NOLINK=1 STYLE NOLINE=1 LINE DISPLAYED? FINAL BOOLEAN FOR NO LINE | LINKS ENABLED? IN GLOSSARY? (L) NOLINK=1 STYLE NOLINE=1 LINE DISPLAYED? FINAL BOOLEAN FOR NO LINE | ||