Difference between revisions of "Template:WA-card"

From Nookipedia, the Animal Crossing wiki
(New template for use with new Welcome amiibo cards)
 
(changing to min-widths)
(24 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#if: 1|
+
<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}};">
{{#vardefine:new1|{{#switch: {{{item1|nope}}} |
+
<div class="card-flex-container">
| Disk Writer
+
<div class="card-flex-item card-left" style="padding: 0px 10px;">
| Giant Game Boy = NEW
+
[[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;">
{{#vardefine:new2|{{#switch: {{{item2|nope}}} |
+
'''Card back'''
| Disk Writer
+
<div class="mw-collapsible-content">
| Giant Game Boy = NEW
+
[[File:{{{back|WAmiibo card back.png}}}|167px]]
}}}}
+
</div>
{{#vardefine:new3|{{#switch: {{{item3|nope}}} |
+
</div>
| Disk Writer
+
</div>
| Giant Game Boy = NEW
+
<div class="card-flex-item card-right">
}}}}
+
{| style="background: #ffcb36; padding: 3px; {{roundy|9px}}; width:100%"
{{#vardefine:new4|{{#switch: {{{item4|nope}}} |
+
| colspan=5 style="border-bottom: 1px solid #ff9936;" | '''#{{{number|}}} {{{name|}}}'''
| 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}};"
 
! colspan=2 | {{NL|nolink}} - Welcome amiibo card
 
 
|-
 
|-
| 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=]]|}}
 +
| {{#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=]]|}}
 +
| {{#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=]]|}}
 +
{{#if:{{{item10|}}}|
 +
{{!}}
 +
{{#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=]]|}}}}
 
|}
 
|}
| rowspan=2 width=75% style="vertical-align: top; background: #ffcb36; padding:0px; {{roundy|25px}};"|
+
</div>
{| width=100% style="background: transparent; padding: 3px; {{roundytop|25px}};"
+
</div>
| colspan=5 style="background: #ffcb36; border-bottom: 1px solid #ff9936; {{roundytop|25px}};" | '''#{{{number|}}} {{{name|}}}'''
+
<div style="width: 100%; margin-top: 5px;">
|-
+
{| style="background: #ffcb36; {{roundy|9px}}; width:100%"
|
+
| style="padding:0 0 0 12px; text-align:left; width:3%"|[[{{{prevcard|List of amiibo cards}}}#Welcome_amiibo_card | {{Colorshow|000|←}}]]
|-
+
| style="padding:0px; width:32px" |
! 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:{{{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:{{{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:{{{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:{{{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:{{{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:{{{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:{{{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:{{{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:{{{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]]|}}
 
|}
 
|-
 
| 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>}}]]}}
 
|-
 
| colspan=2 style="padding:1px 1px 0 1px; border-top:1px solid #ff9936;" |
 
{| width=100% style="background: #ffcb36; {{roundy|25px}};"
 
| width=3% style="padding:0 0 0 12px; text-align:left;"|[[{{{prevcard|List of amiibo cards}}} | {{Colorshow|000|←}}]]
 
| 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|40|{{#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|}}}|40|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 108: Line 67:
 
| item9 = 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
 
| 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)
 
| prevcard = (name of previous card in series)
 
| prevtype = (type of previous card in the series)
 
| prevtype = (type of previous card in the series)
Line 114: 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}}]].'''}}
 
|}
 
|}
Line 121: Line 90:
 
*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.
 
*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 <tt>'''back'''</tt> 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 <tt>'''back'''</tt> 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 <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".
+
*For the <tt>'''item1''', '''item2'''...</tt> 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 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 <tt>'''c1''', '''c2'''...</tt> parameters can be used to denote whether or not an item has been customized. <tt>c1</tt> corresponds to <tt>item1</tt>, <tt>c2</tt> with <tt>item2</tt> and so on. Example: <tt><nowiki>{{WA-card|item1=Item Name|c1=true|...}}</nowiki></tt> will produce Item Name{{tt|*|customized}}.
 +
*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 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.