Template:Gloss/indexable: Difference between revisions

From Linguifex
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Col-begin}}
{{Col-begin}}
{{Col-2}}:'''''{{{phrase|}}}'''''<br>{{#if:{{{pinyin|}}}}''{{{pinyin|}}}''<br>|}}{{{IPA|}}}<br><small>{{#if:{{{morphemes|}}}|{{{morphemes|}}}<br>|}}{{{gloss|}}}</small><br>''{{{translation|}}}''
{{Col-2}}:'''''{{{phrase|}}}'''''<br>{{#if:{{{pinyin|}}}|''{{{pinyin|}}}''<br>|}}{{{IPA|}}}<br><small>{{#if:{{{morphemes|}}}|{{{morphemes|}}}<br>|}}{{{gloss|}}}</small><br>''{{{translation|}}}''
{{Col-2}}({{{index|}}})
{{Col-2}}({{{index|}}})
{{Col-end}}<noinclude>{{documentation}}</noinclude>
{{Col-end}}<noinclude>{{documentation}}</noinclude>

Revision as of 17:31, 29 February 2016

Template:Col-2:'''''


'
Template:Col-2()


See also: Glossing key and Glossing

The Gloss/indexable template is used to produce a quickly and consistently formatted gloss of a phrase.

Usage

Paste the following code to your page:

{{Gloss/indexable
|phrase = 
|pinyin = 
|IPA = 
| morphemes = 
| gloss = 
| translation = 
| index =
}}

Example

The following code;

{{Gloss/indexable
|phrase = I'm here.
|IPA = /aɪ̯m hiːɚ/
| morphemes = I-am here
| gloss = 1.SG.NOM-to be.1.SG here.ADV
| translation = I am here.
| index = 1
}}

grants this result:


Template:Col-2:I'm here.
/aɪ̯m hiːɚ/
I-am here
1.SG.NOM-to be.1.SG here.ADV

I am here.Template:Col-2(1)


Please note that when using the template in succession, do not break any lines or make any spaces; the best formatting is simply:

{{Gloss/indexable
|phrase = I'm here.
|IPA = /aɪ̯m hiːɚ/
| morphemes = I-am here
| gloss = 1.SG.NOM-to be.1.SG here.ADV
| translation = I am here.
| index = 1
}}{{Gloss/indexable
|phrase = I'm here.
|IPA = /aɪ̯m hiːɚ/
| morphemes = I-am here
| gloss = 1.SG.NOM-to be.1.SG here.ADV
| translation = I am here.
| index = 2
}}

Which grants this result:


Template:Col-2:I'm here.
/aɪ̯m hiːɚ/
I-am here
1.SG.NOM-to be.1.SG here.ADV

I am here.Template:Col-2(1)
Template:Col-2:I'm here.
/aɪ̯m hiːɚ/
I-am here
1.SG.NOM-to be.1.SG here.ADV

I am here.Template:Col-2(2)