Difference between revisions of "Template:WA-card"

From Nookipedia, the Animal Crossing wiki
(New template for use with new Welcome amiibo cards)
 
(Incorporated Template:NewWA and updated documentation)
Line 1: Line 1:
{{#if: 1|
 
{{#vardefine:new1|{{#switch: {{{item1|nope}}} |
 
| Disk Writer
 
| Giant Game Boy = NEW
 
}}}}
 
{{#vardefine:new2|{{#switch: {{{item2|nope}}} |
 
| Disk Writer
 
| Giant Game Boy = NEW
 
}}}}
 
{{#vardefine:new3|{{#switch: {{{item3|nope}}} |
 
| Disk Writer
 
| Giant Game Boy = NEW
 
}}}}
 
{{#vardefine:new4|{{#switch: {{{item4|nope}}} |
 
| Disk Writer
 
| Giant Game Boy = NEW
 
}}}}
 
{{#vardefine:new5|{{#switch: {{{item5|nope}}} |
 
| Disk Writer
 
| Giant Game Boy = NEW
 
}}}}
 
{{#vardefine:new6|{{#switch: {{{item6|nope}}} |
 
| Disk Writer
 
| Giant Game Boy = NEW
 
}}}}
 
{{#vardefine:new7|{{#switch: {{{item7|nope}}} |
 
| Disk Writer
 
| Giant Game Boy = NEW
 
}}}}
 
{{#vardefine:new8|{{#switch: {{{item8|nope}}} |
 
| Disk Writer
 
| Giant Game Boy = NEW
 
}}}}
 
{{#vardefine:new9|{{#switch: {{{item9|nope}}} |
 
| Disk Writer
 
| Giant Game Boy = NEW
 
}}}}
 
