Difference between revisions of "User:Sunmarsh/Sandbox"

From Nookipedia, the Animal Crossing wiki
m (Text replace - "''Dōbutsu no Mori +''" to "''Dōbutsu no Mori+''")
(Testing out Template:Villager Info mockup.)
Line 1: Line 1:
Working on a [[Template:ItemList]] revamp to make it easier to use.
+
{| width=35% cellpadding=0px
 
 
==Template:TableHeader==
 
This template will create a collapsible container for the item table and will generate the table header (table title and column names). This template accepts various parameters which determine the type of list to be created.
 
 
 
<nowiki>
 
<!-- This first section of code checks to see if the list to be created needs to be enclosed in a collapsible container or not. Only matching wallpaper or flooring that is to be embedded in a series or theme list will be generated without a collapsible div container. There are also several #switch parser functions which change the color of the table if it is of the fish, insect, or seafood type.-->
 
{{#switch:{{{collection|}}}
 
| series
 
| theme = {{#switch:{{{type|}}} | wallpaper | flooring = {{(!}} class="sortable align="center" width="100%" cellspacing="0px" cellpadding="1px" style="background:#FFDD66; text-align:center; border: 4px solid #FFDD66; {{roundy}}"}}
 
| <div class="mw-collapsible {{#ifeq: "{{{collapsed|false}}}" | "true" | mw-collapsed | }}" style="margin:auto; width:80%; background:#FFDD66; border: 4px solid #FFDD66; text-align:center; {{roundy}}">
 
'''{{{title|Please enter a title.}}}'''
 
<div class="mw-collapsible-content">
 
{{(!}} class="sortable align="center" width="100%" cellspacing="0px" cellpadding="1px" style="background:#{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 4F9FC6 | FFDD66}}; text-align:center; border: 4px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; {{roundy}}"}}
 
 
 
<!--This code creates the heading text for the first column which is identical for all tables except for those of the bug, insect, music, and seafood type.-->
 
! style="{{roundyleft}}" {{!}} {{#switch:{{{type|}}} | fish | insect | seafood = # | music = Song Title | Item}}
 
 
 
! style="border-bottom:4px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; border-right: 2px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; border-left: 2px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; background-color:#{{#switch:{{{type|}}} | fish = 66CCFF | insect = 9acd32 | seafood = 66a6ff | FFFFCC}}; color:#666;" {{!}} {{#switch:{{{type|}}} | fish | insect | seafood = Name | music = {{#switch:{{{game|}}} | ACNL = Image | Listen}} | Image}}
 
 
 
! style="border-bottom:4px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; border-right: 2px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; border-left: 2px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; background-color:#{{#switch:{{{type|}}} | fish = 66CCFF | insect = 9acd32 | seafood = 66a6ff | FFFFCC}}; color:#666;" {{!}} {{#switch:{{{collection|}}} | other = {{#switch:{{{type|}}} | fish | insect | seafood = Image | music = {{#switch:{{{game|}}} | ACNL = Listen | Buy Price}} | Collection}} | Buy Price}}
 
 
 
! style="border-bottom:4px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; border-right: 2px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; border-left: 2px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; background-color:#{{#switch:{{{type|}}} | fish = 66CCFF | insect = 9acd32 | seafood = 66a6ff | FFFFCC}}; color:#666;" {{!}} {{#switch:{{{collection|}}} | other = {{#switch:{{{type|}}} | fish | insect | seafood = Price | music = {{#switch:{{{game|}}} | ACNL = Buy Price | Sell Price}} | wallpaper | carpet = Match | Buy Price}} | Sell Price}}
 
 
 
! style="border-bottom:4px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; border-right: 2px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; border-left: 2px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; background-color:#{{#switch:{{{type|}}} | fish = 66CCFF | insect = 9acd32 | seafood = 66a6ff | FFFFCC}}; color:#666;" {{!}} {{#switch:{{{collection|}}} | other = {{#switch:{{{type|}}} | fish | insect = Location | seafood = Size | music = {{#switch:{{{game|}}} | ACNL = Sell Price | Available From}} | wallpaper | carpet = Buy Price | Sell Price}} | Available From}}
 
 
 
! style="border-bottom:4px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; border-right: 2px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; border-left: 2px solid #{{#switch:{{{type|}}} | fish = 4F9FC6 | insect = 8BB95A | seafood = 66a6ff | FFDD66}}; background-color:#{{#switch:{{{type|}}} | fish = 66CCFF | insect = 9acd32 | seafood = 66a6ff | FFFFCC}}; color:#666;" {{!}} {{#switch:{{{collection|}}} other = {{#switch:{{{type|}}} | fish | insect | seafood = Time | music = {{#switch:{{{game|}}} | ACNL = Available From}} | wallpaper | carpet = Sell Price | Available From}} | {{#switch:{{{game|}}} | ACCF | ACNL = Color(s) | Group}}
 
</nowiki>
 
 
 
=== Parameters ===
 
All parameters are required unless otherwise noted.
 
* '''title''' - The table heading text.
 
* '''collapsed''' - Optional. Will cause the table to appear collapsed by default. Accepts a true or false value; default value is false.
 
* '''game''' - Enter the appropriate abbreviation to display an item table with headings corresponding to that AC title. Acceptable values listed below.
 
* '''type''' - The type of item you're creating a list for (e.g. furniture, wallpaper, clothing, accessories etc.). Acceptable values listed below.
 
* '''collection''' - The type of item ''grouping'' you're creating a list for (e.g. series, theme, set etc.). Acceptable values listed below.
 
 
 
{|
 
|-
 
| style="vertical-align: top;" |
 
{| class="wikitable" width="175px" style="text-align:center"
 
! colspan=2 height=25px| <big>Acceptable ''game'' Parameter Values</big>
 
|-
 
! Game
 
! Value
 
|-
 
! {{DnM}}
 
| DnM
 
|-
 
! {{DnM+}}
 
| DnM+
 
|-
 
! {{PG}}
 
| ACGC
 
|-
 
! {{WW}}
 
| ACWW
 
|-
 
! {{CF}}
 
| ACCF
 
|-
 
! {{NL}}
 
| ACNL
 
|}
 
 
|
 
|
{| class="wikitable" width="175px" style="text-align:center"
+
{| cellpadding="0px" margin="0px" width=100% class="sortable" style="text-align:center; background-color:#FFDD66; border-top: 3px solid #FFDD66; border-right: 5px solid #FFDD66; border-left: 5px solid #FFDD66; border-bottom: 3px solid #FFDD66; {{roundytop|10px}};"
! colspan=2 height=25px| <big>Acceptable ''type'' Parameter Values</big>
+
! colspan="3" style="{{roundytop|7px}}" | Ideal Clothing for Drift – Strange
|-
+
|- style="color:#444444;"
| accessory
+
! height=20  style="background-color:#FFFFCC; {{roundyleft}}" | Name
|-
+
! style="background-color:#FFFFCC;" | Price
| carpet
+
! style="background-color:#FFFFCC; {{roundyright}}" | Available From
|-
 
| clothing
 
|-
 
| fish
 
|-
 
| fossils
 
|-
 
| furniture
 
 
|-
 
|-
| gyroid
+
| style="background-color: #fff; {{roundytl|10px}}" | Item Name
 +
| style="background-color: #fff" | 1,000
 +
| style="background-color: white; {{roundytr|10px}}" | [[Timmy & Tommy]]
 
|-
 
|-
| insect
+
| style="background-color: #fff;" | Item Name
 +
| style="background-color: #fff" | 1,000
 +
| style="background-color: white;" | [[Timmy & Tommy]]
 
|-
 
|-
| misc<small><sup><span class="explain" title="For any item that does not fit any of the other parameter values.">1</span></sup></small>
+
| style="background-color: #fff;" | Item Name
 +
| style="background-color: #fff" | 1,000
 +
| style="background-color: white;" | [[Timmy & Tommy]]
 
|-
 
|-
| music
+
| style="background-color: #fff;" | Item Name
 +
| style="background-color: #fff" | 1,000
 +
| style="background-color: white;" | [[Timmy & Tommy]]
 
|-
 
|-
| seafood
+
| style="background-color: #fff; {{roundybl|10px}}" | Item Name
|-
+
| style="background-color: #fff" | 1,000
| stationery
+
| style="background-color: white; {{roundybr|10px}}" | [[Timmy & Tommy]]
|-
 
| wallpaper
 
 
|}
 
|}
| style="vertical-align: top;" |
+
{| width=100% cellpadding=0px style="border-collapse: collapse; text-align: center"
{| class="wikitable" width="175px" style="text-align:center"
+
| width=50% style="border-top: solid 1px #efba00; border-right: solid 1px #efba00; background: #FFDD66; {{roundybl|10px}}" | '''<small>[[Time travel|{{colorshow|000000|<span style{{=}}"color:#444">More Orange Furniture}}</span>]]</small>'''
! colspan=2 height=25px| <big>Acceptable ''collection'' Parameter Values</big>
+
| width=50% style="border-top: solid 1px #efba00; background: #FFDD66; {{roundybr|10px}}" | '''<small>[[Time travel|{{colorshow|000000|<span style{{=}}"color:#444">More Retro/Dignified Furniture}}</span>]]</small>'''
|-
 
| category
 
|-
 
| other
 
|-
 
| series
 
|-
 
| set
 
|-
 
| theme
 
 
|}
 
|}
 
|}
 
|}

Revision as of 22:23, July 25, 2015

Ideal Clothing for Drift – Strange
Name Price Available From
Item Name 1,000 Timmy & Tommy
Item Name 1,000 Timmy & Tommy
Item Name 1,000 Timmy & Tommy
Item Name 1,000 Timmy & Tommy
Item Name 1,000 Timmy & Tommy
More Orange Furniture More Retro/Dignified Furniture