Difference between revisions of "Template:WA-card"

From Nookipedia, the Animal Crossing wiki
m (Changing HHD Icon to NLWa Model)
(changing to min-widths)
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| width=500px style="background: #ff9936; border:2px solid #ff9936; text-align:center; {{roundy|28px}};"
+
<div class="villager-card" style="max-width: 600px; margin: 0 0 5px 0; background: #ff9936; border: 2px solid #ff9936; padding: 3px; text-align:center; {{roundy|15px}};">
! colspan=2 | {{NL|nolink}} - Welcome amiibo card
+
<div class="card-flex-container">
 +
<div class="card-flex-item card-left" style="padding: 0px 10px;">
 +
[[File:{{{front|nia.png}}}|167px]] {{#if: {{{front|}}} || [[Special:Upload|{{Colorshow|d79a08|<small>Have one to add?</small>}}]]}}
 +
<div class="mw-collapsible mw-collapsed" style="width: 100%; background: #ff9936;">
 +
'''Card back'''
 +
<div class="mw-collapsible-content">
 +
[[File:{{{back|WAmiibo card back.png}}}|167px]]
 +
</div>
 +
</div>
 +
</div>
 +
<div class="card-flex-item card-right">
 +
{| style="background: #ffcb36; padding: 3px; {{roundy|9px}}; width:100%"
 +
| colspan=5 style="border-bottom: 1px solid #ff9936;" | '''#{{{number|}}} {{{name|}}}'''
 
|-
 
|-
| colspan=2 style="padding: 1px; border-top: 1px solid #ffcb36" |
+
! colspan=5 style="background-color: #ff9936; padding: 2px 0 0 0; {{roundy|15px}};" | {{Colorshow|333|RV items}}
 
|-
 
|-
| valign=top |
+
| {{#if:{{{item1|}}}|{{#ifexist:File:{{{img1|}}}|[[File:{{{img1|}}}|64px|link=]]|{{#if:{{{item1|}}}|[[File:{{{item1|}}}_NL_Model.png|64px|link=]]}}}}<br>{{{item1|Item 1}}}}}{{#if: {{{c1|}}} | {{tt|*|customized}}|}} {{#if: {{{count1|}}} | (x{{{count1|}}})|}}<br>{{#ifeq: {{NewWA|{{{item1|No}}}}}|NEW|[[File:New.gif|28px|link=]]|}}
{| cellspacing=0 width=100% style="background: #ff9936;" class="collapsible collapsed"
+
| {{#if:{{{item2|}}}|{{#ifexist:File:{{{img2|}}}|[[File:{{{img2|}}}|64px|link=]]|{{#if:{{{item2|}}}|[[File:{{{item2|}}}_NL_Model.png|64px|link=]]}}}}<br>{{{item2|Item 2}}}}}{{#if: {{{c2|}}} | {{tt|*|customized}}|}} {{#if: {{{count2|}}} | (x{{{count2|}}})|}}<br>{{#ifeq: {{NewWA|{{{item2|No}}}}}|NEW|[[File:New.gif|28px|link=]]|}}
! {{Colorshow|333|Card back}}
+
| {{#if:{{{item3|}}}|{{#ifexist:File:{{{img3|}}}|[[File:{{{img3|}}}|64px|link=]]|{{#if:{{{item3|}}}|[[File:{{{item3|}}}_NL_Model.png|64px|link=]]}}}}<br>{{{item3|Item 3}}}}}{{#if: {{{c3|}}} | {{tt|*|customized}}|}} {{#if: {{{count3|}}} | (x{{{count3|}}})|}}<br>{{#ifeq: {{NewWA|{{{item3|No}}}}}|NEW|[[File:New.gif|28px|link=]]|}}
 +
| {{#if:{{{item4|}}}|{{#ifexist:File:{{{img4|}}}|[[File:{{{img4|}}}|64px|link=]]|{{#if:{{{item4|}}}|[[File:{{{item4|}}}_NL_Model.png|64px|link=]]}}}}<br>{{{item4|Item 4}}}}}{{#if: {{{c4|}}} | {{tt|*|customized}}|}} {{#if: {{{count4|}}} | (x{{{count4|}}})|}}<br>{{#ifeq: {{NewWA|{{{item4|No}}}}}|NEW|[[File:New.gif|28px|link=]]|}}
 +
| {{#if:{{{item5|}}}|{{#ifexist:File:{{{img5|}}}|[[File:{{{img5|}}}|64px|link=]]|{{#if:{{{item5|}}}|[[File:{{{item5|}}}_NL_Model.png|64px|link=]]}}}}<br>{{{item5|Item 5}}}}}{{#if: {{{c5|}}} | {{tt|*|customized}}|}} {{#if: {{{count5|}}} | (x{{{count5|}}})|}}<br>{{#ifeq: {{NewWA|{{{item5|No}}}}}|NEW|[[File:New.gif|28px|link=]]|}}
 
|-
 
|-
| style="padding: 0 2px 0 0" | [[File:{{{back|WAmiibo card back.png}}}|167px]]
+
| {{#if:{{{item6|}}}|{{#ifexist:File:{{{img6|}}}|[[File:{{{img6|}}}|64px|link=]]|{{#if:{{{item6|}}}|[[File:{{{item6|}}}_NL_Model.png|64px|link=]]}}}}<br>{{{item6|Item 6}}}}}{{#if: {{{c6|}}} | {{tt|*|customized}}|}} {{#if: {{{count6|}}} | (x{{{count6|}}})|}}<br>{{#ifeq: {{NewWA|{{{item6|No}}}}}|NEW|[[File:New.gif|28px|link=]]|}}
|}
+
| {{#if:{{{item7|}}}|{{#ifexist:File:{{{img7|}}}|[[File:{{{img7|}}}|64px|link=]]|{{#if:{{{item7|}}}|[[File:{{{item7|}}}_NL_Model.png|64px|link=]]}}}}<br>{{{item7|Item 7}}}}}{{#if: {{{c7|}}} | {{tt|*|customized}}|}} {{#if: {{{count7|}}} | (x{{{count7|}}})|}}<br>{{#ifeq: {{NewWA|{{{item7|No}}}}}|NEW|[[File:New.gif|28px|link=]]|}}
| rowspan=2 width=75% style="vertical-align: top; background: #ffcb36; padding:0px; {{roundy|25px}};"|  
+
| {{#if:{{{item8|}}}|{{#ifexist:File:{{{img8|}}}|[[File:{{{img8|}}}|64px|link=]]|{{#if:{{{item8|}}}|[[File:{{{item8|}}}_NL_Model.png|64px|link=]]}}}}<br>{{{item8|Item 8}}}}}{{#if: {{{c8|}}} | {{tt|*|customized}}|}} {{#if: {{{count8|}}} | (x{{{count8|}}})|}}<br>{{#ifeq: {{NewWA|{{{item8|No}}}}}|NEW|[[File:New.gif|28px|link=]]|}}
{| width=100% style="background: transparent; padding: 3px; {{roundytop|25px}};"
+
| {{#if:{{{item9|}}}|{{#ifexist:File:{{{img9|}}}|[[File:{{{img9|}}}|64px|link=]]|{{#if:{{{item9|}}}|[[File:{{{item9|}}}_NL_Model.png|64px|link=]]}}}}<br>{{{item9|Item 9}}}}}{{#if: {{{c9|}}} | {{tt|*|customized}}|}} {{#if: {{{count9|}}} | (x{{{count9|}}})|}}<br>{{#ifeq: {{NewWA|{{{item9|No}}}}}|NEW|[[File:New.gif|28px|link=]]|}}
| colspan=5 style="background: #ffcb36; border-bottom: 1px solid #ff9936; {{roundytop|25px}};" | '''#{{{number|}}} {{{name|}}}'''
 
|-
 
|
 
|-
 
! colspan=5 style="background-color: #ff9936; padding: 2px 0 0 0; {{roundy|15px}};" | {{Colorshow|333|Furniture}}
 
|-
 
| {{#ifexist:File:{{{item1|}}}_NLWa_Model.png|[[File:{{{item1|}}}_NLWa_Model.png]]|[[File:Nia.png|55px]]}}<br>{{{item1|Item 1}}}{{#if: {{{c1|}}} | {{tt|*|customized}}|}}<br>{{#ifeq: {{NewWA|{{{item1|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
| {{#ifexist:File:{{{item2|}}}_NLWa_Model.png|[[File:{{{item2|}}}_NLWa_Model.png]]|[[File:Nia.png|55px]]}}<br>{{{item2|Item 2}}}{{#if: {{{c2|}}} | {{tt|*|customized}}|}}<br>{{#ifeq: {{NewWA|{{{item2|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
| {{#ifexist:File:{{{item3|}}}_NLWa_Model.png|[[File:{{{item3|}}}_NLWa_Model.png]]|[[File:Nia.png|55px]]}}<br>{{{item3|Item 3}}}{{#if: {{{c3|}}} | {{tt|*|customized}}|}}<br>{{#ifeq: {{NewWA|{{{item3|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
| {{#ifexist:File:{{{item4|}}}_NLWa_Model.png|[[File:{{{item4|}}}_NLWa_Model.png]]|[[File:Nia.png|55px]]}}<br>{{{item4|Item 4}}}{{#if: {{{c4|}}} | {{tt|*|customized}}|}}<br>{{#ifeq: {{NewWA|{{{item4|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
| {{#ifexist:File:{{{item5|}}}_NLWa_Model.png|[[File:{{{item5|}}}_NLWa_Model.png]]|[[File:Nia.png|55px]]}}<br>{{{item5|Item 5}}}{{#if: {{{c5|}}} | {{tt|*|customized}}|}}<br>{{#ifeq: {{NewWA|{{{item5|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
|-
 
| {{#ifexist:File:{{{item6|}}}_NLWa_Model.png|[[File:{{{item6|}}}_NLWa_Model.png]]|[[File:Nia.png|55px]]}}<br>{{{item6|Item 6}}}{{#if: {{{c6|}}} | {{tt|*|customized}}|}}<br>{{#ifeq: {{NewWA|{{{item6|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
| {{#ifexist:File:{{{item7|}}}_NLWa_Model.png|[[File:{{{item7|}}}_NLWa_Model.png]]|[[File:Nia.png|55px]]}}<br>{{{item7|Item 7}}}{{#if: {{{c7|}}} | {{tt|*|customized}}|}}<br>{{#ifeq: {{NewWA|{{{item7|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
| {{#ifexist:File:{{{item8|}}}_NLWa_Model.png|[[File:{{{item8|}}}_NLWa_Model.png]]|[[File:Nia.png|55px]]}}<br>{{{item8|Item 8}}}{{#if: {{{c8|}}} | {{tt|*|customized}}|}}<br>{{#ifeq: {{NewWA|{{{item8|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
| {{#ifexist:File:{{{item9|}}}_NLWa_Model.png|[[File:{{{item9|}}}_NLWa_Model.png]]|[[File:Nia.png|55px]]}}<br>{{{item9|Item 9}}}{{#if: {{{c9|}}} | {{tt|*|customized}}|}}<br>{{#ifeq: {{NewWA|{{{item9|No}}}}}|NEW|[[File:New.gif|28px]]|}}
 
 
{{#if:{{{item10|}}}|
 
{{#if:{{{item10|}}}|
 
{{!}}
 
{{!}}
{{#ifexist:File:{{{item10|}}}_NLWa_Model.png|[[File:{{{item10|}}}_NLWa_Model.png]]|[[File:Nia.png|55px]]}}<br>{{{item10|Item 10}}}{{#if: {{{c10|}}} | {{tt|*|customized}}|}}<br>{{#ifeq: {{NewWA|{{{item10|No}}}}}|NEW|[[File:New.gif|28px]]|}}}}
+
{{#ifexist:File:{{{img10|}}}|[[File:{{{img10|}}}|64px|link=]]|{{#if:{{{item10|}}}|[[File:{{{item10|}}}_NL_Model.png|64px|link=]]}}}}<br>{{{item10|Item 10}}}{{#if: {{{c10|}}} | {{tt|*|customized}}|}} {{#if: {{{count10|}}} | (x{{{count10|}}})|}}<br>{{#ifeq: {{NewWA|{{{item10|No}}}}}|NEW|[[File:New.gif|28px|link=]]|}}}}
 
|}
 
|}
|-
+
</div>
| width=25% style="padding:0 3px 0 1px;" | [[File:{{{front|nia.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 #ff9936;" |
+
{| style="background: #ffcb36; {{roundy|9px}}; width:100%"
{| width=100% style="background: #ffcb36; {{roundy|25px}};"
+
| style="padding:0 0 0 12px; text-align:left; width:3%"|[[{{{prevcard|List of amiibo cards}}}#Welcome_amiibo_card | {{Colorshow|000|←}}]]
| width=3% style="padding:0 0 0 12px; text-align:left;"|[[{{{prevcard|List of amiibo cards}}} | {{Colorshow|000|←}}]]
+
| style="padding:0px; width:32px" |
| width=32px style="padding:0px;" |
 
 
{| style="background:#ff9936; {{roundy|30px}};"
 
{| style="background:#ff9936; {{roundy|30px}};"
| [[File:{{{prevtype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{prevcard|List of amiibo cards}}}]]
+
| style="min-width:30px" | [[File:{{{prevtype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{prevcard|List of amiibo cards}}}#Welcome_amiibo_card]]
 
|}
 
|}
| width=25% style="text-align:left;" |[[{{#ifeq: {{{prevcard|}}} | DJ K.K. | K.K. Slider | {{{prevcard|List of amiibo cards}}}}} | {{Colorshow|000|<small>{{#if: {{{number|}}}|{{#ifeq: {{{number|}}}|1|50|{{#expr: {{{number|}}}-1}}}}|{{{prevnumb|00}}}}} {{{prevcard|Previous}}}</small>}}]]
+
| style="text-align:left; width:25%;" |[[{{#ifeq: {{{prevcard|}}} | Snooty | Snooty (villager) | {{{prevcard|List of amiibo cards}}}#Welcome_amiibo_card}} | {{Colorshow|000|<small>{{#if: {{{number|}}}|{{#ifeq: {{{number|}}}|1|{{#switch: {{{name|}}}|Rilla=6|50}}|{{#expr: {{{number|}}}-1}}}}|{{{prevnumb|00}}}}} {{{prevcard|Previous}}}</small>}}]]
| width=30% | [[List of amiibo cards|{{Colorshow|333|<small>'''List of amiibo cards'''</small>}}]]<br>'''#{{{number|}}} {{{name|}}}'''
+
| style="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}}}}}|{{Colorshow|000|<small>{{#if: {{{number|}}}|{{#ifeq: {{{number|}}}|50|01|{{#expr: {{{number|}}}+1}}}}|{{{nextnumb|02}}}}} {{{nextcard|Next}}} </small>}}]]
+
| style="text-align:right; width:25%;" | [[{{#ifeq: {{{nextcard|}}} | Snooty | Snooty (villager) | {{{nextcard|List of amiibo cards}}}#Welcome_amiibo_card}}|{{Colorshow|000|<small>{{#if: {{{number|}}}|{{#ifeq: {{{number|}}}|50|01|{{#switch: {{{name|}}}|Toby=1|{{#expr: {{{number|}}}+1}}}}|{{{nextnumb|02}}}}}}} {{{nextcard|Next}}} </small>}}]]
| width=32px style="padding:0px;" |
+
| style="padding:0px; width:32px" |
 
{| style="background:#ff9936; {{roundy|30px}};"
 
{| style="background:#ff9936; {{roundy|30px}};"
| [[File:{{{nexttype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{nextcard|List of amiibo cards}}}]]
+
| style="min-width:30px" | [[File:{{{nexttype|Unknown}}}SpeciesIconSilhouette.png|32px|link={{{nextcard|List of amiibo cards}}}#Welcome_amiibo_card]]
 
|}
 
|}
| width=3% style="padding:0 12px 0 0; text-align:right;"| [[{{{nextcard|List of amiibo cards}}}|{{Colorshow|000|→}}]]
+
| style="padding:0 12px 0 0; text-align:right; width:3%"| [[{{{nextcard|List of amiibo cards}}}#Welcome_amiibo_card|{{Colorshow|000|→}}]]
 
|}
 
|}
|}<noinclude>
+
</div>
 +
</div><noinclude>
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
Line 85: Line 83:
 
}}
 
}}
 
</pre>
 
</pre>
{| width=100% style="margin: 15px 0 0 0; background: #ffe543; text-align: center; {{roundy}};"
+
{| style="margin: 15px 0 0 0; background: #ffe543; text-align: center; {{roundy}}; width:100%"
 
| height=35px | {{Colorshow|333|'''For help with this template, leave a message on [[User:Sunmarsh|sunmarsh]]'s [[User_talk:Sunmarsh|{{Colorshow|f6ab00|talk page}}]].'''}}
 
| height=35px | {{Colorshow|333|'''For help with this template, leave a message on [[User:Sunmarsh|sunmarsh]]'s [[User_talk:Sunmarsh|{{Colorshow|f6ab00|talk page}}]].'''}}
 
|}
 
|}

Revision as of 22:40, June 18, 2022

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
| c1 = true if item1 is customized (optional)
| c2 = true if item2 is customized (optional)
| c3 = true if item3 is customized (optional)
| c4 = true if item4 is customized (optional)
| c5 = true if item5 is customized (optional)
| c6 = true if item6 is customized (optional)
| c7 = true if item7 is customized (optional)
| c8 = true if item8 is customized (optional)
| c9 = true if item9 is customized (optional)
| c10 = true if item10 is customized (optional)
| 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.
  • 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".
  • For the item1, item2... parameters, enter the names of the items found in the character's RV. Proper spelling is important; you can check Template:NewWA for proper spelling.
  • The c1, c2... parameters can be used to denote whether or not an item has been customized. c1 corresponds to item1, c2 with item2 and so on. Example: {{WA-card|item1=Item Name|c1=true|...}} will produce Item Name*.
  • 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.