Jump to content

Template:Clothing Items by Category Table: Difference between revisions

From The Petit Planet Wiki
ReisuDesign (talk | contribs)
added check for empty result so no table header will show
ReisuDesign (talk | contribs)
No edit summary
Line 43: Line 43:
-->{{#if:{{{notype|}}}||,²{Array¦%%¦;¦<ul><li>{item}</li></ul>}²}}<!--
-->{{#if:{{{notype|}}}||,²{Array¦%%¦;¦<ul><li>{item}</li></ul>}²}}<!--
-->{{#if:{{{noset|}}}||,²{#ifexist:%%¦[[%%]]¦%%}²<!---->}}<!--
-->{{#if:{{{noset|}}}||,²{#ifexist:%%¦[[%%]]¦%%}²<!---->}}<!--
-->{{#if:{{{nocolor|}}}||,²{Array¦%%¦;¦<ul><li>{item}</li></ul>}²}}<!--
-->{{#if:{{{nocolor|}}}||,²{Array¦%%¦;¦<ul><li>[[{item}]]</li></ul>}²}}<!--
-->{{#if:{{{nomaterial|}}}||,²{Array¦%%¦;¦<ul><li>{item}</li></ul>}²}}<!--
-->{{#if:{{{nomaterial|}}}||,²{Array¦%%¦;¦<ul><li>[[{item}]]</li></ul>}²}}<!--
-->{{#if:{{{nostyle|}}}||,²{Array¦%%¦;¦<ul><li>{item}</li></ul>}²}}<!--
-->{{#if:{{{nostyle|}}}||,²{Array¦%%¦;¦<ul><li>[[{item}]]</li></ul>}²}}<!--
-->,²{Array¦%%¦;¦<ul><li>{item}</li></ul>}²
-->,²{Array¦%%¦;¦<ul><li>{item}</li></ul>}²
|format    = ,,,
|format    = ,,,

Revision as of 12:35, 31 August 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.

Generates a sortable table of clothing items matching the specified categories. The table can optionally hide the Number, Type, Set, Color, Material, and Style columns.

Syntax

{{Clothing Items by Category Table|Category|Subcategory|nonumber = 1|notype = 1|noset = 1|nocolor = 1|nomaterial = 1|nostyle = 1}}

Examples

{{Clothing Items by Category Table|Face Accessory}} yields:
There are 11 clothing items matching the selected category:
Icon No. Name Type Set Color Material Style Source
Basic Facial Mask
Basic Facial Mask
  • Face Accessory
Campus Round Glasses
Campus Round Glasses
  • Face Accessory
Campus
Candyland Bubble
Candyland Bubble
  • Face Accessory
  • Full-Face Accessory
Candyland
Chic Black Cat-Eye Sunglasses
Chic Black Cat-Eye Sunglasses
  • Face Accessory
Galactic Dreamseeker's Earring
Galactic Dreamseeker's Earring
  • Face Accessory
Galactic Dreamseeker
Graff Black Mask
Graff Black Mask
  • Face Accessory
  • Respirator
Fernograff
Graff White Mask
Graff White Mask
  • Face Accessory
  • Respirator
Deckgraff
Hollow Bamboo Mustache
Hollow Bamboo Mustache
  • Face Accessory
  • Full-Face Accessory
Hollow Bamboo
Legato Gold-Rimmed Glasses
Legato Gold-Rimmed Glasses
  • Face Accessory
  • Glasses
Legato
Stardust Glasses
Stardust Glasses
  • Face Accessory
  • Glasses
White Adhesive Bandage
White Adhesive Bandage
  • Face Accessory
{{Clothing Items by Category Table|Hat|Green Clothing|nonumber = 1|notype = 1|noset = 1|nocolor = 1|nomaterial = 1|nostyle = 1}} yields:
There are 8 clothing items matching the selected category:
Icon Name Source
Coffee Cup Headpiece
Coffee Cup Headpiece
Dewy Grass Farming Hat
Dewy Grass Farming Hat
Explorer's Hat
Explorer's Hat
Handcrafted Cactus Hat
Handcrafted Cactus Hat
Handcrafted Lucky Clover Hat
Handcrafted Lucky Clover Hat
Handcrafted Rugged Contour Hat
Handcrafted Rugged Contour Hat
Handcrafted Tree Sapling Hat
Handcrafted Tree Sapling Hat
  • Memo Task Reward
Handstitched Peachy Pink Hat
Handstitched Peachy Pink Hat
{{Clothing Items by Category Table|Yarn Clothing}} yields:
There are 26 clothing items matching the selected category:
Icon No. Name Type Set Color Material Style Source
Amethyst Loomix Top
Amethyst Loomix Top
  • Tops
  • Hoodie
Loomix Nova
Beige Loomix Top
Beige Loomix Top
  • Tops
  • Hoodie
Loomix Nova
Brown Star Socks
Brown Star Socks
  • Socks
  • Ankle Socks
Campus Black Socks
Campus Black Socks
  • Socks
Campus
Cerulean Loomix Top
Cerulean Loomix Top
  • Tops
  • Hoodie
Loomix Nova
Deckgraff Beanie
Deckgraff Beanie
  • Headwear
  • Hat
Deckgraff
Diamond Cardigan
Diamond Cardigan
  • Tops
  • Sweater
Explorer's Top
Explorer's Top
  • Tops
  • Hoodie
Explorer
Fernograff Beanie
Fernograff Beanie
  • Headwear
  • Hat
Fernograff
Gray with Black Toe Socks
Gray with Black Toe Socks
  • Socks
  • Ankle Socks
Green Checkered Socks
Green Checkered Socks
  • Socks
  • Ankle Socks
Green Striped Tights
Green Striped Tights
  • Socks
  • Tights
Legato Gloves
Legato Gloves
  • Hand Accessory
  • Gloves
Legato
Legato Shoes
Legato Shoes
  • Footwear
Legato
Loomix Nova Patch Socks
Loomix Nova Patch Socks
  • Socks
  • Tights
Loomix Nova
Olive Loomix Top
Olive Loomix Top
  • Tops
  • Hoodie
Loomix Nova
Orange & Yellow Argyle Socks
Orange & Yellow Argyle Socks
  • Socks
  • Ankle Socks
Orange Striped Socks
Orange Striped Socks
  • Socks
  • Ankle Socks
Pea Green Sweater
Pea Green Sweater
  • Tops
Pink & Black Argyle Socks
Pink & Black Argyle Socks
  • Socks
  • Ankle Socks
Polka Dot Red Toe Socks
Polka Dot Red Toe Socks
  • Socks
  • Ankle Socks
Polystar Bed Socks
Polystar Bed Socks
  • Socks
  • Ankle Socks
Polystar Nightgown
Sleepymoon Bed Socks
Sleepymoon Bed Socks
  • Socks
  • Ankle Socks
Sleepymoon Nightgown
Sound of the Waves Socks
Sound of the Waves Socks
  • Socks
  • Ankle Socks
White Sports Socks
White Sports Socks
  • Socks
  • Ankle Socks
White with Yellow Toe Socks
White with Yellow Toe Socks
  • Socks
  • Ankle Socks

Template Data

Generates a sortable table of clothing items matching the specified categories, with optional columns that can be hidden.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Category prefix1

The first category used to filter clothing items. The value is appended to "Clothing Items".

Stringrequired
Category2

The second category used to filter clothing items.

Stringoptional
Hide numbernonumber

If set, hides the No. column from the table.

Booleanoptional
Hide typenotype

If set, hides the Type column from the table.

Booleanoptional
Hide setnoset

If set, hides the Set column from the table.

Booleanoptional
Hide colornocolor

If set, hides the Color column from the table.

Booleanoptional
Hide materialnomaterial

If set, hides the Material column from the table.

Booleanoptional
Hide stylenostyle

If set, hides the Style column from the table.

Booleanoptional