• Home
  • Random
  • Nearby
  • Log in
  • Settings
  • Donate
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Gcl

Template Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Interlinear (sandbox)

This template formats a single linguistic glossing abbreviation (a grammatical category label). For example, {{gcl|CONT}} produces: CONT. Hovering the mouse over the abbreviation displays a tooltip with its meaning, which in this case is "continuous aspect". To specify a meaning different from the default one,[1] pass it as a second parameter after the abbreviation itself: {{gcl|CONT|continuative}} gives: CONT.

The abbreviation will be rendered as a link to the relevant article if the |glossing= parameter is set to wikilink, thus {{gcl|CLF|glossing=wikilink}} gives: CLF. The wikipedia article is specified by the third parameter: {{gcl|CLF|classifier|Chinese classifier}} gives: CLF. The presence of this third parameter (even if empty) will force the abbreviation to be displayed as a wikilink – {{gcl|CLF||}} is equivalent to {{gcl|CLF|glossing=wikilink}}.

This template is mainly used within {{interlinear}}. It will exempt its content from the default glossing behaviour in the interlinear text. This can be needed in several circumstances:

  • to set the meaning of an abbreviation that is otherwise not recognised;
  • to use an abbreviation with a meaning different from the default one, or linking to a different article from the default one;
  • to apply formatting to a portion of a glossing abbreviation (within {{interlinear}} this would prevent the abbreviation from being recognised);
  • to exempt an abbreviation from the default {{interlinear}} formatting. To this end, two further values of the |glossing= parameter can be used: |glossing=no link will force the use of the default formatting as an abbreviation with a tooltip, without turning it into a wikilink; |glossing=no abbr will only format the label in small caps without treating it as an abbreviation. Additional CSS styles[2] can be set using the |style= parameter.

To prevent a string from being treated as a glossing label at all, use {{no gloss}}.

NotesEdit

  1. ^ The default assignments come from the module data page.
  2. ^ See https://www.w3schools.com/html/html_styles.asp, with the caveat that not all html features are available in wikitext, see Help:HTML in wikitext.
The above documentation is transcluded from Template:Gcl/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Gcl&oldid=870412681"
Last edited on 24 November 2018, at 17:02

Languages

    • Basa Bali
    • Bahasa Indonesia
    • Tok Pisin
    Wikipedia
    • This page was last edited on 24 November 2018, at 17:02 (UTC).
    • Content is available under CC BY-SA 3.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Terms of Use
    • Desktop
    • Developers
    • Statistics
    • Cookie statement