Difference between revisions of "Template:CortexTrait"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
</noinclude> | </noinclude> | ||
{|style='width:{{{width|100}}}%' | {|style='width:{{{width|100}}}%' | ||
− | |style='width:90%' class='hed'|{{#if: {{{name|}}}|{{{name}}}|<span class='err'> | + | |style='width:90%' 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;'|{{#die:{{{value|8}}}}} | ||
|} | |} | ||
+ | <noinclude> | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "width": { | ||
+ | "label": "Width of the table", | ||
+ | "description": "Width of the table the trait shows up in. Default is 100", | ||
+ | "example": "20", | ||
+ | "type": "number", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "name": { | ||
+ | "label": "Trait Name", | ||
+ | "description": "Name of the Trait", | ||
+ | "example": "Beefy Mamma Jamma", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "value": { | ||
+ | "label": "Value of Trait", | ||
+ | "description": "The value of the assocaited trait. If not provided, defaults to 8", | ||
+ | "example": "10", | ||
+ | "type": "number", | ||
+ | "default": "8", | ||
+ | "required": true | ||
+ | } | ||
+ | }, | ||
+ | "paramOrder": [ | ||
+ | "name", | ||
+ | "value", | ||
+ | "width" | ||
+ | ], | ||
+ | "format": "inline" | ||
+ | } | ||
+ | </templatedata> | ||
+ | </noinclude> |
Revision as of 11:34, 13 December 2022
|
Bad Mamma Jamma |
|-
|
Hinder
Gain a when you switch out this distinction's for a .
Gain a when you switch out this distinction's for a .
|-
no
|
Ok Mamma Jamma | DIE VALUE {{{value}}} NOT VALID |
|-
|
Hinder
Gain a when you switch out this distinction's for a .
Gain a when you switch out this distinction's for a .
|-
no
|
Literally Bad Mamma Jamma |
|-
|
Hinder
Gain a when you switch out this distinction's for a .
Gain a when you switch out this distinction's for a .
|-
no
trait needs a name |
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Trait Name | name | Name of the Trait
| String | required |
Value of Trait | value | The value of the assocaited trait. If not provided, defaults to 8
| Number | required |
Width of the table | width | Width of the table the trait shows up in. Default is 100
| Number | suggested |