Difference between revisions of "Template:Translation"

From Nookipedia, the Animal Crossing wiki
(Increasing spacing)
(Correcting hovertext)
Line 2: Line 2:
 
<div style="text-align:left; line-height:1em; display:inline-block;">
 
<div style="text-align:left; line-height:1em; display:inline-block;">
 
[[File:Flag of Japan.png|Japanese|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{ja-name|}}}|{{{ja-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
 
[[File:Flag of Japan.png|Japanese|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{ja-name|}}}|{{{ja-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
[[File:Flag of the People's Republic of China.png|Chinese|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{zh-name|}}}|{{{zh-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
+
[[File:Flag of the People's Republic of China.png|Simplified Chinese|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{zh-name|}}}|{{{zh-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
 
[[File:Flag of France.png|French|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{fr-name|}}}|{{{fr-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
 
[[File:Flag of France.png|French|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{fr-name|}}}|{{{fr-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
 
[[File:Flag of Spain.png|Spanish|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{es-name|}}}|{{{es-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
 
[[File:Flag of Spain.png|Spanish|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{es-name|}}}|{{{es-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
Line 10: Line 10:
 
<div style="text-align:left; line-height:1em; display:inline-block;">
 
<div style="text-align:left; line-height:1em; display:inline-block;">
 
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Korea.png|Korean|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{ko-name|}}}|{{{ko-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
 
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Korea.png|Korean|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{ko-name|}}}|{{{ko-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Hong Kong.png|Chinese|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{zht-name|}}}|{{{zht-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
+
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Hong Kong.png|Traditional Chinese|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{zht-name|}}}|{{{zht-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Quebec.png|French|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{frq-name|}}}|{{{frq-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
+
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Quebec.png|Quebec French|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{frq-name|}}}|{{{frq-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Mexico.png|Spanish|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{esl-name|}}}|{{{esl-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
+
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Mexico.png|Latin American Spanish|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{esl-name|}}}|{{{esl-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
 
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Germany.png|German|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{de-name|}}}|{{{de-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
 
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Germany.png|German|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{de-name|}}}|{{{de-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
 
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of the Netherlands.png|Dutch|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{nl-name|}}}|{{{nl-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span>
 
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of the Netherlands.png|Dutch|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{nl-name|}}}|{{{nl-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span>
Line 23: Line 23:
 
</div>
 
</div>
 
<div style="text-align:left; line-height:1em; display:inline-block;">
 
<div style="text-align:left; line-height:1em; display:inline-block;">
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of the People's Republic of China.png|Chinese|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{zh-name|}}}|{{{zh-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><span style="padding-left:{{{spacing|1.2em}}};"></span><br>
+
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of the People's Republic of China.png|Simplified Chinese|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{zh-name|}}}|{{{zh-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><span style="padding-left:{{{spacing|1.2em}}};"></span><br>
 
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of France.png|French|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{fr-name|}}}|{{{fr-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><span style="padding-left:{{{spacing|1.2em}}};"></span><br>
 
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of France.png|French|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{fr-name|}}}|{{{fr-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><span style="padding-left:{{{spacing|1.2em}}};"></span><br>
 
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Spain.png|Spanish|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{es-name|}}}|{{{es-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><span style="padding-left:{{{spacing|1.2em}}};"></span><br>
 
<span style="padding-left:{{{spacing|1.2em}}};"></span>[[File:Flag of Spain.png|Spanish|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{es-name|}}}|{{{es-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><span style="padding-left:{{{spacing|1.2em}}};"></span><br>
Line 29: Line 29:
 
</div>
 
</div>
 
<div style="text-align:left; line-height:1em; display:inline-block;">
 
<div style="text-align:left; line-height:1em; display:inline-block;">
[[File:Flag of Hong Kong.png|Chinese|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{zht-name|}}}|{{{zht-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
+
[[File:Flag of Hong Kong.png|Traditional Chinese|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{zht-name|}}}|{{{zht-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
[[File:Flag of Quebec.png|French|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{frq-name|}}}|{{{frq-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
+
[[File:Flag of Quebec.png|Quebec French|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{frq-name|}}}|{{{frq-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
[[File:Flag of Mexico.png|Spanish|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{esl-name|}}}|{{{esl-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
+
[[File:Flag of Mexico.png|Latin American Spanish|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{esl-name|}}}|{{{esl-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span><br>
 
[[File:Flag of Russia.png|Russian|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{ru-name|}}}|{{{ru-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span>
 
[[File:Flag of Russia.png|Russian|link=|14px]]&nbsp;<span style="font-size:.75em;">{{#if:{{{ru-name|}}}|{{{ru-name|}}}|{{Colorshow|{{{color|ccc}}}|Unknown}}}}</span>
 
</div>}}<noinclude>
 
</div>}}<noinclude>

Revision as of 14:10, May 15, 2020

Japanese Unknown
Korean Unknown
Italian Unknown
German Unknown

Simplified Chinese Unknown
French Unknown
Spanish Unknown
Dutch Unknown

Traditional Chinese Unknown
Quebec French Unknown
Latin American Spanish Unknown
Russian Unknown

Usage

{{Translation
| name     = <optional>
| color    = <hexcode (no preceding '#')>
| length   = <optional>
| spacing  = <optional>
| ja-name  = <japanese>
| ko-name  = <korean>
| zh-name  = <chinese (simplified)>
| zht-name = <chinese (traditional)>
| fr-name  = <french>
| frq-name = <french (quebec)> 
| es-name  = <spanish>
| esl-name = <spanish (latin america)>
| it-name  = <italian>
| de-name  = <german>
| nl-name  = <dutch>
| ru-name  = <russian>
}}

For use in Infobox-style templates to display translation information. Will appear as two columns if the length of the page or the name parameter is greater than 12 characters.

  • spacing can be used to adjust the padding in between the translation columns.
  • max-length can be used to change the character count/force the 2-column or 3-column display. The default value is 30. Increasing the value creates a tendency towards a 3-column display, decreasing it, a 2-column display.