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|}}}}}|}}...") |
|||
Line 9: | Line 9: | ||
| orientation=horizontal | | orientation=horizontal | ||
| tabliststyle=margin-bottom:10px; | | tabliststyle=margin-bottom:10px; | ||
− | }}</includeonly><noinclude>[[Category:Sega Retro templates]]</noinclude> | + | }}</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:Sega Retro templates]]</noinclude> |
Revision as of 07:02, 1 August 2019
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