Jump to content

Template:Category: Difference between revisions

From Untitled Monster Game
imported>Ziebster
No edit summary
imported>Ziebster
No edit summary
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{2|}}} | [[:Category:{{{1}}}|{{{2}}}]] }} {{#switch: {{{1|}}}
<includeonly>{{#if: {{{2|}}}
  | {{#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|}}}
   | Vpet =  
   | Vpet =  
     [[Category:Devices]]
     [[Category:Devices]]
     [[Category:Vpet]]
     [[Category:Virtual Pet]]
   | Digivice =
   | Digivice =
     [[Category:Devices]]
     [[Category:Devices]]
     [[Category:Digivice]]
     [[Category:{{{1}}}]]
   | Console =
   | Console =
     [[Category:Devices]]
     [[Category:Devices]]
     [[Category:Console]]
     [[Category:{{{1}}}]]
   | Analyzer =
   | Analyzer =
     [[Category:Devices]]
     [[Category:Devices]]
     [[Category:Analyzer]]
     [[Category:{{{1}}}]]
   | Crossover =
   | Crossover =
     [[Category:Devices]]
     [[Category:Devices]]
     [[Category:Vpet]]
     [[Category:Virtual Pet]]
     [[Category:Crossover]]
     [[Category:{{{1}}}]]
   | Aura =
   | Aura =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Aura]]
     [[Category:{{{1}}}]]
   | Back =
   | Back =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Back]]
     [[Category:{{{1}}}]]
   | Companion =
   | Companion =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Companion]]
     [[Category:Equipment]]
    [[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]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Left Hand]]
     [[Category:{{{1}}}]]
   | Middle Head =
   | Middle Head =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Middle Head]]
     [[Category:{{{1}}}]]
   | Mount =
   | Mount =
    [[Category:Items]]
    [[Category:Mount]]
  | Mount E =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Mount]]
     [[Category:{{{1}}}]]
   | Pants =
   | Pants =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Pants]]
     [[Category:{{{1}}}]]
   | Right Hand =
   | Right Hand =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Right Hand]]
     [[Category:{{{1}}}]]
   | Shirt =
   | Shirt =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Shirt]]
     [[Category:{{{1}}}]]
   | Top Head =
   | Top Head =
    [[Category:Items]]
    [[Category:Equipment]]
    [[Category:{{{1}}}]]
  | Top Head Q =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Top Head]]
     [[Category:Top Head]]
    [[Category:Quest Items]]
   | Consumable =
   | Consumable =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Consumable]]
     [[Category:{{{1}}}]]
   | Gacha =
   | Gacha =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Gacha]]
     [[Category:Consumable]]
    [[Category:{{{1}}}]]
   | Material =
   | Material =
    [[Category:Items]]
    [[Category:{{{1}}}]]
  | Quest Items =
    [[Category:Items]]
    [[Category:{{{1}}}]]
  | Quest Items M =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Material]]
     [[Category:Material]]
   | Quest Items =
    [[Category:Quest Items]]
   | Quest Items C =
     [[Category:Items]]
     [[Category:Items]]
    [[Category:Consumable]]
     [[Category:Quest Items]]
     [[Category:Quest Items]]
   | Token =
   | Token =
     [[Category:Items]]
     [[Category:Items]]
    [[Category:Material]]
    [[Category:{{{1}}}]]
  | Token Q =
    [[Category:Items]]
    [[Category:Material]]
     [[Category:Token]]
     [[Category:Token]]
  | NPC =
     [[Category:Quest Items]]
     [[Category:NPC]]
   | Prospective Resident =
   | Prospective Resident =
     [[Category:NPC]]
     [[Category:NPC]]
     [[Category:Prospective Resident]]
     [[Category:{{{1}}}]]
  | Areas =
    [[Category:Areas]]
   | Dungeon =
   | Dungeon =
     [[Category:Areas]]
     [[Category:Areas]]
     [[Category:Dungeon]]
     [[Category:{{{1}}}]]
  | Enemies =
    [[Category:Enemies]]
  | Worldbosses =
    [[Category:Worldbosses]]
  | Battle Type Color =
    [[Category:Battle Type Color]]
   | #default =
   | #default =
     [[Category:Uncategorized pages]] <!-- Optional fallback -->
     [[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.
== Usage ==
This template adds a full category tree based on the type specified.


Example Usage:
Example Usage:
<pre>{{Category|Example|Link Label}}</pre>
<pre>{{Category|Example|Link Label}}</pre>
==='''Supported values:===
==='''Supported values:===
* Vpet | LINK Label
* Vpet | Link Label
* Digivice | LINK Label
* Digivice | Link Label
* Console | LINK Label
* Console | Link Label
* Analyzer | LINK Label
* Analyzer | Link Label
* Crossover | LINK Label
* Crossover | Link Label


* Aura | LINK Label
* Aura | Link Label
* Back | LINK Label
* Back | Link Label
* Companion | LINK Label
* Companion | Link Label
* Companion L [DOES NOT WORK WITH LINK Label]
* Companion L | Link Label
* Left Hand | LINK Label
* Companion R | Link Label
* Middle Head | LINK Label
* Left Hand | Link Label
* Mount | LINK Label
* Middle Head | Link Label
* Mount E [DOES NOT WORK WITH 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
* Consumable | LINK Label
* Top Head Q | Link Label
* Gacha | LINK Label
* Material | LINK Label
* Quest Items | LINK Label
* Token | LINK Label


* NPC | LINK Label
* Consumable | Link Label
* Prospective Resident | LINK Label
* Gacha | Link Label
* Areas | LINK Label
* Material | Link Label
* Dungeon | LINK Label
* Quest Items | Link Label
* Enemies | LINK Label
* Quest Items M | Link Label
* Worldbosses | LINK Label
* Quest Items C | Link Label
* Token | Link Label
* Token Q | Link Label


* Battle Type Color | LINK Label
* Prospective Resident | Link Label
* Dungeon | Link Label


Add more cases in the #switch as needed.
Add more cases in the #switch as needed.
<templatedata>
<templatedata>
{
{
"description": "Adds a full category tree based on the selected type.",
"description": "Adds a full category tree based on the selected type, and if necessary a Link.",
"params": {
"params": {
"1": {
"1": {
"label": "Category Tree",
"label": "Category",
"description": "Select the genre or type to apply the full category hierarchy.",
"description": "Select the name to create the Category",
"type": "string",
"type": "string",
"required": true,
"required": true,
Line 149: Line 180:
"Vpet",
"Vpet",
"Digivice",
"Digivice",
                "Console",
"Console",
                "Analyzer",
"Analyzer",
"Crossover",
"Crossover",
"Aura",
"Aura",
Line 156: Line 187:
"Companion",
"Companion",
"Companion L",
"Companion L",
                "Companion R",
"Left Hand",
"Left Hand",
"Middle Head",
"Middle Head",
Line 169: Line 201:
"Quest Items",
"Quest Items",
"Token",
"Token",
"NPC",
"Prospective Resident",
"Prospective Resident",
"Areas",
"Dungeon"
"Dungeon",
"Enemies",
"Worldbosses"
]
]
},
},
"2": {
"2": {
"label": "LINK Label",
"label": "Link Label",
"type": "string",
"type": "string",
"description": "String output to display link to category as"
"description": "String output to display as a Link to Category"
}
}
},
},

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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Category1

Select the name to create the Category

Suggested values
Vpet Digivice Console Analyzer Crossover Aura Back Companion Companion L Companion R Left Hand Middle Head Mount Mount E Pants Right Hand Shirt Top Head Consumable Gacha Material Quest Items Token Prospective Resident Dungeon
Stringrequired
Link Label2

String output to display as a Link to Category

Stringoptional