Template:c: Difference between revisions
Martin Braun (talk | contribs) No edit summary |
Martin Braun (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 40: | Line 40: | ||
===Example=== | ===Example=== | ||
In order to display the | In order to display the word {{w||enθus}} in sinistroverse North Italic script, in primary character variants except for an '''U<sub>2</sub>''', i.e. {{c|S}}{{c|U|U2}}{{c|Θ}}{{c|N}}{{c|E}}, the following has to be coded: | ||
<pre> | <pre>{{c|S}}{{c|U|U2}}{{c|Θ}}{{c|N}}{{c|E}}</pre> | ||
{{c| | |||
</pre> | For the same word, but only the '''S''' turned against the sinistroverse writing direction, i.e. {{c|S||d}}{{c|U|U2}}{{c|Θ}}{{c|N}}{{c|E}}: | ||
For the same word, but in dextroverse direction | <pre>{{c|S||d}}{{c|U|U2}}{{c|Θ}}{{c|N}}{{c|E}}</pre> | ||
For the same word, but written in dextroverse direction, i.e. {{c|E||d}}{{c|N||d}}{{c|Θ||d}}{{c|U|U2|d}}{{c|S||d}}: | |||
<pre>{{c|E||d}}{{c|N||d}}{{c|Θ||d}}{{c|U|U2|d}}{{c|S||d}}</pre> | |||
For the same as in the three above examples, but without defining properties for the occurrence of the characters (i.e. with empty first parameters): | |||
<pre> | <pre> | ||
{{c|| | {{c||S}}{{c||U2}}{{c||Θ}}{{c||N}}{{c||E}} | ||
{{c||S|d}}{{c||U2}}{{c||Θ}}{{c||N}}{{c||E}} | |||
{{c||E|d}}{{c||N|d}}{{c||Θ|d}}{{c||U2|d}}{{c||S|d}} | |||
</pre> | </pre> | ||
__NOTOC__ | __NOTOC__ | ||
[[Category:Text Module]] | [[Category:Text Module]] | ||
</noinclude><includeonly> | </noinclude><includeonly>{{#vardefine: cvar|{{{2|}}}}}{{#ifeq: {{#var: cvar}}||{{#vardefine: cvar|{{{1|}}}}}}}{{#vardefine: cdir|s}}{{#ifeq:{{{3|}}}|d|{{#vardefine: cdir|d}}}}{{#vardefine: cfile|{{#var: cvar}}{{#ifeq: {{#var: cdir}}|d|d}}.png}}[[Image:{{#var: cfile}}|x12px|baseline|link={{#if:{{{1|}}}|{{{1}}}|Category:Character}}|{{#var: cvar}} {{#var: cdir}}]]{{#if:{{{1|}}}|[[character_variant::{{#var: cvar}}{{#var: cdir}}| ]][[character::{{{1|}}}| ]][[index::{{{1|}}}| ]]}}</includeonly> |
Latest revision as of 08:05, 19 December 2013
Usage
This template serves to display North Italic letters. For each character of a text in North Italic script, the template must be included separately. For example, in order to render the character (that is, a dextroverse A2):
{{c|A|A2|d}}
has to be written. The individual fields have the following functions:
c
|
name of the template |
A
|
citation form of the letter in upper case = page of the character activated by the link |
A2
|
actual variant of the letter to be displayed |
d
|
dextroverse direction of the character |
Specifying the actual variant of the letter can be omitted if it is identical to the citation form;
specifying the direction of writing can be omitted if it is sinistroverse;
e.g. (sinistroverse citation form = main variant of A):
{{c|A}}
If no property value is to be defined (for example, outside of inscriptions), the field for the citation form is to be left blank; only the actual variant to be displayed is to be specified. In the following examples, these are and ):
{{c||A}} {{c||A2|d}}
Result
- The attested variant of the letter will be displayed as an image with a link to the citation form of the character.
- If the citation form is specified, the following properties will be defined:
- Property:character for the citation form,
- Property:character_variant for the actual variant of the character (including direction of writing)
Example
In order to display the word enθus in sinistroverse North Italic script, in primary character variants except for an U2, i.e. , the following has to be coded:
{{c|S}}{{c|U|U2}}{{c|Θ}}{{c|N}}{{c|E}}
For the same word, but only the S turned against the sinistroverse writing direction, i.e. :
{{c|S||d}}{{c|U|U2}}{{c|Θ}}{{c|N}}{{c|E}}
For the same word, but written in dextroverse direction, i.e. :
{{c|E||d}}{{c|N||d}}{{c|Θ||d}}{{c|U|U2|d}}{{c|S||d}}
For the same as in the three above examples, but without defining properties for the occurrence of the characters (i.e. with empty first parameters):
{{c||S}}{{c||U2}}{{c||Θ}}{{c||N}}{{c||E}} {{c||S|d}}{{c||U2}}{{c||Θ}}{{c||N}}{{c||E}} {{c||E|d}}{{c||N|d}}{{c||Θ|d}}{{c||U2|d}}{{c||S|d}}