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+''")
(Link template refactor proposal)
 
(96 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Working on a [[Template:ItemList]] revamp to make it easier to use.
+
{{#switch:{{{1|}}}
 +
| nl = {{#switch: {{{2|}}}
 +
      | short = NH
 +
      | long = ''Animal Crossing: New Horizons''
 +
      | #default= ''New Horizons''
 +
      }}
 +
| s  = {{#switch: {{{2|}}}
 +
      | nl = NH
 +
      | #default= [[New Horizons|NH]]
 +
      }}
 +
| l  = {{#switch:{{{2|}}}
 +
      | nl = ''Animal Crossing: New Horizons''
 +
      | #default= ''[[Animal Crossing: New Horizons]]''
 +
      }}
 +
| #default = ''[[New Horizons]]''
 +
}}<noinclude>
 +
==Documentation==
 +
Produces a link to the {{NH}} article.
  
==Template:TableHeader==
+
*<code>s</code> - (for 'short') can be used to produce an acronym: [[New Horizons|NH]]
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.
+
*<code>l</code> - (for 'long') can be used to produce the title's full name: [[Animal Crossing: New Horizons]]
 +
*<code>nl</code> - (for 'no link') can be used to remove the link: New Horizons
  
<nowiki>
+
</noinclude>
<!-- 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"
 
! colspan=2 height=25px| <big>Acceptable ''type'' Parameter Values</big>
 
|-
 
| accessory
 
|-
 
| carpet
 
|-
 
| clothing
 
|-
 
| fish
 
|-
 
| fossils
 
|-
 
| furniture
 
|-
 
| gyroid
 
|-
 
| insect
 
|-
 
| misc<small><sup><span class="explain" title="For any item that does not fit any of the other parameter values.">1</span></sup></small>
 
|-
 
| music
 
|-
 
| seafood
 
|-
 
| stationery
 
|-
 
| wallpaper
 
|}
 
| style="vertical-align: top;" |
 
{| class="wikitable" width="175px" style="text-align:center"
 
! colspan=2 height=25px| <big>Acceptable ''collection'' Parameter Values</big>
 
|-
 
| category
 
|-
 
| other
 
|-
 
| series
 
|-
 
| set
 
|-
 
| theme
 
|}
 
|}
 

Latest revision as of 23:39, August 19, 2021

New Horizons

Documentation

Produces a link to the Animal Crossing: New Horizons article.

  • s - (for 'short') can be used to produce an acronym: NH
  • l - (for 'long') can be used to produce the title's full name: Animal Crossing: New Horizons
  • nl - (for 'no link') can be used to remove the link: New Horizons