Template:w: Difference between revisions
From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
Martin Braun (talk | contribs) No edit summary |
Martin Braun (talk | contribs) No edit summary |
||
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| | [[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|pitamne|?itamne}}): | ||
<pre> | <pre> | ||
{{w| | {{w|pitamne|?itamne}} | ||
</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> | |<code>pitamne</code>||citation form of the word, i.e. the name of the page | ||
|- | |- | ||
|<code> | |<code>?itamne</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| | {{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|| | 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||?itamne}} and {{w||pitamne}}: | ||
<pre> | <pre> | ||
{{w|| | {{w||?itamne}} | ||
{{w|| | {{w||pitamne}} | ||
</pre> | </pre> | ||
Line 33: | Line 33: | ||
===Example=== | ===Example=== | ||
In order to code and display the words {{w| | In order to code and display the words ''{{w|pitamne}} {{w|helanu}}'' for an inscription, assuming that the form {{w||?itamne}} is actually attested and that its citation form is {{w||pitamne}}, the following has to be coded: | ||
<pre> | <pre> | ||
{{w| | {{w|pitamne|?itamne}} {{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: 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> |
Revision as of 17:54, 14 July 2013
Usage
This template serves to display words. For each word, the template must be included separately. For example, in order to render the word ?itamne):
{{w|pitamne|?itamne}}
has to be written. The individual fields have the following functions:
w |
name of the template |
pitamne |
citation form of the word, i.e. the name of the page |
?itamne |
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 ?itamne and pitamne:
{{w||?itamne}} {{w||pitamne}}
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:
- Property:word for the citation form,
- Property:word_variant for the display form of the word.
Example
In order to code and display the words pitamne helanu for an inscription, assuming that the form ?itamne is actually attested and that its citation form is pitamne, the following has to be coded:
{{w|pitamne|?itamne}} {{w|helanu}}