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

From blackwiki
Jump to navigation Jump to search
imported>Mclay1
(Redirected page to Template:Grek-Latn/doc)
imported>Mclay1
(updating)
Line 1: Line 1:
#REDIRECT [[Template:Grek-Latn/doc]]
+
{{Documentation subpage}}
 +
{{Substitution|not}}
 +
 
 +
===Usage===
 +
This template uses {{tl|ISO 843}} to convert [[Latin alphabet|Latin letters]] into [[Greek alphabet|Greek letters]]. It does the reverse of {{tl|Grek-Latn}}, but the output is the same.
 +
 
 +
====Parameters====
 +
{| class="wikitable"
 +
! Parameter
 +
! Effect
 +
|-
 +
| <code>lang=</code><br />(recommended)
 +
| Fills in the language code for the language templates. Enter <code>el</code> for [[modern Greek]] or another code for an alternative version of Greek.
 +
|-
 +
| <code>reverse=</code><br />(optional)
 +
| If the parameter equals anything (e.g. <code>yes</code>), it reverses the output so that the transliteration appears before the Greek text.
 +
|-
 +
| <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.
 +
|-
 +
| <code>translation=</code><br />(optional)
 +
| Creates text for a translation of the Greek.
 +
|-
 +
| <code>1=</code><br />(required)
 +
| Inputting a letter transliterates the letter from the Greek alphabet to the Latin one.
 +
|-
 +
| <code>2=</code><br />(optional)
 +
| Input each letter and space (up to 20) of the text as an individual parameter. Do not use punctuation.
 +
|}
 +
 
 +
====Examples====
 +
<code><nowiki>{{Latn-Grek|lang=grc|Z|eú|s}}</nowiki></code> produces {{Latn-Grek|lang=grc|Z|eú|s}}
 +
 
 +
<code><nowiki>{{Latn-Grek|lang=grc|Z|eú|s|translation=Zeus}}</nowiki></code> produces {{Latn-Grek|lang=grc|Z|eú|s|translation=Zeus}}
 +
 
 +
<code><nowiki>{{Latn-Grek|lang=grc|label=yes|Z|eú|s}}</nowiki></code> produces {{Latn-Grek|lang=grc|label=yes|Z|eú|s}}
 +
 
 +
<code><nowiki>{{Latn-Grek|lang=grc|label=yes|Z|eú|s|translation=Zeus}}</nowiki></code> produces {{Latn-Grek|lang=grc|label=yes|Z|eú|s|translation=Zeus}}
 +
 
 +
<code><nowiki>{{Latn-Grek|lang=grc|reverse=yes|Z|eú|s}}</nowiki></code> produces {{Latn-Grek|lang=grc|reverse=yes|Z|eú|s}}
 +
 
 +
===See also===
 +
*{{tl|Grek-Latn}}
 +
*{{tl|ISO 843}}
 +
 
 +
<includeonly>
 +
<!-- Categories and interwikis go here: -->
 +
[[Category:Greek multilingual support templates]]
 +
</includeonly>

Revision as of 05:04, 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.
translation=
(optional)
Creates text for a translation of the Greek.
1=
(required)
Inputting a letter transliterates the letter from the Greek alphabet to the Latin one.
2=
(optional)
Input each letter and space (up to 20) of the text as an individual parameter. Do not use punctuation.

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