Difference between revisions of "Translation"
From Sega Retro
(Created page with "<includeonly>{{#ifeq:{{lc:{{{lang2|}}}}}|en|{{#if:{{{text2|}}}||{{Translate|{{{lang1|}}}}}|}}}}{{#ifeq:{{lc:{{{lang3|}}}}}|en|{{#if:{{{text3|}}}||{{Translate|{{{lang1|}}}}}|}}...") |
m (Text replacement - "Category:Sega Retro templates" to "Category:Templates") |
||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
| orientation=horizontal | | orientation=horizontal | ||
| tabliststyle=margin-bottom:10px; | | tabliststyle=margin-bottom:10px; | ||
− | }}</includeonly><noinclude>[[Category: | + | }}</includeonly><noinclude> |
+ | |||
+ | Template for offering translations of blocks of text. Supports up to three languages (use two-character language codes). If an English translation is not found as the second or third language, a [[Template:Translate]] message will be displayed. | ||
+ | |||
+ | ==Usage== | ||
+ | <pre> | ||
+ | {{Translation | ||
+ | | lang1= | ||
+ | | lang2= | ||
+ | | lang3= | ||
+ | | text1= | ||
+ | | text2= | ||
+ | | text3= | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==Examples== | ||
+ | <pre> | ||
+ | {{Translation | ||
+ | | lang1=cn | ||
+ | | lang2=en | ||
+ | | text1=This is Chinese | ||
+ | | text2=This is English | ||
+ | }} | ||
+ | </pre> | ||
+ | {{Translation | ||
+ | | lang1=cn | ||
+ | | lang2=en | ||
+ | | text1=This is Chinese | ||
+ | | text2=This is English | ||
+ | }} | ||
+ | |||
+ | <pre> | ||
+ | {{Translation | ||
+ | | lang1=jp | ||
+ | | lang2=rou | ||
+ | | lang3=en | ||
+ | | text1=This is Japanese | ||
+ | | text2=This is roumanji | ||
+ | | text3=This is English | ||
+ | }} | ||
+ | </pre> | ||
+ | {{Translation | ||
+ | | lang1=jp | ||
+ | | lang2=rou | ||
+ | | lang3=en | ||
+ | | text1=This is Japanese | ||
+ | | text2=This is roumanji | ||
+ | | text3=This is English | ||
+ | }} | ||
+ | |||
+ | [[Category:Templates]]</noinclude> |
Latest revision as of 16:55, 1 January 2022
Template for offering translations of blocks of text. Supports up to three languages (use two-character language codes). If an English translation is not found as the second or third language, a Template:Translate message will be displayed.
Usage
{{Translation | lang1= | lang2= | lang3= | text1= | text2= | text3= }}
Examples
{{Translation | lang1=cn | lang2=en | text1=This is Chinese | text2=This is English }}
- 中文
- English
This is Chinese
This is English
{{Translation | lang1=jp | lang2=rou | lang3=en | text1=This is Japanese | text2=This is roumanji | text3=This is English }}
- 日本語
- Roumanji†
- English
This is Japanese
This is roumanji
This is English