Template:c: Difference between revisions
Martin Braun (talk | contribs) No edit summary |
Martin Braun (talk | contribs) No edit summary |
||
Line 51: | Line 51: | ||
__NOTOC__ | __NOTOC__ | ||
[[Category:Text Module]] | [[Category:Text Module]] | ||
</noinclude><includeonly> | </noinclude><includeonly>{{#vardefine: cdir|s}}{{#ifeq:{{{3|}}}|d|{{#vardefine: cdir|d}}}}{{#vardefine: cfile|{{{2|{{{1|}}}}}}{{#ifeq: {{#var: cdir}}|d|d|}}.png}}{{#vardefine: cvar|{{{2|{{{1|}}}}}} {{#var: cdir}}}}[[Image:{{#var: cfile}}|x12px|baseline|link={{#if:{{{1|}}}|{{{1}}}|Category:Character}}|{{#var: cvar}}]]{{#if:{{{1|}}}|[[character_variant::{{#var: cvar}}| ]][[character::{{{1|}}}| ]][[index::{{{1|}}}| ]]}}</includeonly> |
Revision as of 05:24, 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 sequence ualaunal in sinistroverse Lepontic script, with the variant A2 (i.e. ), the following has to be coded:
{{c|L}}{{c|A|A2}}{{c|N}}{{c|U}}{{c|A|A2}}{{c|L}}{{c|A|A2}}{{c|U}}
For the same word, but in dextroverse direction and without defining properties (i.e. ):
{{c||U|d}}{{c||A2|d}}{{c||L|d}}{{c||A2|d}}{{c||U|d}}{{c||N|d}}{{c||A2|d}}{{c||L|d}}