Difference between revisions of "Template:A-card"

From Nookipedia, the Animal Crossing wiki
m
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| width=500px style="background: #ffc644; border:2px solid #ffc644; text-align:center; {{roundy|28px}};"
+
<noinclude>{{#cargo_declare:
! colspan=2 | {{PG|nolink}} amiibo card
+
_table=amiibo_card
|-
+
|name = String
| colspan=2 style="padding: 1px; border-top: 1px solid #ffe543" |
+
|number = String
|-
+
|image_front = String
| valign=top |
+
|dice = Integer
{| cellspacing=0 width=100% style="background: #ffc644;" class="collapsible collapsed"
+
|hand = String
! {{Colorshow|333|Card back}}
+
|birthday = String
|-
+
|sign = String
| style="padding: 0 2px 0 0" | [[File:{{{back|Amiibo card back.png}}}|167px]]  
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
|}
+
_table=amiibo_card
| rowspan=2 width=75% style="vertical-align: top; background: #ffe543; padding:0px; {{roundy|25px}};"|
+
|name = {{{name|}}}
{| width=100% style="background: transparent; padding: 3px; {{roundytop|25px}};"
+
|number = {{{number|}}}
| colspan=2 style="background: #ffe543; border-bottom: 1px solid #ffc644; {{roundytop|25px}};" | '''#{{{number|}}} {{{name|}}}''' - {{#ifeq: {{#expr: {{{number|}}} < 101}} | 1 | {{colorshow|000|Series 1}} | {{#ifeq: {{#expr: {{{number|}}} < 201}} | 1 | {{colorshow|000|Series 2}} | {{#ifeq: {{#expr: {{{number|}}} < 301}} | 1 | {{colorshow|000|Series 3}} | {{#ifeq: {{#expr: {{{number|}}} < 401}} | 1 | {{colorshow|000|Series 4}} | {{#ifeq: {{#expr: {{{number|}}} > 401}} | 1 | {{colorshow|000|Promo}} | {{colorshow|000|Series ???}}}}}}}}}}}}
+
|image_front = {{{front|}}}
 +
|dice = {{{dice|}}}
 +
|hand = {{{hand|}}}
 +
|birthday = {{{bday|}}}
 +
|sign = {{{sign|}}}
 +
}}}}</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}};">
 +
<div class="card-flex-container">
 +
<div class="card-flex-item card-left" style="padding: 0px 10px;">
 +
