Difference between revisions of "Template:ModuleInfo"

From The Perfect Tower II
Jump to navigation Jump to search
m (Added name as alias for Name)
(Ensuring aliases work)
Line 3: Line 3:
 
{
 
{
 
"params": {
 
"params": {
"Module Type": {
+
"Type": {
 
"aliases": [
 
"aliases": [
 
"type"
 
"type"
Line 26: Line 26:
 
"required": true
 
"required": true
 
},
 
},
"Description": {
+
"Desc": {
 
"aliases": [
 
"aliases": [
"desc"
+
"desc",
 +
"Description"
 
],
 
],
 
"label": "Description",
 
"label": "Description",
Line 36: Line 37:
 
"suggested": true
 
"suggested": true
 
},
 
},
"Module Code": {
+
"Code": {
 
"aliases": [
 
"aliases": [
 
"code",
 
"code",
Line 63: Line 64:
 
"paramOrder": [
 
"paramOrder": [
 
"Name",
 
"Name",
"Module Type",
+
"Type",
 
"Tier",
 
"Tier",
"Description",
+
"Desc",
"Module Code"
+
"Code"
 
]
 
]
 
}
 
}
Line 75: Line 76:
 
<includeonly>
 
<includeonly>
 
{| class="wikitable"
 
{| class="wikitable"
!colspan="2"|<span style="font-weight:bold">{{{Name}}}</span>
+
!colspan="2"|<span style="font-weight:bold">{{{Name|{{{name|{{{module|}}} }}} }}}</span>
 
|-
 
|-
!colspan="2"|[[File:{{{type}}} Module.png|frameless|30px]]
+
!colspan="2"|[[File:{{{type|{{{Type|}}} }}} Module.png|frameless|30px]]
 
|-
 
|-
 
! Module Type
 
! Module Type
| <span style="font-weight:bold;color:{{switch:{{{type}}} | Offensive = #ec0800| Defensive = #009eff | Utility = #fcff00 | Ultimate = #9f00ff | Special = #a3a3a3 | Legendary = #ff8300}}">{{{type}}}</span>
+
| <span style="font-weight:bold;color:{{switch:{{{type|{{{Type|}}} }}} | Offensive = #ec0800| Defensive = #009eff | Utility = #fcff00 | Ultimate = #9f00ff | Special = #a3a3a3 | Legendary = #ff8300}}">{{{type|{{{Type|}}} }}}</span>
 
|-
 
|-
 
! Module Code
 
! Module Code
| {{{code}}}
+
| {{{code|{{{Code|{{{id}}} }}} }}}
 
|-
 
|-
 
! Maximum Tier
 
! Maximum Tier
| {{{Tier}}}
+
| {{{Tier|{{{tier|{{{max|{{{maxTier}}} }}} }}} }}}
 
|-
 
|-
 
! Description
 
! Description
| {{{Description}}}
+
| {{{Description|{{{desc|{{{Desc|}}} }}} }}}
 
|-
 
|-
 
|}
 
|}

Revision as of 23:35, 22 August 2023

For adding a specific module with its information to the page

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Module NameName module name

The Module's Name.

Example
Daigoparry
Stringrequired
Module TypeType type

The type of module. (Offensive, Defensive, Utility, Special, Legendary)

Example
Offensive
Stringrequired
Maximum TierTier maxTier max tier

The maximum tier for the module.

Default
250
Example
250
Numberrequired
DescriptionDesc desc Description

The Description / Information of the Module

Example
Lorem Ipsum gives +1 base statistics to Dolor Sit Amet. Does not work with Consectetur Adipiscing Elit.
Contentsuggested
Module CodeCode code id

The internal code for the module.

Example
attack.basic / regeneration.relative / tower.absolute.zero
Stringsuggested