Template:Translation: Difference between revisions
(Created page with "<onlyinclude><includeonly><table style="text-align:left; width:100%;"> <tr><td style="vertical-align:top; width:20%;">24px|link=</td><td style="vertical-a...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude><includeonly><table style="text-align:left; width:100%;"> | <onlyinclude><includeonly><table style="text-align:left; width:100%;"> | ||
<tr><td style="vertical-align:top; width: | <tr><td style="vertical-align:top; width:32px;">[[File:Flag_ES.png|24px|link=|Spanish translation]]</td><td style="vertical-align:top;">{{#explode:{{#explode:{{{1|}}}|<ES>|1}}|</ES>|0}}</td></tr> | ||
</table></includeonly></onlyinclude> | </table></includeonly></onlyinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:General Templates]] | [[Category:General Templates]] | ||
Latest revision as of 11:40, 18 October 2022
Description
This template generates a table of translation entries intended to be used in the infobox of a page. It takes an internationalization string of the form "... <ES>Spanish translation</ES> <DE>German translation</DE> ..." as input.
Usage
{{Translation|<internationalization string>}}
Internationalization string
The internationalization string contains all translated names of a page (which may be an area, quest, item, etc.) in the form <XX>translation</XX>, where XX represents the respective county code (e.g. ES for spain, DE for Germany, FR for France, and so on). All of these entries can be put together in a single string using arbitrary separators (or no separator at all). Just make sure to put proper opening and closing tags (i.e. <XX> and </XX>) around each translation entry.
Currently supported languages
Only the following languages will be recognized by the template:
| Spanish |
View/Edit documentation page