Difference between revisions of "Template:CortexTrait"

From Starlight Wiki
Jump to navigation Jump to search
m (Stylo moved page Template:CortexDistinction to Template:CortexTrait without leaving a redirect)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{CortexDistinction
+
<noinclude>{{CortexTrait
 
|name=Bad Mamma Jamma
 
|name=Bad Mamma Jamma
 
|value=10
 
|value=10
 
}}
 
}}
{{CortexDistinction
+
{{CortexTrait
 
|name=Ok Mamma Jamma
 
|name=Ok Mamma Jamma
 
|width=20
 
|width=20
 +
|header=1
 
}}
 
}}
{{CortexDistinction
+
{{CortexTrait
 
|name=Literally Bad Mamma Jamma
 
|name=Literally Bad Mamma Jamma
 
|width=15
 
|width=15
Line 13: Line 14:
 
}}
 
}}
 
</noinclude>
 
</noinclude>
{|style='width:{{{width|100}}}%'
+
{|style='width:{{{width|100}}}%;padding:0'
|style='width:90%' class='hed'|{{#if: {{{name|}}}|{{{name}}}|<span class='err'>trait needs a name</span>}}
+
|style='width:90%;padding:0' {{#if:{{{header|}}}|class='hed'}}|{{#if: {{{name|}}}|{{{name}}}|<span class='err'>trait needs a name</span>}}
|style='width:10%;text-align:center;'|{{#die:{{{value|8}}}}}
+
|style='width:10%;text-align:center;padding:0'|{{#die:{{{value|8}}}}}
|}
+
|}[[Category:Templates]][[Category:Cortex]]
 
<noinclude>
 
<noinclude>
 
<templatedata>
 
<templatedata>
Line 37: Line 38:
 
"value": {
 
"value": {
 
"label": "Value of Trait",
 
"label": "Value of Trait",
"description": "The value of the assocaited trait. If not provided, defaults to 8",
+
"description": "The value of the associated trait. If not provided, defaults to 8",
 
"example": "10",
 
"example": "10",
 
"type": "number",
 
"type": "number",
 
"default": "8",
 
"default": "8",
 
"required": true
 
"required": true
}
+
},
 +
"header": {}
 
},
 
},
 
"paramOrder": [
 
"paramOrder": [
 
"name",
 
"name",
 
"value",
 
"value",
"width"
+
"width",
 +
"header"
 
],
 
],
 
"format": "inline"
 
"format": "inline"

Latest revision as of 05:19, 20 December 2022

Bad Mamma Jamma


Ok Mamma Jamma


Literally Bad Mamma Jamma


trait needs a name

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Trait Namename

Name of the Trait

Example
Beefy Mamma Jamma
Stringrequired
Value of Traitvalue

The value of the associated trait. If not provided, defaults to 8

Default
8
Example
10
Numberrequired
Width of the tablewidth

Width of the table the trait shows up in. Default is 100

Example
20
Numbersuggested
Headerheader

no description

Unknownoptional