Difference between revisions of "Template:ItemList"

From Nookipedia, the Animal Crossing wiki
(Figured out why there were spaces appearing before the table. Changed #ifeq arguments to one #switch. *crosses fingers*)
(Updated table to cover all AC games and included support for alternative abbreviations to increase ease of use.)
Line 1: Line 1:
 
{{#switch:{{{1}}}
 
{{#switch:{{{1}}}
<!-- ACGC Table -->
+
<!-- DnM, DnM+, AC, DnMe+ Table -->
| AC = {{(!}} class="sortable" align="center" width="80%" cellspacing="0px" cellpadding="1px" style="background:#FFDD66; text-align:center; border: 4px solid #FFDD66; {{roundy}}"  
+
| DnM =
 +
| AF =
 +
| DnM+ =
 +
| AF+ =
 +
| AC =
 +
| PG =
 +
| ACGC =
 +
| DnMe+
 +
| AFe+ = {{(!}} class="sortable" align="center" width="80%" cellspacing="0px" cellpadding="1px" style="background:#FFDD66; text-align:center; border: 4px solid #FFDD66; {{roundy}}"  
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; background-color:#FFDD66; color:#000; {{roundytl|7px}}" {{!}} Item Name
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; background-color:#FFDD66; color:#000; {{roundytl|7px}}" {{!}} Item Name
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666;" {{!}} Image
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666;" {{!}} Image
Line 14: Line 22:
 
{{!-}}
 
{{!-}}
 
<!-- ACWW Table -->
 
<!-- ACWW Table -->
 +
| ACWW =
 
| WW = {{(!}} class="sortable" align="center" width="80%" cellspacing="0px" cellpadding="1px" style="background:#FFDD66; text-align:center; border: 4px solid #FFDD66; {{roundy}}"  
 
| WW = {{(!}} class="sortable" align="center" width="80%" cellspacing="0px" cellpadding="1px" style="background:#FFDD66; text-align:center; border: 4px solid #FFDD66; {{roundy}}"  
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; background-color:#FFDD66; color:#000; {{roundytl|7px}}" {{!}} Item Name
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; background-color:#FFDD66; color:#000; {{roundytl|7px}}" {{!}} Item Name
Line 28: Line 37:
 
{{!-}}
 
{{!-}}
 
<!-- ACCF Table -->
 
<!-- ACCF Table -->
 +
| ACCF =
 
| CF = {{(!}} class="sortable" align="center" width="80%" cellspacing="0px" cellpadding="1px" style="background:#FFDD66; text-align:center; border: 4px solid #FFDD66; {{roundy}}"  
 
| CF = {{(!}} class="sortable" align="center" width="80%" cellspacing="0px" cellpadding="1px" style="background:#FFDD66; text-align:center; border: 4px solid #FFDD66; {{roundy}}"  
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; background-color:#FFDD66; color:#000; {{roundytl|7px}}" {{!}} Item Name
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; background-color:#FFDD66; color:#000; {{roundytl|7px}}" {{!}} Item Name
Line 41: Line 51:
 
{{!-}}
 
{{!-}}
 
<!-- ACNL Table -->
 
<!-- ACNL Table -->
 +
| ACNL =
 
| NL = {{(!}} class="sortable" align="center" width="80%" cellspacing="0px" cellpadding="1px" style="padding:0px; background:#FFDD66; text-align:center; border: 4px solid #FFDD66; {{roundy}}"  
 
| NL = {{(!}} class="sortable" align="center" width="80%" cellspacing="0px" cellpadding="1px" style="padding:0px; background:#FFDD66; text-align:center; border: 4px solid #FFDD66; {{roundy}}"  
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; background-color:#FFDD66; color:#000; {{roundytl|7px}}" {{!}} Item Name
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; background-color:#FFDD66; color:#000; {{roundytl|7px}}" {{!}} Item Name
Line 49: Line 60:
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666;" {{!}} Color(s)
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666;" {{!}} Color(s)
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666;" {{!}} [[Happy Room Academy|HHA]] Theme / Vibe
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666;" {{!}} [[Happy Room Academy|HHA]] Theme / Vibe
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666;" {{!}} Size (sq)
+
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666;" {{!}} Size
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666;" {{!}} Info
 
! style="border-bottom:4px solid #FFDD66; border-right: 2px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666;" {{!}} Info
 
! style="border-bottom:4px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666; {{roundytr|16px}}" {{!}} Customizable?
 
! style="border-bottom:4px solid #FFDD66; border-left: 2px solid #FFDD66; background-color:#FFFFCC; color:#666; {{roundytr|16px}}" {{!}} Customizable?
Line 56: Line 67:
  
 
==Example==
 
==Example==
'''<nowiki>{{ItemList|NL}}</nowiki>''' produces:
+
<tt>'''<nowiki>{{ItemList|AC}}</nowiki>{{tt|*|<nowiki>Parameters "DnM", "DnM+", "AC", and "DnMe+" will produce the same table</nowiki>}}''' produces:</tt>
 +
{{ItemList|AC}}
 +
|}
 +
<br>
 +
<tt>'''<nowiki>{{ItemList|WW}}</nowiki>''' produces:</tt>
 +
{{ItemList|WW}}
 +
|}
 +
<br>
 +
<tt>'''<nowiki>{{ItemList|CF}}</nowiki>''' produces:</tt>
 +
{{ItemList|CF}}
 +
|}
 +
<br>
 +
<tt>'''<nowiki>{{ItemList|NL}}</nowiki>''' produces:</tt>
 
{{ItemList|NL}}
 
{{ItemList|NL}}
 
|}
 
|}
Line 63: Line 86:
 
Enter the appropriate abbreviation as a template parameter to display an item table with the appropriate headings for that AC title.
 
Enter the appropriate abbreviation as a template parameter to display an item table with the appropriate headings for that AC title.
  
Acceptable parameters: <span style="color:#CCCCCC">DnM</span>, <span style="color:#CCCCCC">DnM+</span>, <span style="color:green">AC</span>, <span style="color:#CCCCCC">DnMe+</span>, <span style="color:green">WW</span>, <span style="color:green">CF</span>, <span style="color:green">NL</span>
+
'''Note:''' For ease of use (and because all games prior to and including DnMe+ take the same table), the template accepts several abbreviation variations, as seen below.
  
'''Note:''' Parameters in gray are currently unsupported but are in development.
+
Acceptable parameters: DnM, AF, DnM+, AF+, AC, ACGC, PG, DnMe+, AFe+, WW, ACWW, CF, ACCF, NL, ACNL

Revision as of 20:33, October 14, 2014


Example

{{ItemList|AC}}* produces:

|}
{{ItemList|WW}} produces:

Item Name Image Buy Price Sell Price Available From Group Color(s) Genres Size Info Customizable?


{{ItemList|CF}} produces:

Item Name Image Buy Price Sell Price Available From Color(s) Genres Size Info Customizable?


{{ItemList|NL}} produces:

Item Name Image Buy Price Sell Price Available From Color(s) HHA Theme / Vibe Size Info Customizable?

Usage

Enter the appropriate abbreviation as a template parameter to display an item table with the appropriate headings for that AC title.

Note: For ease of use (and because all games prior to and including DnMe+ take the same table), the template accepts several abbreviation variations, as seen below.

Acceptable parameters: DnM, AF, DnM+, AF+, AC, ACGC, PG, DnMe+, AFe+, WW, ACWW, CF, ACCF, NL, ACNL