Difference between revisions of "User:Sunmarsh/Sandbox"

From Nookipedia, the Animal Crossing wiki
(Working on an update to make Template:ItemList easier to use...)
 
(Link template refactor proposal)
 
(102 intermediate revisions by 3 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
  
<pre>
+
</noinclude>
{{#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:#FFDD66; text-align:center; border: 4px solid #FFDD66; {{roundy}}"}}
 
</pre>
 
 
 
=== 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
 
|-
 
! {{AF}}
 
| DnM
 
|-
 
! {{AF+}}
 
| 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>
 
|-
 
| wallpaper
 
|-
 
| flooring
 
|-
 
| clothing
 
|-
 
| furniture
 
|-
 
| accessories
 
|-
 
| catalog
 
|-
 
| misc
 
|-
 
| stationery
 
|-
 
| gyroids
 
|-
 
| fossils
 
|-
 
| music
 
|-
 
| insects
 
|-
 
| fish
 
|}
 
| style="vertical-align: top;" |
 
{| class="wikitable" width="175px" style="text-align:center"
 
! colspan=2 height=25px| <big>Acceptable ''collection'' Parameter Values</big>
 
|-
 
| series
 
|-
 
| theme
 
|-
 
| set
 
|-
 
| category
 
|}
 
|}
 

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