Template:Translation: Difference between revisions
Jump to navigation
Jump to search
Documentation
(make template categorize in "Translations" and in "<language> translations") |
(doc updated) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<b><big> | <p><b><big>{{flag|{{{1}}}}} {{{pre|}}} {{{1}}} {{{post|}}} translation</big></b></p><includeonly>[[Category:Translations]][[Category:{{{1}}} translations]]</includeonly>{{#if:{{{2|}}}|{{#tag:poem|{{{2}}} }}}}<noinclude> | ||
{{ | {{Doc|text= | ||
This template categorizes a page in {{CiteCat|Translations}} and in [[Category:<nowiki><</nowiki>Language<nowiki>></nowiki> translations]]. If the <nowiki><</nowiki>Language<nowiki>></nowiki> flag exists, it is displayed. | |||
=== Basic syntax === | |||
{{tl|Translation|<Language>}} | |||
;Examples''':''' | |||
{{tl|Translation|Italian}}<br> | |||
displays | |||
: <big>'''{{flag|Italian|show}} translation'''</big> | |||
{{tl|Translation|Quenya}}<br> | |||
displays | |||
: <big>'''{{flag|Quenya|show}} translation'''</big> | |||
{{ | === Syntax with two parameters === | ||
''' | {{tl|Translation|<Language>|<Text>}} | ||
<pre> | ;Example''':''' | ||
{{Translation|< | <pre>{{Translation|Portuguese| | ||
Ave Maria, cheia de graça | |||
o Senhor é contigo. | |||
Bendita és tu entre as mulheres, | |||
e bendito o fruto de teu ventre, Jesus. | |||
}}</pre> | |||
The above is equivalent to the syntax previously used: | |||
<pre>{{Translation|Portuguese}} | |||
<poem> | |||
Ave Maria, cheia de graça | |||
o Senhor é contigo. | |||
Bendita és tu entre as mulheres, | |||
e bendito o fruto de teu ventre, Jesus. | |||
</poem></pre> | |||
}}<br> | |||
< | {{prot-temp}} | ||
[[Category:Text formatting templates]] | |||
}} | |||
[[Category: | |||
</noinclude> | </noinclude> |
Revision as of 02:41, 18 January 2021
{{{1}}} translation
This template categorizes a page in Translations and in [[Category:<Language> translations]]. If the <Language> flag exists, it is displayed.
Basic syntax
{{Translation|<Language>}}
- Examples:
{{Translation|Italian}}
displays
- Italian translation
{{Translation|Quenya}}
displays
- Quenya translation
Syntax with two parameters
{{Translation|<Language>|<Text>}}
- Example:
{{Translation|Portuguese| Ave Maria, cheia de graça o Senhor é contigo. Bendita és tu entre as mulheres, e bendito o fruto de teu ventre, Jesus. }}
The above is equivalent to the syntax previously used:
{{Translation|Portuguese}} <poem> Ave Maria, cheia de graça o Senhor é contigo. Bendita és tu entre as mulheres, e bendito o fruto de teu ventre, Jesus. </poem>
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |