Template:m: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<noinclude>
<noinclude>
===Usage===
===Usage===
[[description::This template serves to display '''morphemes''', primarily on pages that belong to the dictionary proper.]] For each morpheme, the template must be included separately. For example, in order to render the morpheme {{m|-al|al}}:
[[description::This template serves to display '''morphemes'''.]] For each morpheme, the template must be included separately. For example, in order to render the morpheme "{{m|-al|al}}":


<pre>
<pre>
Line 8: Line 8:


has to be written. The individual fields have the following functions:
has to be written. The individual fields have the following functions:
{|
{| class="table_data"
|<code>m</code>||name of the template
|<code>m</code>||name of the template
|-
|-
|<code>-al</code>||citation form of the morpheme, i.e. the name of the page
|<code>-al</code>||citation form of the morpheme, i.e. the name of the [[:Category:Morpheme|morpheme page]]
|-
|-
|<code>al</code>||display form of the morpheme; it can be omitted if the display and citation forms are identical, e.g.:
|<code>al</code>||display form of the morpheme; it can be omitted if the display and citation forms are identical, e.g.:
Line 20: Line 20:
</pre>
</pre>


If '''no property value''' is to be defined (for example, outside of form fiels reserved for morphological analysis), the field for the citation form is to be left blank; only the display form is to be specified. In the following example, this is {{m||-al}}:  
If '''no property value''' is to be defined (for example, outside of form fields reserved for morphological analysis), the field for the citation form is to be left blank; only the display form is to be specified. In the following example, this is "{{m||-al}}":  


<pre>
<pre>
{{m||-al}}
{{m||-al}}
</pre>
</pre>
Additionally, if such a morpheme is to be indexed and linked differently than it is to be displayed, a third parameter can be given as display form. E.g.
<pre>
{{m||-al|al}}
</pre>
will produce "{{m||-al|al}}", i.e. indexing and linking to "[[-al]]" but displaying "al".


===Results===
===Results===
*The '''display form''' will be displayed with a link to the citation form of the morpheme.
*The '''attested form''' (display form) will be displayed in translation with a link to the '''citation form''' (pagename) of the morpheme.  
*If the citation form is specified, the following properties will be defined:
*If the citation form is specified, the [[Property:word]] will be defined.
**[[Property:morpheme]] for the citation form,  
*[[Property:index]] will be defined for the citation form, or for the second parameter, if no citation form is defined.
*The '''link form''' will be indexed.


===Example===
===Example===
In order to display the morpheme sequence {{m|u̯al-|u̯al}}-{{m|au̯n-|au̯n}}-{{m|-al|al}}, the following has to be coded:
In order to display the morpheme sequence "{{m|þeris-|þeris}}-{{m|-na|na}}", the following has to be coded:
<pre>
<pre>
{{m|u̯al-|u̯al}}-{{m|au̯n-|au̯n}}-{{m|-al|al}}
{{m|þeris-|þeris}}-{{m|-na|na}}
</pre>
</pre>


For the same word {{m||u̯al-}}{{m||au̯n}}{{m||-al}}, but without defining properties:
For the same word "{{m||þeris-|þeris}}-{{m||-na|na}}", but without defining properties:
<pre>
<pre>
{{m||u̯al-}}{{m||au̯n}}{{m||-al}}
{{m||þeris-|þeris}}-{{m||-na|na}}
</pre>
</pre>


__NOTOC__
__NOTOC__
[[Category:Text Module]]
[[Category:Text Module]]
</noinclude><includeonly>{{#vardefine: link | {{{1|}}} }}{{#vardefine: display | {{{2|{{{1|}}}}}} }}{{#ifeq: {{#var: link }}||<span class="word">{{#ifexist: {{#var: display }}|[[{{#var: display }}]][[index::{{#var: display }}| ]]|{{#var: display }}}}</span>|<span class="word_inscription">[[{{#var: link }}|{{#var: display }}]][[morpheme::{{#var: link }}| ]][[index::{{#var: link }}| ]]}}</includeonly>
</noinclude><includeonly>{{#vardefine: morpheme | {{{1|}}} }}{{#vardefine: display |{{{2|{{{1|}}}}}} }}{{#ifeq: {{#var: morpheme}}||{{#vardefine: index | {{{2|}}} }}{{#vardefine: display |{{{3|{{{2|}}}}}} }}|{{#vardefine: index | {{#var: morpheme}} }} }}{{#ifeq: {{#var: morpheme }}||<span class="word">|<span class="word_inscription">}}{{#ifexist: {{#var: index }}|[[{{#var: index }}{{!}}{{#var: display }}]]|{{#var: display }}}}</span>[[morpheme::{{#var: morpheme}}| ]][[index::{{#var: index }}| ]]</includeonly>

Latest revision as of 17:21, 2 March 2014

Usage

This template serves to display morphemes. For each morpheme, the template must be included separately. For example, in order to render the morpheme "al":

{{m|-al|al}}

has to be written. The individual fields have the following functions:

m name of the template
-al citation form of the morpheme, i.e. the name of the morpheme page
al display form of the morpheme; it can be omitted if the display and citation forms are identical, e.g.:
{{m|-al}}

If no property value is to be defined (for example, outside of form fields reserved for morphological analysis), the field for the citation form is to be left blank; only the display form is to be specified. In the following example, this is "-al":

{{m||-al}}

Additionally, if such a morpheme is to be indexed and linked differently than it is to be displayed, a third parameter can be given as display form. E.g.

{{m||-al|al}}

will produce "al", i.e. indexing and linking to "-al" but displaying "al".


Results

  • The attested form (display form) will be displayed in translation with a link to the citation form (pagename) of the morpheme.
  • If the citation form is specified, the Property:word will be defined.
  • Property:index will be defined for the citation form, or for the second parameter, if no citation form is defined.

Example

In order to display the morpheme sequence "þeris-na", the following has to be coded:

{{m|þeris-|þeris}}-{{m|-na|na}}

For the same word "þeris-na", but without defining properties:

{{m||þeris-|þeris}}-{{m||-na|na}}