Difference between revisions of "Template:Latn-Grek/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mclay1
(updating)
imported>Mclay1
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{Substitution|not}}
 
  
 
===Usage===
 
===Usage===
Line 18: Line 17:
 
| <code>label=</code><br />(optional)
 
| <code>label=</code><br />(optional)
 
| If the parameter equals anything (e.g. <code>yes</code>), the template calls upon {{tl|Lang-el}} (or any other Lang- template depending on the input to <code>lang=</code>) rather than {{tl|Lang}}, causing a language label to appear before the ordinary output. This parameter does not work if <code>reverse=</code> is in use.
 
| If the parameter equals anything (e.g. <code>yes</code>), the template calls upon {{tl|Lang-el}} (or any other Lang- template depending on the input to <code>lang=</code>) rather than {{tl|Lang}}, causing a language label to appear before the ordinary output. This parameter does not work if <code>reverse=</code> is in use.
|-
 
| <code>translation=</code><br />(optional)
 
| Creates text for a translation of the Greek.
 
 
|-
 
|-
 
| <code>1=</code><br />(required)
 
| <code>1=</code><br />(required)
| Inputting a letter transliterates the letter from the Greek alphabet to the Latin one.
+
| Inputting a letter transliterates the letter from the Latin alphabet to the Greek one.
 
|-
 
|-
 
| <code>2=</code><br />(optional)
 
| <code>2=</code><br />(optional)
| Input each letter and space (up to 20) of the text as an individual parameter. Do not use punctuation.
+
| Input each letter and space (up to 20) of the text as an individual parameter. Enter [[diphthong]]s together. Do not use punctuation.
 +
|-
 +
| <code>final=</code><br />(optional)
 +
| Does the same as <code>1=</code> etc. but turns ''s'' into ς instead of σ for when it appears at the end of the word.
 +
|-
 +
| <code>translation=</code><br />(optional)
 +
| Creates text for a translation of the Greek.
 
|}
 
|}
  

Revision as of 05:10, 5 December 2016

Usage

This template uses {{ISO 843}} to convert Latin letters into Greek letters. It does the reverse of {{Grek-Latn}}, but the output is the same.

Parameters

Parameter Effect
lang=
(recommended)
Fills in the language code for the language templates. Enter el for modern Greek or another code for an alternative version of Greek.
reverse=
(optional)
If the parameter equals anything (e.g. yes), it reverses the output so that the transliteration appears before the Greek text.
label=
(optional)
If the parameter equals anything (e.g. yes), the template calls upon {{Lang-el}} (or any other Lang- template depending on the input to lang=) rather than {{Lang}}, causing a language label to appear before the ordinary output. This parameter does not work if reverse= is in use.
1=
(required)
Inputting a letter transliterates the letter from the Latin alphabet to the Greek one.
2=
(optional)
Input each letter and space (up to 20) of the text as an individual parameter. Enter diphthongs together. Do not use punctuation.
final=
(optional)
Does the same as 1= etc. but turns s into ς instead of σ for when it appears at the end of the word.
translation=
(optional)
Creates text for a translation of the Greek.

Examples

{{Latn-Grek|lang=grc|Z|eú|s}} produces [Zeús (Ζεύσ)] error: {{lang}}: text has italic markup (help)

{{Latn-Grek|lang=grc|Z|eú|s|translation=Zeus}} produces [Zeús (Ζεύσ)] error: {{lang}}: text has italic markup (help)

{{Latn-Grek|lang=grc|label=yes|Z|eú|s}} produces [Zeús (Ζεύσ)] error: {{lang}}: text has italic markup (help)

{{Latn-Grek|lang=grc|label=yes|Z|eú|s|translation=Zeus}} produces [Zeús (Ζεύσ)] error: {{lang}}: text has italic markup (help)

{{Latn-Grek|lang=grc|reverse=yes|Z|eú|s}} produces [Ζεύσ (Zeús)] error: {{lang}}: text has italic markup (help)

See also