Template:Category: Difference between revisions
Appearance
imported>Ziebster No edit summary |
imported>Ziebster No edit summary |
||
| (20 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{2|}}} | | <includeonly>{{#if: {{{2|}}} | ||
{{#ifeq: {{{1|}}} | | | {{#ifeq: {{{1|}}} | Companion L <!-- check for Companion L --> | ||
| [[:Category:Companion|{{{2}}}]] | |||
| {{#ifeq: {{{1|}}} | Companion R <!-- check for Companion R --> | |||
| [[:Category:Companion|{{{2}}}]] | |||
| {{#ifeq: {{{1|}}} | Quest Items M <!-- check for Companion R --> | |||
| [[:Category:Material|{{{2}}}]] | |||
| {{#ifeq: {{{1|}}} | Quest Items C <!-- check for Companion R --> | |||
| [[:Category:Consumable|{{{2}}}]] | |||
| {{#ifeq: {{{1|}}} | Top Head Q <!-- check for Companion R --> | |||
| [[:Category:Top Head|{{{2}}}]] | |||
| {{#ifeq: {{{1|}}} | Token Q <!-- check for Companion R --> | |||
| [[:Category:Token|{{{2}}}]] | |||
| [[:Category:{{{1|}}}|{{{2}}}]] | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | }} | ||
}}{{#switch: {{{1|}}} | |||
}} {{#switch: {{{1|}}} | |||
| Vpet = | | Vpet = | ||
[[Category:Devices]] | [[Category:Devices]] | ||
[[Category: | [[Category:Virtual Pet]] | ||
| Digivice = | | Digivice = | ||
[[Category:Devices]] | [[Category:Devices]] | ||
| Line 22: | Line 34: | ||
| Crossover = | | Crossover = | ||
[[Category:Devices]] | [[Category:Devices]] | ||
[[Category: | [[Category:Virtual Pet]] | ||
[[Category:{{{1}}}]] | [[Category:{{{1}}}]] | ||
| Aura = | | Aura = | ||
| Line 34: | Line 46: | ||
| Companion = | | Companion = | ||
[[Category:Items]] | [[Category:Items]] | ||
[[Category:Equipment]] | |||
[[Category:{{{1}}}]] | [[Category:{{{1}}}]] | ||
[[Category:Aura]] | [[Category:Aura]] | ||
| Companion L = | | Companion L = | ||
[[Category:Items]] | [[Category:Items]] | ||
[[Category:Equipment]] | |||
[[Category:Companion]] | [[Category:Companion]] | ||
[[Category:Left Hand]] | [[Category:Left Hand]] | ||
| Companion R = | |||
[[Category:Items]] | |||
[[Category:Equipment]] | |||
[[Category:Companion]] | |||
[[Category:Right Hand]] | |||
| Left Hand = | | Left Hand = | ||
[[Category:Items]] | [[Category:Items]] | ||
| Line 50: | Line 69: | ||
| Mount = | | Mount = | ||
[[Category:Items]] | [[Category:Items]] | ||
[[Category:Equipment]] | |||
[[Category:{{{1}}}]] | [[Category:{{{1}}}]] | ||
| Pants = | | Pants = | ||
[[Category:Items]] | [[Category:Items]] | ||
| Line 71: | Line 87: | ||
[[Category:Equipment]] | [[Category:Equipment]] | ||
[[Category:{{{1}}}]] | [[Category:{{{1}}}]] | ||
| Top Head Q = | |||
[[Category:Items]] | |||
[[Category:Equipment]] | |||
[[Category:Top Head]] | |||
[[Category:Quest Items]] | |||
| Consumable = | | Consumable = | ||
[[Category:Items]] | [[Category:Items]] | ||
| Line 76: | Line 97: | ||
| Gacha = | | Gacha = | ||
[[Category:Items]] | [[Category:Items]] | ||
[[Category:Consumable]] | |||
[[Category:{{{1}}}]] | [[Category:{{{1}}}]] | ||
| Material = | | Material = | ||
| Line 83: | Line 105: | ||
[[Category:Items]] | [[Category:Items]] | ||
[[Category:{{{1}}}]] | [[Category:{{{1}}}]] | ||
| Quest Items M = | |||
[[Category:Items]] | |||
[[Category:Material]] | |||
[[Category:Quest Items]] | |||
| Quest Items C = | |||
[[Category:Items]] | |||
[[Category:Consumable]] | |||
[[Category:Quest Items]] | |||
| Token = | | Token = | ||
[[Category:Items]] | [[Category:Items]] | ||
[[Category:Material]] | |||
[[Category:{{{1}}}]] | [[Category:{{{1}}}]] | ||
| | | Token Q = | ||
[[Category: | [[Category:Items]] | ||
[[Category:Material]] | |||
[[Category:Token]] | |||
[[Category:Quest Items]] | |||
| Prospective Resident = | | Prospective Resident = | ||
[[Category:NPC]] | [[Category:NPC]] | ||
[[Category:{{{1}}}]] | [[Category:{{{1}}}]] | ||
| Dungeon = | | Dungeon = | ||
[[Category:Areas]] | [[Category:Areas]] | ||
[[Category:{{{1}}}]] | [[Category:{{{1}}}]] | ||
| #default = | | #default = | ||
[[Category: | [[Category:{{{1}}}]] <!-- Optional fallback --> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude>This template can add a full category tree based on the type specified, or modify the Category link across all links simultaneously. | ||
This template | |||
Example Usage: | Example Usage: | ||
| Line 129: | Line 145: | ||
* Companion | Link Label | * Companion | Link Label | ||
* Companion L | Link Label | * Companion L | Link Label | ||
* Companion R | Link Label | |||
* Left Hand | Link Label | * Left Hand | Link Label | ||
* Middle Head | Link Label | * Middle Head | Link Label | ||
* Mount | Link Label | * Mount | Link Label | ||
* Pants | Link Label | * Pants | Link Label | ||
* Right Hand | Link Label | * Right Hand | Link Label | ||
* Shirt | Link Label | * Shirt | Link Label | ||
* Top Head | Link Label | * Top Head | Link Label | ||
* Top Head Q | Link Label | |||
* Consumable | Link Label | * Consumable | Link Label | ||
| Line 142: | Line 159: | ||
* Material | Link Label | * Material | Link Label | ||
* Quest Items | Link Label | * Quest Items | Link Label | ||
* Quest Items M | Link Label | |||
* Quest Items C | Link Label | |||
* Token | Link Label | * Token | Link Label | ||
* Token Q | Link Label | |||
* Prospective Resident | Link Label | * Prospective Resident | Link Label | ||
* Dungeon | Link Label | * Dungeon | Link Label | ||
Add more cases in the #switch as needed. | Add more cases in the #switch as needed. | ||
| Line 163: | Line 173: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "Category | "label": "Category", | ||
"description": "Select the | "description": "Select the name to create the Category", | ||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
| Line 177: | Line 187: | ||
"Companion", | "Companion", | ||
"Companion L", | "Companion L", | ||
"Companion R", | |||
"Left Hand", | "Left Hand", | ||
"Middle Head", | "Middle Head", | ||
| Line 190: | Line 201: | ||
"Quest Items", | "Quest Items", | ||
"Token", | "Token", | ||
"Prospective Resident", | "Prospective Resident", | ||
"Dungeon" | |||
"Dungeon | |||
] | ] | ||
}, | }, | ||
Latest revision as of 15:59, 30 January 2026
This template can add a full category tree based on the type specified, or modify the Category link across all links simultaneously.
Example Usage:
{{Category|Example|Link Label}}
Supported values:
- Vpet | Link Label
- Digivice | Link Label
- Console | Link Label
- Analyzer | Link Label
- Crossover | Link Label
- Aura | Link Label
- Back | Link Label
- Companion | Link Label
- Companion L | Link Label
- Companion R | Link Label
- Left Hand | Link Label
- Middle Head | Link Label
- Mount | Link Label
- Pants | Link Label
- Right Hand | Link Label
- Shirt | Link Label
- Top Head | Link Label
- Top Head Q | Link Label
- Consumable | Link Label
- Gacha | Link Label
- Material | Link Label
- Quest Items | Link Label
- Quest Items M | Link Label
- Quest Items C | Link Label
- Token | Link Label
- Token Q | Link Label
- Prospective Resident | Link Label
- Dungeon | Link Label
Add more cases in the #switch as needed.
Adds a full category tree based on the selected type, and if necessary a Link.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Category | 1 | Select the name to create the Category
| String | required |
| Link Label | 2 | String output to display as a Link to Category | String | optional |