Difference between revisions of "Template:A-card"

From Nookipedia, the Animal Crossing wiki
m (amiibo_anchor -> amiibo_card so it looks nicer in the URL, hopefully won't cause problems due to too similar name.)
m (Testing padding on anchor, though I don't know if this is the correct syntax.)
Line 1: Line 1:
<span id="amiibo_card"></span>
+
<span id="amiibocard" style="padding-top: 40px; margin-top: -40px;"></span>
 
<noinclude>{{#cargo_declare:
 
<noinclude>{{#cargo_declare:
 
_table=amiibo_card
 
_table=amiibo_card
Line 56: Line 56:
 
<div style="width: 100%; margin-top: 5px;">
 
<div style="width: 100%; margin-top: 5px;">
 
{| width=100% style="background: #ffe543; {{roundy|9px}};"
 
{| width=100% style="background: #ffe543; {{roundy|9px}};"
| width=3% style="padding:0 0 0 12px; text-align:left;"|[[{{{prevcard|List of amiibo cards}}}#amiibo_card | {{Colorshow|000|←}}]]
+
| width=3% style="padding:0 0 0 12px; text-align:left;"|[[{{{prevcard|List of amiibo cards}}}#amiibocard | {{Colorshow|000|←}}]]
 
| width=32px style="padding:0px;" |
 
| width=32px style="padding:0px;" |
 
{| style="background:#dfa92e; {{roundy|30px}};"
 
{| style="background:#dfa92e; {{roundy|30px}};"
| [[File:{{{prevtype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{prevcard|List of amiibo cards}}}#amiibo_card]]
+
| [[File:{{{prevtype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{prevcard|List of amiibo cards}}}#amiibocard]]
 
|}
 
|}
| width=25% style="text-align:left;" |[[{{#ifeq: {{{prevcard|}}} | DJ K.K. | K.K. Slider | {{{prevcard|List of amiibo cards}}}#amiibo_card}} | {{Colorshow|000|<small>{{{prevnumb|000}}} {{{prevcard|Previous}}}</small>}}]]
+
| width=25% style="text-align:left;" |[[{{#ifeq: {{{prevcard|}}} | DJ K.K. | K.K. Slider | {{{prevcard|List of amiibo cards}}}#amiibocard}} | {{Colorshow|000|<small>{{{prevnumb|000}}} {{{prevcard|Previous}}}</small>}}]]
 
| width=30% | [[List of amiibo cards|{{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" | [[{{#ifeq: {{{nextcard|}}} | DJ K.K. | K.K. Slider | {{{nextcard|List of amiibo cards}}}#amiibo_card}}|{{Colorshow|000|<small>{{{nextnumb|002}}} {{{nextcard|Next}}} </small>}}]]
+
| width=25% style="text-align:right" | [[{{#ifeq: {{{nextcard|}}} | DJ K.K. | K.K. Slider | {{{nextcard|List of amiibo cards}}}#amiibocard}}|{{Colorshow|000|<small>{{{nextnumb|002}}} {{{nextcard|Next}}} </small>}}]]
 
| width=32px style="padding:0px;" |
 
| width=32px style="padding:0px;" |
 
{| style="background:#dfa92e; {{roundy|30px}};"
 
{| style="background:#dfa92e; {{roundy|30px}};"
| [[File:{{{nexttype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{nextcard|List of amiibo cards}}}#amiibo_card]]
+
| [[File:{{{nexttype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{nextcard|List of amiibo cards}}}#amiibocard]]
 
|}
 
|}
| width=3% style="padding:0 12px 0 0; text-align:right;"| [[{{{nextcard|List of amiibo cards}}}#amiibo_card|{{Colorshow|000|→}}]]
+
| width=3% style="padding:0 12px 0 0; text-align:right;"| [[{{{nextcard|List of amiibo cards}}}#amiibocard|{{Colorshow|000|→}}]]
 
|}
 
|}
 
</div>
 
</div>

Revision as of 20:17, March 7, 2022

This template defines the table "amiibo_card". View table.

Nia orange.png Have one to add?

Card back

Amiibo Card Back.png

# - Series ???
Star sign: Please enter a star sign.
Birthday: Please enter a birth date.
More Cargo templates

Usage

{{A-card
| number = (card #)
| name = (card name)
| front = (image of card front)
| back = (image of card back)
| dice = (dice value) (Only for Series 1-4)
| hand = (hand sign) (Only for Series 1-4)
| 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.