Template:gloss grid/documentation: Difference between revisions
Jump to navigation
Jump to search
TheNightAvl (talk | contribs) |
TheNightAvl (talk | contribs) No edit summary |
||
| Line 21: | Line 21: | ||
*; {{para|nolinks|1}}, {{para|nolink|1}} | *; {{para|nolinks|1}}, {{para|nolink|1}} | ||
*: disables linked head terms | *: disables linked head terms | ||
*; {{para|phnm|1}} | |||
*: switches to broad transcription bracketing in term-level IPA row | |||
* Term-level parameters are specified [[Module:inline|in-line]]; all are optional. | * Term-level parameters are specified [[Module:inline|in-line]]; all are optional. | ||
*; {{para|''n''|<alt:>}}, {{para|''n''|<anchor:>}}, {{para|''n''|<hypo>}}, {{para|''n''|<nolink>}} etc. | *; {{para|''n''|<alt:>}}, {{para|''n''|<anchor:>}}, {{para|''n''|<hypo>}}, {{para|''n''|<nolink>}} etc. | ||
| Line 32: | Line 34: | ||
=== Functionality === | === Functionality === | ||
; Automatic transcription bracketing with term-level IPA row | |||
: Assumed to be narrow transcription; for broad transcription, use {{para|phnm|1}}. | |||
; Manual bolding | ; Manual bolding | ||
: <code>|<nowiki>'''g'''aks</nowiki></code> → {{m|rad|gaks|'''g'''aks}} | : <code>|<nowiki>'''g'''aks</nowiki></code> → {{m|rad|gaks|'''g'''aks}} | ||
Revision as of 23:49, 16 April 2025
| Uses Lua: |
| Shortcut
{{gg}} |
This template creates aligned glosses, similar to Wiktionary's Interlinear template.
Usage
Parameters
There are two types of parameters:
- Phrase-level parameters are specified as standard template parameters.
|1=(required)- language code, e.g.
rad |2…n=(required)- terms
|t=(optional)- phrase-level translation
|pr=,|p=,|ipa=(optional)- phrase-level IPA
|bold=1- makes all head terms bold
|nolinks=1,|nolink=1- disables linked head terms
|phnm=1- switches to broad transcription bracketing in term-level IPA row
- Term-level parameters are specified in-line; all are optional.
|n=<alt:>,|n=<anchor:>,|n=<hypo>,|n=<nolink>etc.- All parameters available in standard link templates can be used in-line.
- N.B. term-level translations using
|n=<t:>will move to their own row.
- N.B. term-level translations using
|n=<gl:>,|n=<g:>- term-level glossing
- If you need to use the character
=in the gloss, you must use{{=}}or the entire argument will not render.
- If you need to use the character
|n=<pr:>,|n=<p:>,|n=<ipa:>- term-level IPA
Functionality
- Automatic transcription bracketing with term-level IPA row
- Assumed to be narrow transcription; for broad transcription, use
|phnm=1. - Manual bolding
|'''g'''aks→ gaks- Punctuation separation
- Punctuation found at the beginnings or ends of individual terms are separated.
|gaks,→ gaks,- Shortcut for
|word<alt:display> |Nēphas:nephas=|nephas<alt:Nēphas>→ Nēphas
Example
{{gg|rad
|Gaks,:gaks<p:ɡaks | ><g:sheep-NOM.SG>
|vân<p:vɤn><g:3S.ANIM-DAT>
|gjeș<p:jɛʃ><g:REL{{=}}3S>
|'''h'''reņuog<p:ˈxrɛŋuoɡ><g:wool-GEN.SG><t:You could use in-line translations to add notes>
|húe,<p:ˈhuːɛ | ><g:NEG.PST-DISJ.SG>
|híðirid<p:ˈhiːðirid><g:horse-PL-ACC>
|vareș,<p:ˈvarɛʃ><g:see.PST-IND-3S>
|t=A sheep that had no wool saw horses,
}}
| Gaks, | vân | gjeș | hreņuog | húe, | híðirid | vareș, | |
| [ | ɡaks | | vɤn | jɛʃ | ˈxrɛŋuoɡ | ˈhuːɛ | | ˈhiːðirid | ˈvarɛʃ ] |
| sheep-nom.sg | 3s.anim-dat | rel=3s | wool-gen.sg | neg.pst-disj.sg | horse-pl-acc | see.pst-ind-3s | |
| You could use in-line translations to add notes | |||||||
| “A sheep that had no wool saw horses,” | |||||||