Template:p: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>__NOTOC__
<noinclude>
===Usage===
===Usage===
[[description::This template serves to display '''phonemes'''.]] For each phoneme, the template must be included separately. For example, in order to render the phoneme ''[[a]]'' (here with unknown quantity {{p|a|a(ː)}}):
[[description::This template serves to display '''phonemes'''.]] For each phoneme, the template must be included separately. For example, in order to render the phoneme ''[[a]]'' (here with unknown quantity {{p|a|a(ː)}}):
Line 20: Line 20:
</pre>
</pre>


If no property value is to be defined (for example, in the main text or when speaking about non-Lepontic phonemes), the field for the citation form is to be left blank; only the display form is to be specified. In the following examples, these are {{p||a(ː)}} and {{p||a}}:
If no property value is to be defined (for example, in the main text or when speaking about non-Raetic phonemes), the field for the citation form is to be left blank; only the display form is to be specified. In the following examples, these are {{p||a(ː)}} and {{p||a}}:
<pre>
<pre>
{{p||a(ː)}}
{{p||a(ː)}}
Line 42: Line 42:
{{p|ts|t<sup>s</sup>}}
{{p|ts|t<sup>s</sup>}}
</pre>
</pre>
__NOTOC__
[[Category:Text Module]]
[[Category:Text Module]]
</noinclude><includeonly><span class="phoneme">{{#if:{{{1}}} | [[{{{1}}}|{{{2|{{{1}}}}}}]][[phoneme::{{{1}}}| ]] | {{{2}}} }}</span></includeonly>
</noinclude><includeonly>{{#vardefine: phoneme | {{{1|}}} }}{{#vardefine: display |{{{2|{{{1|}}}}}} }}{{#ifeq: {{#var: phoneme}}||{{#vardefine: index | {{{2|}}} }}{{#vardefine: display |{{{3|{{{2|}}}}}} }}|{{#vardefine: index | {{#var: phoneme}} }} }}{{#ifeq: {{#var: phoneme}}||<span class="phoneme">|<span class="phoneme_word">}}{{#ifexist: {{#var: phoneme }}|[[{{#var: index }}{{!}}{{#var: display }}]]|{{#var: display }}}}</span>[[phoneme::{{#var: phoneme}}| ]][[index::{{#var: index }}| ]]</includeonly>

Revision as of 13:02, 23 July 2015

Usage

This template serves to display phonemes. For each phoneme, the template must be included separately. For example, in order to render the phoneme a (here with unknown quantity a(ː)):

{{p|a|a(ː)}}

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

p name of the template
a citation form of the phoneme, i.e. the name of the page
a(ː) display form of the phoneme; it can be omitted if the display and citation forms are identical, e.g.:
{{p|a}}

If no property value is to be defined (for example, in the main text or when speaking about non-Raetic phonemes), the field for the citation form is to be left blank; only the display form is to be specified. In the following examples, these are a(ː) and a:

{{p||a(ː)}}
{{p||a}}

Results

  • The display form of the phoneme will be displayed.
  • If the citation form is specified:
    • a link to its page will be included,
    • the Property:phoneme is defined for the phoneme.

Examples

(1) d/t:

{{p|d|d/t}}

(2) ts:

{{p|ts|t<sup>s</sup>}}