Difference between revisions of "Template:A-card"

From Nookipedia, the Animal Crossing wiki
(Pound sign removal fix.)
m (Undo revision 959436 by AlexBot2004 (talk))
Tag: Undo
 
(11 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
|name = String
 
|name = String
 
|number = String
 
|number = String
 +
|series = String
 +
|bundle = String
 +
|bundle_wikitext = Wikitext string
 
|image_front = String
 
|image_front = String
 +
|image_front_url = String
 +
|type = String
 
|dice = Integer
 
|dice = Integer
 
|hand = String
 
|hand = String
 
|birthday = String
 
|birthday = String
 
|sign = String
 
|sign = String
 +
|items = Text
 
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
 
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
 
_table=amiibo_card
 
_table=amiibo_card
 
|name = {{{name|}}}
 
|name = {{{name|}}}
 
|number = {{{number|}}}
 
|number = {{{number|}}}
 +
|series = {{{series|{{#ifeq: {{#expr: {{{number|}}} < 101}} | 1 | Series 1 | {{#ifeq: {{#expr: {{{number|}}} < 201}} | 1 | Series 2 | {{#ifeq: {{#expr: {{{number|}}} < 301}} | 1 | Series 3 | {{#ifeq: {{#expr: {{{number|}}} < 401}} | 1 | Series 4 | {{#ifeq: {{#expr: {{{number|}}} < 449}} | 1 | Series 5}}}}}}}}}}}}}
 +
|bundle = {{#invoke:Plain text|main|{{{bundle|}}}}}
 +
|bundle_wikitext = {{{bundle|}}}
 
|image_front = {{{front|}}}
 
|image_front = {{{front|}}}
 +
|image_front_url = {{filepath:{{{front|}}}}}
 +
|type = {{{type|}}}
 
|dice = {{{dice|}}}
 
|dice = {{{dice|}}}
 
|hand = {{{hand|}}}
 
|hand = {{{hand|}}}
 
|birthday = {{{bday|}}}
 
|birthday = {{{bday|}}}
 
|sign = {{{sign|}}}
 
|sign = {{{sign|}}}
 +
|items =
 
}}}}</includeonly>
 
}}}}</includeonly>
 
<div class="villager-card" style="max-width: 500px; margin: 0 0 5px 0; background: #ffc644; border: 2px solid #ffc644; padding: 3px; text-align:center; {{roundy|15px}};"><span id="amiibo_card" style="padding-top: 88px; margin-top:"></span>
 
<div class="villager-card" style="max-width: 500px; margin: 0 0 5px 0; background: #ffc644; border: 2px solid #ffc644; padding: 3px; text-align:center; {{roundy|15px}};"><span id="amiibo_card" style="padding-top: 88px; margin-top:"></span>
Line 58: Line 70:
 
| 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]]
+
| style="min-width:30px" | [[File:{{{prevtype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{prevcard|List of amiibo cards}}}#amiibo_card|{{{prevcard|}}}]]
 
|}
 
|}
 
| 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}}}#amiibo_card}} | {{Colorshow|000|<small>{{{prevnumb|000}}} {{{prevcard|Previous}}}</small>}}]]
Line 65: Line 77:
 
| 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]]
+
| style="min-width:30px" | [[File:{{{nexttype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{nextcard|List of amiibo cards}}}#amiibo_card|{{{nextcard|}}}]]
 
|}
 
|}
 
| 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}}}#amiibo_card|{{Colorshow|000|→}}]]

Latest revision as of 15:46, November 7, 2022

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

Nia orange.png Have one to add?

Card back

Amiibo Card Back.png

# - Promotional (bundle)
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)
| bundle = (promotional bundle) (if applicable)
| dice = (dice value) (only for Series 1-4)
| hand = (hand sign) (only for Series 1-4)
| 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.