[[File:{{{front|nia orange.png}}}|167px]] {{#if: {{{front|}}} || [[Special:Upload|{{Colorshow|d79a08|<small>Have one to add?</small>}}]]}}
 +
<div class="mw-collapsible mw-collapsed" style="width: 100%; background: #ffc644;">
 +
'''Card back'''
 +
<div class="mw-collapsible-content">
 +
[[File:{{{back|Amiibo card back.png}}}|167px]]  
 +
</div>
 +
</div>
 +
</div>
 +
<div class="card-flex-item card-right">
 +
{| width=100% style="background: #ffe543; padding: 3px; {{roundy|9px}};"
 +
| colspan=2 style="border-bottom: 1px solid #ffc644;" | '''#{{{number|}}} {{{name|}}}''' - {{{series|{{#ifeq: {{#expr: {{{number|}}} < 101}} | 1 | {{colorshow|000|Series 1}} | {{#ifeq: {{#expr: {{{number|}}} < 201}} | 1 | {{colorshow|000|Series 2}} | {{#ifeq: {{#expr: {{{number|}}} < 301}} | 1 | {{colorshow|000|Series 3}} | {{#ifeq: {{#expr: {{{number|}}} < 401}} | 1 | {{colorshow|000|Series 4}} | {{#ifeq: {{#expr: {{{number|}}} > 401}} | 1 | {{colorshow|000|Promo}} | {{colorshow|000|Series ???}}}}}}}}}}}}}}}
 
|-
 
|-
 
| height=230px style="vertical-align:top; padding:4px 0 0 2px;"|
 
| height=230px style="vertical-align:top; padding:4px 0 0 2px;"|
 
{| width=100% style="background: transparent;"
 
{| width=100% style="background: transparent;"
| style="width:70px; background: #ffe543; padding: 3px 3px 3px 15px; text-align:right;" | '''Type:'''
+
| style="width:70px; background: #ffe543; padding: 3px 3px 3px 15px; text-align:right;" | '''Star sign:'''
| style="background: #ffffff; padding: 0 0 0 9px; {{roundytop|12px}};" align="left" | {{{type|Please enter a card type.}}}
+
| style="background: #ffffff; padding: 0 0 0 9px; {{roundytop|12px}};" align="left" | {{{sign|Please enter a star sign.}}}
|-
 
| style="width:70px; background: #ffe543; padding: 3px; text-align:right;" | '''Star sign:'''
 
| style="background: #ffffff; padding: 0 0 0 9px;" align="left" | {{{sign|Please enter a star sign.}}}
 
 
|-
 
|-
 
| style="width:70px; background: #ffe543; padding: 3px; text-align:right;" | '''Birthday:'''
 
| style="width:70px; background: #ffe543; padding: 3px; text-align:right;" | '''Birthday:'''
| style="background: #ffffff; padding: 0 0 0 9px;" align="left" | {{{bday|Please enter a birth date.}}}
+
| style="background: #ffffff; padding: 0 0 0 9px; {{#if:{{{dice|}}}||{{roundybottom|12px}}}}" align="left" | {{{bday|Please enter a birth date.}}}
 
|-
 
|-
| style="width:70px; background: #ffe543; padding: 3px; text-align:right;" | '''Dice value:'''
+
{{#if: {{{dice|}}} |
| style="background: #ffffff; padding: 0 0 0 9px;" align="left" | {{{dice|Please enter a dice value.}}}
+
{{!}} style="width:70px; background: #ffe543; padding: 3px; text-align:right;" {{!}} '''Dice value:'''
 +
{{!}} style="background: #ffffff; padding: 0 0 0 9px;" align="left" {{!}} {{{dice|Please enter a dice value.}}}}}
 
|-
 
|-
| style="width:70px; background: #ffe543; padding: 3px; text-align:right;" | '''Hand sign:'''
+
{{#if: {{{hand|}}} |
| style="background: #ffffff; padding: 0 0 0 9px; {{roundybottom|12px}};" align="left" | {{{hand|Please enter a hand sign.}}}
+
{{!}} style="width:70px; background: #ffe543; padding: 3px; text-align:right;" {{!}} '''Hand sign:'''
 +
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundybottom|12px}};" align="left" {{!}} {{{hand|Please enter a hand sign.}}}}}
 
|-
 
|-
 
|}
 
|}
 
|}
 
|}
|-
+
</div>
| 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>}}]]}}
+
</div>
|-
+
<div style="width: 100%; margin-top: 5px;">
| colspan=2 style="padding:1px 1px 0 1px; border-top:1px solid #ffc644;" |
+
{| width=100% style="background: #ffe543; {{roundy|9px}};"
{| width=100% style="background: #ffe543; {{roundy|25px}};"
 
 
| width=3% style="padding:0 0 0 12px; text-align:left;"|[[{{{prevcard|List of amiibo cards}}} | {{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:#dfa92e; {{roundy|30px}};"
 
| [[File:{{{prevtype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{prevcard|List of amiibo cards}}}]]
 
| [[File:{{{prevtype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{prevcard|List of amiibo cards}}}]]
 
|}
 
|}
Line 47: Line 64:
 
| width=25% style="text-align:right" | [[{{#ifeq: {{{nextcard|}}} | DJ K.K. | K.K. Slider | {{{nextcard|List of amiibo cards}}}}}|{{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}}}}}|{{Colorshow|000|<small>{{{nextnumb|002}}} {{{nextcard|Next}}} </small>}}]]
 
| width=32px style="padding:0px;" |
 
| width=32px style="padding:0px;" |
{| style="background:#ffc644; {{roundy|30px}};"
+
{| style="background:#dfa92e; {{roundy|30px}};"
 
| [[File:{{{nexttype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{nextcard|List of amiibo cards}}}]]
 
| [[File:{{{nexttype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{nextcard|List of amiibo cards}}}]]
 
|}
 
|}
 
| width=3% style="padding:0 12px 0 0; text-align:right;"| [[{{{nextcard|List of amiibo cards}}}|{{Colorshow|000|→}}]]
 
| width=3% style="padding:0 12px 0 0; text-align:right;"| [[{{{nextcard|List of amiibo cards}}}|{{Colorshow|000|→}}]]
 
|}
 
|}
|}<includeonly>{{#switch: {{NAMESPACE}}|#default = [[Category:Happy Home Designer characters]] [[Category:amiibo Festival characters]]|User = }}{{#if:{{{request|}}}|[[Category:Villagers using request parameter in A-Card]]|}}</includeonly><noinclude>
+
</div>
 
+
</div><includeonly>{{#if:{{{request|}}}|[[Category:Villagers using request parameter in A-Card]]|}}</includeonly><noinclude>
 +
{{Cargo list}}
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
Line 61: Line 79:
 
| front = (image of card front)
 
| front = (image of card front)
 
| back = (image of card back)
 
| back = (image of card back)
| dice = (dice value)
+
| dice = (dice value) (Only for Series 1-4)
| hand = (hand sign)
+
| hand = (hand sign) (Only for Series 1-4)
| type = (card type)
 
 
| sign = (character's star sign)
 
| sign = (character's star sign)
 
| bday = (character's birthday)
 
| bday = (character's birthday)
Line 85: Line 102:
 
:*For special visitors, input "special".  
 
:*For special visitors, input "special".  
 
*The template will automatically calculate the correct previous and next card number based on the value entered for <tt>'''number'''</tt>.
 
*The template will automatically calculate the correct previous and next card number based on the value entered for <tt>'''number'''</tt>.
 +
[[Category:Cargo templates]]
 
</noinclude>
 
</noinclude>

Revision as of 12:01, October 18, 2021

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.