Difference between revisions of "Template:Translation"

From Nookipedia, the Animal Crossing wiki
(Making 3-column display the exception, not the rule. Adjusting max-length value to 30. Adding default length value of 7 for translation parameters if no value is entered.)
(Increasing spacing)
Line 9: Line 9:
 
</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|.6em}}};"></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|.6em}}};"></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|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|.6em}}};"></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|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|.6em}}};"></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|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|.6em}}};"></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|.6em}}};"></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>
 
</div>
 
</div>
 
|<div style="text-align:left; line-height:1em; display:inline-block;">
 
|<div style="text-align:left; line-height:1em; display:inline-block;">
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|.6em}}};"></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|.6em}}};"></span><br>
+
<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|.6em}}};"></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|.6em}}};"></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|.6em}}};"></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|.6em}}};"></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|.6em}}};"></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|.6em}}};"></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><span style="padding-left:{{{spacing|1.2em}}};"></span>
 
</div>
 
</div>
 
<div style="text-align:left; line-height:1em; display:inline-block;">
 
<div style="text-align:left; line-height:1em; display:inline-block;">

Revision as of 13:49, May 15, 2020

Japanese Unknown
Korean Unknown
Italian Unknown
German Unknown

Chinese Unknown
French Unknown
Spanish Unknown
Dutch Unknown

Chinese Unknown
French Unknown
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.