Template:m: Difference between revisions
Martin Braun (talk | contribs) No edit summary |
Martin Braun (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
===Usage=== | ===Usage=== | ||
[[description::This template serves to display '''morphemes''' | [[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 | 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 ''' | *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 | *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=== | ===Example=== | ||
In order to display the morpheme sequence {{m| | In order to display the morpheme sequence "{{m|þeris-|þeris}}-{{m|-na|na}}", the following has to be coded: | ||
<pre> | <pre> | ||
{{m| | {{m|þeris-|þeris}}-{{m|-na|na}} | ||
</pre> | </pre> | ||
For the same word {{m|| | For the same word "{{m||þeris-|þeris}}-{{m||-na|na}}", but without defining properties: | ||
<pre> | <pre> | ||
{{m|| | {{m||þeris-|þeris}}-{{m||-na|na}} | ||
</pre> | </pre> | ||
__NOTOC__ | __NOTOC__ | ||
[[Category:Text Module]] | [[Category:Text Module]] | ||
</noinclude><includeonly>{{#vardefine: | </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 16: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}}