Difference between revisions of "Template:A-card"

From Nookipedia, the Animal Crossing wiki
(New template for amiibo cards.)
 
(Fixing template to properly size images. Adding notes regarding hand parameter.)
Line 30: Line 30:
 
|}
 
|}
 
|-
 
|-
| width=25% style="padding:0 3px 0 1px;" | {{#if: {{{image|}}} | [[File:{{{image|}}}|167px]] | [[File:{{{front|nia orange.png{{!}}167px}}}]]}} {{#if: {{{front|}}} || {{#if: {{{image|}}} || [[Special:Upload|{{Colorshow|d79a08|<small>Have one to add?</small>}}]]}}}}
+
| width=25% style="padding:0 3px 0 1px;" | [[File:{{{front|nia orange.png}}}|167px]] {{#if: {{{front|}}} || [[Special:Upload|{{Colorshow|d79a08|<small>Have one to add?</small>}}]]}}
 
|-
 
|-
 
| colspan=2 style="padding:1px 1px 0 1px; border-top:1px solid #ffc644;" |  
 
| colspan=2 style="padding:1px 1px 0 1px; border-top:1px solid #ffc644;" |  
 
{| width=100% style="background: #ffe543; {{roundy|25px}};"
 
{| width=100% style="background: #ffe543; {{roundy|25px}};"
| width=3% style="padding:0 0 0 12px; text-align:left;"|[[{{{prevcard|Amiibo}}} | {{Colorshow|000|←}}]]
+
| width=3% style="padding:0 0 0 12px; text-align:left;"|[[{{{prevcard|List of amiibo cards}}} | {{Colorshow|000|←}}]]
 
| width=32px style="padding:0px;" |
 
| width=32px style="padding:0px;" |
 
{| style="background:#ffc644; {{roundy|30px}};"
 
{| style="background:#ffc644; {{roundy|30px}};"
| [[File:{{{prevtype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{prevcard|Amiibo}}}]]
+
| [[File:{{{prevtype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{prevcard|List of amiibo cards}}}]]
 
|}
 
|}
| width=25% style="text-align:left;" |[[{{{prevcard|Amiibo}}} | {{Colorshow|000|<small>{{#if: {{{number|}}} | {{#ifeq: {{{number|}}} | 000 | 200 | {{#expr: {{{number|}}} - 1}}}} | 000}} {{{prevcard|Previous}}}</small>}}]]
+
| width=25% style="text-align:left;" |[[{{{prevcard|List of amiibo cards}}} | {{Colorshow|000|<small>{{#if: {{{number|}}} | {{#ifeq: {{{number|}}} | 000 | 200 | {{#expr: {{{number|}}} - 1}}}} | 000}} {{{prevcard|Previous}}}</small>}}]]
| width=30% | [[Amiibo|{{Colorshow|333|<small>'''List of amiibo cards'''</small>}}]]<br>'''#{{{number|}}} {{{name|}}}'''
+
| width=30% | [[List of amiibo cards|{{Colorshow|333|<small>'''List of amiibo cards'''</small>}}]]<br>'''#{{{number|}}} {{{name|}}}'''
| width=25% style="text-align:right" | [[{{{nextcard|Amiibo}}}|{{Colorshow|000|<small>{{#if: {{{number|}}} | {{#ifeq: {{{number|}}} | 200 | 000 | {{#expr: {{{number|}}} + 1}}}} | 000}} {{{nextcard|Next}}} </small>}}]]
+
| width=25% style="text-align:right" | [[{{{nextcard|List of amiibo cards}}}|{{Colorshow|000|<small>{{#if: {{{number|}}} | {{#ifeq: {{{number|}}} | 200 | 000 | {{#expr: {{{number|}}} + 1}}}} | 000}} {{{nextcard|Next}}} </small>}}]]
 
| width=32px style="padding:0px;" |
 
| width=32px style="padding:0px;" |
 
{| style="background:#ffc644; {{roundy|30px}};"
 
{| style="background:#ffc644; {{roundy|30px}};"
| [[File:{{{nexttype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{nextcard|Amiibo}}}]]
+
| [[File:{{{nexttype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{nextcard|List of amiibo cards}}}]]
 
|}
 
|}
| width=3% style="padding:0 12px 0 0; text-align:right;"| [[{{{nextcard|Amiibo}}}|{{Colorshow|000|→}}]]
+
| width=3% style="padding:0 12px 0 0; text-align:right;"| [[{{{nextcard|List of amiibo cards}}}|{{Colorshow|000|→}}]]
 
|}
 
|}
 
|}<noinclude>
 
|}<noinclude>
Line 75: Line 75:
 
*The <tt>'''back'''</tt> parameter is not required; the template will automatically insert the standard amiibo card back. However if a card is ever released with a non-standard back this parameter can be used.
 
*The <tt>'''back'''</tt> parameter is not required; the template will automatically insert the standard amiibo card back. However if a card is ever released with a non-standard back this parameter can be used.
 
*For the <tt>'''type'''</tt> parameter, please insert the villager's species, unless the character is a special visitor, in which case enter "Special".
 
*For the <tt>'''type'''</tt> parameter, please insert the villager's species, unless the character is a special visitor, in which case enter "Special".
 +
*For the <tt>'''hand'''</tt> parameter, please insert "Rock" for the fist sign, "Paper" for the open palm, and "Scissors" for the peace sign.
 
*The <tt>'''prevtype'''</tt> and <tt>'''nexttype'''</tt> parameters are used to generate the appropriate icon associated with the type of card preceding or following the current one.
 
*The <tt>'''prevtype'''</tt> and <tt>'''nexttype'''</tt> parameters are used to generate the appropriate icon associated with the type of card preceding or following the current one.
 
:*For villager cards, input the villager's species name.
 
:*For villager cards, input the villager's species name.

Revision as of 14:59, August 3, 2015

#
Type: Please enter a card type.
Star sign: Please enter a star sign.
Birthday: Please enter a birth date.
Dice value: Please enter a dice value.
Hand sign: Please enter a hand sign.
Nia orange.png Have one to add?
UnknownSpeciesIconSilhouette.png
000 Previous List of amiibo cards
#
000 Next
UnknownSpeciesIconSilhouette.png

Usage

{{A-card
| number = (card #)
| name = (card name)
| front = (image of card front)
| back = (image of card back)
| dice = (dice value)
| hand = (hand sign)
| type = (card type)
| sign = (character's star sign)
| bday = (character's birthday)
| prevcard = (name of previous card in series)
| prevtype = (type of previous card in the series)
| nextcard = (name of next card in series)
| nexttype = (type of next card in the series)
}}
For help with this template, leave a message on sunmarsh's talk page.

Notes

  • None of the parameters are required for the template to function correctly- however it will appear as it does at the top of the page if nothing is entered.
  • The back parameter is not required; the template will automatically insert the standard amiibo card back. However if a card is ever released with a non-standard back this parameter can be used.
  • For the type parameter, please insert the villager's species, unless the character is a special visitor, in which case enter "Special".
  • For the hand parameter, please insert "Rock" for the fist sign, "Paper" for the open palm, and "Scissors" for the peace sign.
  • The prevtype and nexttype parameters are used to generate the appropriate icon associated with the type of card preceding or following the current one.
  • For villager cards, input the villager's species name.
  • For special visitors, input "special".
  • The template will automatically calculate the correct previous and next card number based on the value entered for number.