Template:Clothing Items by Category Table: Difference between revisions
test |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 44: | Line 44: | ||
-->{{#if:{{{noset|}}}||,²{#ifexist:%%¦[[%%]]¦%%}²<!---->}}<!-- | -->{{#if:{{{noset|}}}||,²{#ifexist:%%¦[[%%]]¦%%}²<!---->}}<!-- | ||
-->{{#if:{{{nocolor|}}}||,²{Array¦%%¦;¦<ul><li>[[{item}]]</li></ul>}²}}<!-- | -->{{#if:{{{nocolor|}}}||,²{Array¦%%¦;¦<ul><li>[[{item}]]</li></ul>}²}}<!-- | ||
-->{{#if:{{{nomaterial|}}}||,²{ | -->{{#if:{{{nomaterial|}}}||<!-- | ||
-->,²{Array<!-- | |||
-->¦1 = %%<!-- | |||
-->¦2 = ;<!-- | |||
-->¦3 = <ul><li>^2{Material Link¹{item}¹}^2</li></ul><!-- | |||
-->¦template = 1<!-- | |||
-->¦sort = 1<!-- | |||
-->}²<!-- | |||
-->}}<!-- | |||
-->{{#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>}² | ||
Latest revision as of 15:42, 25 October 2026
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
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
[edit source]{{Clothing Items by Category Table|Category|Subcategory|nonumber = 1|notype = 1|noset = 1|nocolor = 1|nomaterial = 1|nostyle = 1}}
Examples
[edit source]There are 11 clothing items matching the selected category:{{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:{{Clothing Items by Category Table|Yarn Clothing}} yields:
There are 26 clothing items matching the selected category:
Template Data
[edit source]Generates a sortable table of clothing items matching the specified categories, with optional columns that can be hidden.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Category prefix | 1 | The first category used to filter clothing items. The value is appended to "Clothing Items". | String | required |
| Category | 2 | The second category used to filter clothing items. | String | optional |
| Hide number | nonumber | If set, hides the No. column from the table. | Boolean | optional |
| Hide type | notype | If set, hides the Type column from the table. | Boolean | optional |
| Hide set | noset | If set, hides the Set column from the table. | Boolean | optional |
| Hide color | nocolor | If set, hides the Color column from the table. | Boolean | optional |
| Hide material | nomaterial | If set, hides the Material column from the table. | Boolean | optional |
| Hide style | nostyle | If set, hides the Style column from the table. | Boolean | optional |