Template:Glossabb

From Linguifex
Revision as of 13:02, 9 February 2020 by MIGUELbM (talk | contribs) (Created page with "<abbr title="{{#if:{{{1|}}}|{{{1}}}|{{#switch:{{lc:{{{2|}}}}} |abe = abessive case ('without') |abl = ablative case ('from') |abs = absolutive case |acc = accusative case |acc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{2}}}


Template that automatically applies small caps and adds a hover tooltip to glossing abbreviations. Almost all abbreviations in the glossing guide are available, barring S, P, O and some affixes like n-. The tooltip includes the full description in the guide minus cross references, this means that some abbreviations like {{{2}}} might be ambiguous, in such cases the template allows you to define your own tooltip. The same applies for abbreviations not in the guide.

Code Result
{{glossabb|obj}} {{{2}}}
{{glossabb|pot}} {{{2}}}
{{glossabb|int}} {{{2}}}
{{glossabb|int|interrogative}} interrogative
{{glossabb|xxx}} {{{2}}}
{{glossabb|xxx|custom description}} custom description

Note that this does not produce uppercase letters along with smallcaps, for that you need to use Template:Abbtip

To the admins, if this is a resource hog I can adapt it for use with substitution + Abbtip instead.