{{#vardefine:new10|{{#switch: {{{item10|nope}}} |
 
| Disk Writer
 
| Giant Game Boy = NEW
 
}}}}}}
 
 
{| width=500px style="background: #ff9936; border:2px solid #ff9936; text-align:center; {{roundy|28px}};"
 
{| width=500px style="background: #ff9936; border:2px solid #ff9936; text-align:center; {{roundy|28px}};"
 
! colspan=2 | {{NL|nolink}} - Welcome amiibo card
 
! colspan=2 | {{NL|nolink}} - Welcome amiibo card
Line 59: Line 18:
 
! colspan=5 style="background-color: #ff9936; padding: 2px 0 0 0; {{roundy|15px}};" | {{Colorshow|333|Furniture}}
 
! colspan=5 style="background-color: #ff9936; padding: 2px 0 0 0; {{roundy|15px}};" | {{Colorshow|333|Furniture}}
 
|-
 
|-
| {{#ifexist:File:{{{item1|}}}_HHD_Icon.png|[[File:{{{item1|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item1|Item 1}}}<br>{{#ifeq: {{#var:new1}}|NEW|[[File:New.gif|28px]]|}}
+
| {{#ifexist:File:{{{item1|}}}_HHD_Icon.png|[[File:{{{item1|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item1|Item 1}}}<br>{{#ifeq: {{NewWA|{{{item1|No}}}}}|NEW|[[File:New.gif|28px]]|}}
| {{#ifexist:File:{{{item2|}}}_HHD_Icon.png|[[File:{{{item2|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item2|Item 2}}}<br>{{#ifeq: {{#var:new2}}|NEW|[[File:New.gif|28px]]|}}
+
| {{#ifexist:File:{{{item2|}}}_HHD_Icon.png|[[File:{{{item2|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item2|Item 2}}}<br>{{#ifeq: {{NewWA|{{{item2|No}}}}}|NEW|[[File:New.gif|28px]]|}}
| {{#ifexist:File:{{{item3|}}}_HHD_Icon.png|[[File:{{{item3|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item3|Item 3}}}<br>{{#ifeq: {{#var:new3}}|NEW|[[File:New.gif|28px]]|}}
+
| {{#ifexist:File:{{{item3|}}}_HHD_Icon.png|[[File:{{{item3|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item3|Item 3}}}<br>{{#ifeq: {{NewWA|{{{item3|No}}}}}|NEW|[[File:New.gif|28px]]|}}
| {{#ifexist:File:{{{item4|}}}_HHD_Icon.png|[[File:{{{item4|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item4|Item 4}}}<br>{{#ifeq: {{#var:new4}}|NEW|[[File:New.gif|28px]]|}}
+
| {{#ifexist:File:{{{item4|}}}_HHD_Icon.png|[[File:{{{item4|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item4|Item 4}}}<br>{{#ifeq: {{NewWA|{{{item4|No}}}}}|NEW|[[File:New.gif|28px]]|}}
| {{#ifexist:File:{{{item5|}}}_HHD_Icon.png|[[File:{{{item5|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item5|Item 5}}}<br>{{#ifeq: {{#var:new5}}|NEW|[[File:New.gif|28px]]|}}
+
| {{#ifexist:File:{{{item5|}}}_HHD_Icon.png|[[File:{{{item5|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item5|Item 5}}}<br>{{#ifeq: {{NewWA|{{{item5|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
|-
 
|-
| {{#ifexist:File:{{{item6|}}}_HHD_Icon.png|[[File:{{{item6|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item6|Item 6}}}<br>{{#ifeq: {{#var:new6}}|NEW|[[File:New.gif|28px]]|}}
+
| {{#ifexist:File:{{{item6|}}}_HHD_Icon.png|[[File:{{{item6|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item6|Item 6}}}<br>{{#ifeq: {{NewWA|{{{item6|No}}}}}|NEW|[[File:New.gif|28px]]|}}
| {{#ifexist:File:{{{item7|}}}_HHD_Icon.png|[[File:{{{item7|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item7|Item 7}}}<br>{{#ifeq: {{#var:new7}}|NEW|[[File:New.gif|28px]]|}}
+
| {{#ifexist:File:{{{item7|}}}_HHD_Icon.png|[[File:{{{item7|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item7|Item 7}}}<br>{{#ifeq: {{NewWA|{{{item7|No}}}}}|NEW|[[File:New.gif|28px]]|}}
| {{#ifexist:File:{{{item8|}}}_HHD_Icon.png|[[File:{{{item8|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item8|Item 8}}}<br>{{#ifeq: {{#var:new8}}|NEW|[[File:New.gif|28px]]|}}
+
| {{#ifexist:File:{{{item8|}}}_HHD_Icon.png|[[File:{{{item8|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item8|Item 8}}}<br>{{#ifeq: {{NewWA|{{{item8|No}}}}}|NEW|[[File:New.gif|28px]]|}}
| {{#ifexist:File:{{{item9|}}}_HHD_Icon.png|[[File:{{{item9|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item9|Item 9}}}<br>{{#ifeq: {{#var:new9}}|NEW|[[File:New.gif|28px]]|}}
+
| {{#ifexist:File:{{{item9|}}}_HHD_Icon.png|[[File:{{{item9|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item9|Item 9}}}<br>{{#ifeq: {{NewWA|{{{item9|No}}}}}|NEW|[[File:New.gif|28px]]|}}
|{{#ifexist:File:{{{item10|}}}_HHD_Icon.png|[[File:{{{item10|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item10|Item 10}}}<br>{{#ifeq: {{#var:new10}}|NEW|[[File:New.gif|28px]]|}}
+
|{{#ifexist:File:{{{item10|}}}_HHD_Icon.png|[[File:{{{item10|}}}_HHD_Icon.png]]|[[File:Nia.png|55px]]}}<br>{{{item10|Item 10}}}<br>{{#ifeq: {{NewWA|{{{item10|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
|}
 
|}
 
|-
 
|-
Line 123: Line 82:
 
*For the <tt>'''item1''', '''item2'''...</tt> parameters, enter the names of the items found in the character's RV. Proper spelling and capitalization are important.
 
*For the <tt>'''item1''', '''item2'''...</tt> parameters, enter the names of the items found in the character's RV. Proper spelling and capitalization are important.
 
*The template automatically inserts the associated HHD furniture icon with the item name entered. If no such icon is found, it will show "No Image Available".
 
*The template automatically inserts the associated HHD furniture icon with the item name entered. If no such icon is found, it will show "No Image Available".
*The template will mark items new to the Welcome amiibo version with the [[File:New.gif|30px]] icon. '''The template does not currently 'know' all the items that are new.''' This template must be edited/updated with the correct information. Specifically, the lists below the switch functions at the beginning of the template must be appended to. This list must be copy/pasted for each instance of {{#vardefine:new... If there are any questions about this, please direct them to [[User:Sunmarsh|sunmarsh]].  
+
*The template will mark items new to the Welcome amiibo version with the [[File:New.gif|30px]] icon. The list that is referenced to determine whether the item is new or not is located at [[Template:NewWA]]. The list may be incomplete and should be periodically reviewed. If there are any questions about this, please direct them to [[User:Sunmarsh|sunmarsh]].  
 
*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 15:59, December 21, 2016

Animal Crossing: New Leaf - Welcome amiibo card
#
Furniture
Nia.png
Item 1
Nia.png
Item 2
Nia.png
Item 3
Nia.png
Item 4
Nia.png
Item 5
Nia.png
Item 6
Nia.png
Item 7
Nia.png
Item 8
Nia.png
Item 9
Nia.png
Item 10
Nia.png Have one to add?
UnknownSpeciesIconSilhouette.png
00 Previous List of amiibo cards
#
02 Next
UnknownSpeciesIconSilhouette.png

Usage

{{A-card
| number = (card #)
| name = (card name)
| front = (image of card front)
| back = (image of card back)
| item1 = name of item available to buy in RV
| item2 = name of item available to buy in RV
| item3 = name of item available to buy in RV
| item4 = name of item available to buy in RV
| item5 = name of item available to buy in RV
| item6 = name of item available to buy in RV
| item7 = name of item available to buy in RV
| item8 = name of item available to buy in RV
| item9 = name of item available to buy in RV
| item10 = name of item available to buy in RV
| 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 item1, item2... parameters, enter the names of the items found in the character's RV. Proper spelling and capitalization are important.
  • The template automatically inserts the associated HHD furniture icon with the item name entered. If no such icon is found, it will show "No Image Available".
  • The template will mark items new to the Welcome amiibo version with the New.gif icon. The list that is referenced to determine whether the item is new or not is located at Template:NewWA. The list may be incomplete and should be periodically reviewed. If there are any questions about this, please direct them to sunmarsh.
  • 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, however the parameters nextnumb and prevnumb can be used to override the calculated values.