Template:gloss grid/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
 
Line 46: Line 46:
=== Example ===
=== Example ===
  <nowiki>{{</nowiki>[[Template:gloss grid|gg]]|rad
  <nowiki>{{</nowiki>[[Template:gloss grid|gg]]|rad
  |Gaks,:gaks<p:{{rad-IPA|Gaks,|phon}}><g:sheep-NOM.SG>
  |Gaks,:gaks<p:{{rad-IPA|Gaks,|phon}}><g:sheep-NOM.SG><t:SUBJECT>
  |vân<p:{{rad-IPA|vân|phon}}><g:3S.ANIM-DAT>
  |vân<p:{{rad-IPA|vân|phon}}><g:3S.ANIM-DAT>
  |gjeș<p:{{rad-IPA|gjeș|phon}}><g:REL<nowiki>{{=}}</nowiki>3S>
  |gjeș<p:{{rad-IPA|gjeș|phon}}><g:REL<nowiki>{{=}}</nowiki>3S>
  |<nowiki>'''h'''</nowiki>reņuog<p:{{rad-IPA|hreņuog|phon}}><g:wool-GEN.SG><t:You could use in-line translations to add notes>
  |<nowiki>'''h'''</nowiki>reņuog<p:{{rad-IPA|hreņuog|phon}}><g:wool-GEN.SG><t:You could use in-line translations to add notes>
  |húe,<p:{{rad-IPA|húe,|phon}}><g:NEG.PST-DISJ.SG>
  |húe,<p:{{rad-IPA|húe,|phon}}><g:NEG.PST-DISJ.SG>
  |híðirid<p:{{rad-IPA|híðirid|phon}}><g:horse-PL-ACC>
  |híðirid<p:{{rad-IPA|híðirid|phon}}><g:horse-PL-ACC><t:OBJECT>
  |vareș,<p:{{rad-IPA|vareș|phon}}><g:see.PST-IND-3S>
  |vareș,<p:{{rad-IPA|vareș|phon}}><g:see.PST-IND-3S><t:VERB>
  |t=A sheep that had no wool saw horses,
  |t=A sheep that had no wool saw horses,
  }}
  }}
{{gloss grid|rad|t=A sheep that had no wool saw horses,
{{gloss grid|rad|t=A sheep that had no wool saw horses,
|Gaks, :gaks<p:{{rad-IPA|Gaks,|phon}}><g:sheep-NOM.SG>
|Gaks, :gaks<p:{{rad-IPA|Gaks,|phon}}><g:sheep-NOM.SG><t:SUBJECT>
|vân<p:{{rad-IPA|vân|phon}}><g:3S.ANIM-DAT>
|vân<p:{{rad-IPA|vân|phon}}><g:3S.ANIM-DAT>
|gjeș<p:{{rad-IPA|gjeș|phon}}><g:REL{{=}}3S>
|gjeș<p:{{rad-IPA|gjeș|phon}}><g:REL{{=}}3S>
|'''h'''reņuog<p:{{rad-IPA|hreņuog|phon}}><g:wool-GEN.SG><t:You could use in-line translations to add notes>
|'''h'''reņuog<p:{{rad-IPA|hreņuog|phon}}><g:wool-GEN.SG><t:You could use in-line translations to add notes>
|húe,<p:{{rad-IPA|húe,|phon}}><g:NEG.PST-DISJ.SG>
|húe,<p:{{rad-IPA|húe,|phon}}><g:NEG.PST-DISJ.SG>
|híðirid<p:{{rad-IPA|híðirid|phon}}><g:horse-PL-ACC>
|híðirid<p:{{rad-IPA|híðirid|phon}}><g:horse-PL-ACC><t:OBJECT>
|vareș,<p:{{rad-IPA|vareș|phon}}><g:see.PST-IND-3S>
|vareș,<p:{{rad-IPA|vareș|phon}}><g:see.PST-IND-3S><t:VERB>
  }}
  }}

Latest revision as of 15:49, 20 April 2025

Edit-copy green.svg Documentation for Template:gloss grid. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

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=<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.
    |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'''aksgaks
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><t:SUBJECT>
|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><t:OBJECT>
|vareș,<p:ˈvarɛʃ><g:see.PST-IND-3S><t:VERB>
|t=A sheep that had no wool saw horses,
}}