Jump to content

Template:Category: Difference between revisions

From Untitled Monster Game
imported>Ziebster
No edit summary
imported>Ziebster
No edit summary
 
(43 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#if: {{{2|}}}
{{#switch: {{{1|}}}
  | {{#ifeq: {{{1|}}} | Companion L <!-- check for Companion L -->
   | vpet =  
  | [[: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 =  
     [[Category:Devices]]
     [[Category:Devices]]
     [[Category:VPet]]
     [[Category:Virtual Pet]]
   | crossover =
   | Digivice =
     [[Category:Devices]]
     [[Category:Devices]]
     [[Category:VPet]]
     [[Category:{{{1}}}]]
    [[Category:Crossover]]
   | Console =
   | digivice =
     [[Category:Devices]]
     [[Category:Devices]]
     [[Category:Digivice]]
     [[Category:{{{1}}}]]
   | aura =
   | Analyzer =
    [[Category:Devices]]
    [[Category:{{{1}}}]]
  | Crossover =
    [[Category:Devices]]
    [[Category:Virtual Pet]]
    [[Category:{{{1}}}]]
  | 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]]
   | left hand =
   | Companion R =
    [[Category:Items]]
    [[Category:Equipment]]
    [[Category:Companion]]
    [[Category:Right 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:Items]]
     [[Category:Mount]]
     [[Category:Equipment]]
   | mount e =
    [[Category:{{{1}}}]]
   | Pants =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Mount]]
     [[Category:{{{1}}}]]
   | pants =
   | Right Hand =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Pants]]
     [[Category:{{{1}}}]]
   | right hand =
   | Shirt =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Right Hand]]
     [[Category:{{{1}}}]]
   | shirt =
   | Top Head =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Shirt]]
     [[Category:{{{1}}}]]
   | top head =
   | Top Head Q =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Equipment]]
     [[Category:Equipment]]
     [[Category:Top Head]]
     [[Category:Top Head]]
   | consumable =
    [[Category:Quest Items]]
   | Consumable =
    [[Category:Items]]
    [[Category:{{{1}}}]]
  | Gacha =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Consumable]]
     [[Category:Consumable]]
   | gacha =
    [[Category:{{{1}}}]]
   | Material =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Gacha]]
     [[Category:{{{1}}}]]
   | material =
   | Quest Items =
     [[Category:Items]]
     [[Category:Items]]
     [[Category:Digivice]]
     [[Category:{{{1}}}]]
   | quest items =
   | Quest Items M =
     [[Category:Items]]
     [[Category:Items]]
    [[Category:Material]]
     [[Category:Quest Items]]
     [[Category:Quest Items]]
   | token =
   | Quest Items C =
     [[Category:Items]]
     [[Category:Items]]
    [[Category:Consumable]]
    [[Category:Quest Items]]
  | Token =
    [[Category:Items]]
    [[Category:Material]]
    [[Category:{{{1}}}]]
  | Token Q =
    [[Category:Items]]
    [[Category:Material]]
     [[Category:Token]]
     [[Category:Token]]
   | npc =
    [[Category:Quest Items]]
   | Prospective Resident =
     [[Category:NPC]]
     [[Category:NPC]]
  | resident =
     [[Category:{{{1}}}]]
    [[Category:NPC]]
   | Dungeon =
     [[Category:Prospective Resident]]
   | areas =
     [[Category:Areas]]
     [[Category:Areas]]
  | dungeon =
     [[Category:{{{1}}}]]
     [[Category:Areas]]
    [[Category:Dungeon]]
  | enemies =
    [[Category:Enemies]]
  | worldbosses =
    [[Category:Worldbosses]]
   | #default =
   | #default =
     [[Category:Uncategorized pages]] <!-- Optional fallback -->
     [[Category:{{{1}}}]] <!-- Optional fallback -->
}}
}}</includeonly><noinclude>This template can add a full category tree based on the type specified, or modify the Category link across all links simultaneously.
</includeonly>
<noinclude>
== Usage ==
This template adds a full category tree based on the type specified.


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


'''Supported values:'''
* Aura | Link Label
* vpet
* Back | Link Label
* crossover
* Companion | Link Label
* digivice
* 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


* aura
* Consumable | Link Label
* back
* Gacha | Link Label
* companion
* Material | Link Label
* companion l
* Quest Items | Link Label
* left hand
* Quest Items M | Link Label
* middle head
* Quest Items C | Link Label
* mount
* Token | Link Label
* mount e
* Token Q | Link Label
* pants
* right hand
* shirt
* top head
* consumable
* gacha
* material
* quest items
* token


* npc
* Prospective Resident | Link Label
* resident
* Dungeon | Link Label
* areas
* dungeon
* enemies
* worldbosses


Add more cases in the #switch as needed.
Add more cases in the #switch as needed.
 
<templatedata>
{
"description": "Adds a full category tree based on the selected type, and if necessary a Link.",
"params": {
"1": {
"label": "Category",
"description": "Select the name to create the Category",
"type": "string",
"required": true,
"suggestedvalues": [
"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"
]
},
"2": {
"label": "Link Label",
"type": "string",
"description": "String output to display as a Link to Category"
}
},
"paramOrder": [
"1",
"2"
],
"format": "inline"
}
</templatedata>
[[Category:General wiki templates]]
[[Category:General wiki templates]]
</noinclude>
</noinclude>

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