Template:Translation: Difference between revisions
Jump to navigation
Jump to search
(added parameters pre and post (as in Text template) and poem functionality) |
(updated documentation) |
||
Line 2: | Line 2: | ||
{{DisplayBox|text= | {{DisplayBox|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. | 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. | ||
;Usage: | ;Usage''':''' | ||
{{tl|Translation|<Language>}} | {{tl|Translation|<Language>}} | ||
;Examples: | ;Examples''':''' | ||
{{tl|Translation|Italian}}<br> | |||
displays | displays | ||
: <big>'''{{flag|Italian|show}} translation'''</big> | : <big>'''{{flag|Italian|show}} translation'''</big> | ||
{{tl|Translation|Quenya}}<br> | |||
displays | displays | ||
: <big>'''{{flag|Quenya|show}} translation'''</big> | : <big>'''{{flag|Quenya|show}} translation'''</big> | ||
;Text formatting''':''' | |||
1. Using external <poem> tags: | |||
<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> | |||
2. Using internal <poem> tags: | |||
<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> | |||
}}<br> | }}<br> | ||
{{prot-temp}} | {{prot-temp}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 03:52, 5 April 2013
{{{1}}} translation
This template categorizes a page in Translations and in [[Category:<Language> translations]]. If the <Language> flag exists, it is displayed.
- Usage:
{{Translation|<Language>}}
- Examples:
{{Translation|Italian}}
displays
- Italian translation
{{Translation|Quenya}}
displays
- Quenya translation
- Text formatting:
1. Using external <poem> tags:
{{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>
2. Using internal <poem> tags:
{{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. }}
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. |