Template:w: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
===Usage===
===Usage===
[[description::This template serves to display '''words'''.]] For each word, the template must be included separately. For example, in order to render the word {{w|pala|pal.}}):
[[description::This template serves to display '''words'''.]] For each word, the template must be included separately. For example, in order to render the word "{{w|piθamne}}" with an unclear first letter:


<pre>
<pre>
{{w|pala|pal.}}
{{w|piθamne|?iθamne}}
</pre>
</pre>


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>w</code>||name of the template
|<code>w</code>||name of the template
|-
|-
|<code>pala</code>||citation form of the word, i.e. the name of the page
|<code>piθamne</code>||citation form of the word, i.e. the name of the [[:Category:Word|word page]]
|-
|-
|<code>pal.</code>||actually attested form of the word, display form of the word; it can be omitted if it is identical with the citation form, e.g.:
|<code>?iθamne</code>||actually attested form of the word, display form of the word; it can be omitted if it is identical with the citation form, e.g.:
|}
|}


<pre>
<pre>
{{w|pala}}
{{w|pitamne}}
</pre>
</pre>


If '''no property value''' is to be defined (for example, outside of inscriptions), the field for the citation form is to be left blank and only the display form is to be specified. In the following examples, these are {{w||pal.}} and {{w||pala}}:  
If '''no property value''' is to be defined (for example, outside of inscriptions), the field for the citation form is to be left blank and only the display form is to be specified. In the following examples, these are "{{w||?iθamne}}" and "{{w||piθamne}}" respectively:  
<pre>
<pre>
{{w||pal.}}
{{w||?iθamne}}
{{w||pala}}
{{w||piθamne}}
</pre>
</pre>
Additionally, if such a word 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>
{{w||piθamne|?iθamne}}
</pre>
will produce "{{w||piθamne|?iθamne}}", i.e. indexing and linking to "[[piθamne]]" but displaying "?iθamne".


===Results===
===Results===
*The '''attested form''' will be displayed in translation with a link to the '''citation form''' of the word.  
*The '''attested form''' will be displayed in translation with a link to the '''citation form''' of the word.  
*If the citation form is specified, the following properties will be defined:  
*If the citation form is specified, the following properties will be defined:  
**[[Property:word]] for the citation form,  
**[[Property:word]] for the citation form, and
**[[Property:word_variant]] for the display form of the word.  
**[[Property:index]] for the citation form of the word.  


===Example===
===Example===
In order to code and display the words {{w|ualaunal}} {{w|raneni|ranen.}} for an inscription, assuming that the form {{w||ranen.}} is actually attested and that its citation form is {{w||raneni}}, the following has to be coded:
In order to code and display the words "{{w|piθamne|?iθamne}} {{w|helanu}}" for an inscription, assuming that the form "{{w||?iθamne}}" is actually attested and that its citation form is "{{w||piθamne}}", the following has to be coded:
<pre>
<pre>
{{w|ualaunal}} {{w|raneni|ranen.}}
{{w|piθamne|?iθamne}} {{w|helanu}}
</pre>
</pre>
__NOTOC__
__NOTOC__
[[Category:Text Module]]
[[Category:Text Module]]
</noinclude><includeonly>{{#vardefine: link | {{{1|}}} }}{{#vardefine: linktext | {{{2|{{{1|}}}}}} }}{{#ifeq: {{#var: link }}||<span class="word">{{#ifexist: {{{2|}}}|[[{{{2|}}}]][[index::{{{2}}}| ]]|{{{2|}}}}}</span>|<span class="word_inscription">{{#ifexist: {{#var: link }}|[[{{#var: link }}{{!}}{{#var: linktext }}]]|{{#var: linktext }} }}</span>[[word_variant::{{{1}}}: {{{2|{{{1|}}}}}}| ]][[word::{{{1}}}| ]][[index::{{{1}}}| ]] }}</includeonly>
</noinclude><includeonly>{{#vardefine: word | {{{1|}}} }}{{#vardefine: display |{{{2|{{{1|}}}}}} }}{{#ifeq: {{#var: word}}||{{#vardefine: index | {{{2|}}} }}{{#vardefine: display |{{{3|{{{2|}}}}}} }}|{{#vardefine: index | {{#var: word}} }} }}{{#ifeq: {{#var: word }}||<span class="word">|<span class="word_inscription">}}{{#ifexist: {{#var: index }}|[[{{#var: index }}{{!}}{{#var: display }}]]|{{#var: display }}}}</span>[[word::{{#var: word}}| ]][[index::{{#var: index }}| ]]</includeonly>

Latest revision as of 18:39, 28 January 2014

Usage

This template serves to display words. For each word, the template must be included separately. For example, in order to render the word "piθamne" with an unclear first letter:

{{w|piθamne|?iθamne}}

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

w name of the template
piθamne citation form of the word, i.e. the name of the word page
?iθamne actually attested form of the word, display form of the word; it can be omitted if it is identical with the citation form, e.g.:
{{w|pitamne}}

If no property value is to be defined (for example, outside of inscriptions), the field for the citation form is to be left blank and only the display form is to be specified. In the following examples, these are "?iθamne" and "piθamne" respectively:

{{w||?iθamne}}
{{w||piθamne}}

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

{{w||piθamne|?iθamne}}

will produce "?iθamne", i.e. indexing and linking to "piθamne" but displaying "?iθamne".

Results

  • The attested form will be displayed in translation with a link to the citation form of the word.
  • If the citation form is specified, the following properties will be defined:

Example

In order to code and display the words "?iθamne helanu" for an inscription, assuming that the form "?iθamne" is actually attested and that its citation form is "piθamne", the following has to be coded:

{{w|piθamne|?iθamne}} {{w|helanu}}