Difference between revisions of "Template:Module"

From The Perfect Tower II
Jump to navigation Jump to search
(Reworked it, boss! (First Draft, adapted from Building))
Line 1: Line 1:
[[File:{{{1}}} Module.png|{{{1}}}|{{{size|x30px}}}|alt={{{1}}} Module]]<noinclude>
+
<noinclude>
 
<templatedata>
 
<templatedata>
 
{
 
{
 
"params": {
 
"params": {
"1": {
+
"Image": {
"label": "Type",
+
"label": "Image",
"description": "The type (offensive, defensive, utility, ultimate, special)",
+
"description": "The image of Module Type",
 +
"example": "Offensive Module.png",
 +
"type": "wiki-file-name",
 +
"required": true,
 +
"aliases": [
 +
"image"
 +
]
 +
},
 +
"Module Type": {
 +
"aliases": [
 +
"type"
 +
],
 +
"label": "Module Type",
 +
"description": "The type of module. (Offensive, Defensive, Utility, Special, Legendary)",
 
"example": "Offensive",
 
"example": "Offensive",
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 
},
 
},
"size": {
+
"Color": {
"label": "Size",
+
"aliases": [
"description": "Size of the icon, as a standard Mediawiki image size",
+
"colour"
"example": "30px",
+
],
 +
"label": "Colour",
 +
"description": "Colour of the Module Type (Off: #ec0800, Def: #009eff, Util: #fcff00, Ulti: #9f00ff, Spec: #a3a3a3, Leg: #ff8300)",
 +
"example": "#ec0800 / #009eff / #fcff00 / #9f00ff / #a3a3a3 / #ff8300",
 
"type": "string",
 
"type": "string",
"default": "x30px"
+
"suggested": true,
 +
"default": "#000000"
 +
},
 +
"Tier": {
 +
"aliases": [
 +
"maxTier",
 +
"max",
 +
"tier"
 +
],
 +
"label": "Maximum Tier",
 +
"description": "The maximum tier for the module.",
 +
"example": "250",
 +
"type": "number",
 +
"default": "250",
 +
"required": true
 +
},
 +
"Description": {
 +
"aliases": [
 +
"desc"
 +
],
 +
"label": "Description",
 +
"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.",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"Module Code": {
 +
"aliases": [
 +
"code",
 +
"id"
 +
],
 +
"label": "Module Code",
 +
"description": "The internal code for the module.",
 +
"example": "attack.basic / regeneration.relative / tower.absolute.zero",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"Name": {
 +
"aliases": [
 +
"module"
 +
],
 +
"label": "Module Name",
 +
"description": "The Module's Name.",
 +
"example": "Daigoparry",
 +
"type": "string",
 +
"required": true
 
}
 
}
 
},
 
},
 
"description": "For adding a module icon to the page",
 
"description": "For adding a module icon to the page",
"format": "inline"
+
"format": "inline",
 +
"paramOrder": [
 +
"Name",
 +
"Image",
 +
"Module Type",
 +
"Color",
 +
"Module Code",
 +
"Tier",
 +
"Description"
 +
]
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>
 +
 +
 +
<includeonly>
 +
{| class="wikitable"
 +
!colspan="2"|<span style="font-weight:bold">{{{Name}}}</span>
 +
|-
 +
!colspan="2"|[[File:{{{Image|}}}|frameless]]
 +
|-
 +
! Module Type
 +
| <span style="font-weight:bold;color:{{{color}}}">{{{type}}}</span>
 +
|-
 +
! Module Code
 +
| {{{code}}}
 +
|-
 +
! Maximum Tier
 +
| {{{Tier}}}
 +
|-
 +
! Description
 +
| {{{Description}}}
 +
|-
 +
|}
 +
 +
[[Category:Modules]]
 +
</includeonly>

Revision as of 15:38, 22 August 2023

For adding a module icon to the page

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Module NameName module

The Module's Name.

Example
Daigoparry
Stringrequired
ImageImage image

The image of Module Type

Example
Offensive Module.png
Filerequired
Module TypeModule Type type

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

Example
Offensive
Stringrequired
ColourColor colour

Colour of the Module Type (Off: #ec0800, Def: #009eff, Util: #fcff00, Ulti: #9f00ff, Spec: #a3a3a3, Leg: #ff8300)

Default
#000000
Example
#ec0800 / #009eff / #fcff00 / #9f00ff / #a3a3a3 / #ff8300
Stringsuggested
Module CodeModule Code code id

The internal code for the module.

Example
attack.basic / regeneration.relative / tower.absolute.zero
Stringsuggested
Maximum TierTier maxTier max tier

The maximum tier for the module.

Default
250
Example
250
Numberrequired
DescriptionDescription desc

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