Template:gloss/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
 
Line 2: Line 2:
{{uses lua|Module:form of/data|Module:gloss}}
{{uses lua|Module:form of/data|Module:gloss}}


Formats glosses: gloss forms are automatically displayed in small caps and are provided with hover definitions. Recognised abbreviations in [[Module:form of/data]] are also linked to the [[Appendix:Glossary|glossary]].
Formats glosses: gloss forms are automatically displayed in small capitals and are provided with hover definitions. Recognised abbreviations in [[Module:form of/data]] are also linked to the [[Appendix:Glossary|glossary]], negating any styling unless specified. The hover text itself will always remain.


==Usage==
==Usage==
Line 10: Line 10:


===Parameters===
===Parameters===
; {{para|nolink|1}}
; {{para|noline|1}}
: Force-disables styling of recognised glosses; mutually exclusive with {{para|style}}
; {{para|nolinks|1}}
: Disabling links means that all recognised abbreviations are now underlined to signal hover text. To disable this as well, use {{para|noline|1}}.
; {{para|style|}}
; {{para|style|}}
: Customises the styling of recognised glosses; mutually exclusive with {{para|noline}}


  {{tempn|gloss|'''nolink=1'''|sheep-NOM.SG 3S.ANIM-DAT REL<nowiki>{{=}}</nowiki>3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
Below are all possible parameter combinations:
: {{gloss|nolink=1|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
 
{{tempn|gloss|'''noline=1'''|sheep-NOM.SG 3S.ANIM-DAT REL<nowiki>{{=}}</nowiki>3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
: {{gloss|noline=1|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
 
  {{tempn|gloss|'''nolinks=1'''|sheep-NOM.SG 3S.ANIM-DAT REL<nowiki>{{=}}</nowiki>3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
: {{gloss|nolinks=1|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
 
{{tempn|gloss|'''noline=1'''|'''nolinks=1'''|sheep-NOM.SG 3S.ANIM-DAT REL<nowiki>{{=}}</nowiki>3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
: {{gloss|noline=1|nolinks=1|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}


  {{tempn|gloss|'''style=border: 1px solid'''|sheep-NOM.SG 3S.ANIM-DAT REL<nowiki>{{=}}</nowiki>3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
  {{tempn|gloss|'''style=border: 1px solid'''|sheep-NOM.SG 3S.ANIM-DAT REL<nowiki>{{=}}</nowiki>3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
: {{gloss|style=border: 1px solid|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
: {{gloss|style=border: 1px solid|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
{{tempn|gloss|'''nolinks=1'''|'''style=border: 1px solid'''|sheep-NOM.SG 3S.ANIM-DAT REL<nowiki>{{=}}</nowiki>3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
: {{gloss|nolinks=1|style=border: 1px solid|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}

Latest revision as of 20:33, 17 April 2025

Formats glosses: gloss forms are automatically displayed in small capitals and are provided with hover definitions. Recognised abbreviations in Module:form of/data are also linked to the glossary, negating any styling unless specified. The hover text itself will always remain.

Usage

To use the character =, it must be entered as {{=}}}.

{{gloss|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S}}
sheep-nom.sg 3s.anim-dat rel=3s wool-gen.sg neg.pst-depers.sg horse-pl-acc see.pst-ind-3s

Parameters

|noline=1
Force-disables styling of recognised glosses; mutually exclusive with |style=
|nolinks=1
Disabling links means that all recognised abbreviations are now underlined to signal hover text. To disable this as well, use |noline=1.
|style=
Customises the styling of recognised glosses; mutually exclusive with |noline=

Below are all possible parameter combinations:

{{gloss|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S|noline=1}}
sheep-nom.sg 3s.anim-dat rel=3s wool-gen.sg neg.pst-depers.sg horse-pl-acc see.pst-ind-3s
{{gloss|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S|nolinks=1}}
sheep-nom.sg 3s.anim-dat rel=3s wool-gen.sg neg.pst-depers.sg horse-pl-acc see.pst-ind-3s
{{gloss|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S|noline=1|nolinks=1}}
sheep-nom.sg 3s.anim-dat rel=3s wool-gen.sg neg.pst-depers.sg horse-pl-acc see.pst-ind-3s
{{gloss|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S|style=border: 1px solid}}
sheep-nom.sg 3s.anim-dat rel=3s wool-gen.sg neg.pst-depers.sg horse-pl-acc see.pst-ind-3s
{{gloss|sheep-NOM.SG 3S.ANIM-DAT REL{{=}}3S wool-GEN.SG NEG.PST-DEPERS.SG horse-PL-ACC see.PST-IND-3S|nolinks=1|style=border: 1px solid}}
sheep-nom.sg 3s.anim-dat rel=3s wool-gen.sg neg.pst-depers.sg horse-pl-acc see.pst-ind-3s