Difference between revisions of "Template:CortexLocation"
Tag: Undo |
|||
Line 2: | Line 2: | ||
{{CortexLocation | {{CortexLocation | ||
|name=Bob | |name=Bob | ||
− | | | + | |description=A description of bob |
|distinction1=Very Bob | |distinction1=Very Bob | ||
|distinction1_value=10 | |distinction1_value=10 | ||
Line 34: | Line 34: | ||
|distinction2=A Second Thing | |distinction2=A Second Thing | ||
|distinction2_value=8 | |distinction2_value=8 | ||
− | |||
|distinction2_sfx1_name=Stuffline2 | |distinction2_sfx1_name=Stuffline2 | ||
|distinction2_sfx1_effect=Exchange [pp] for [10] | |distinction2_sfx1_effect=Exchange [pp] for [10] | ||
Line 41: | Line 40: | ||
[[Category:Templates]][[Category:Cortex]] | [[Category:Templates]][[Category:Cortex]] | ||
− | </noinclude>{| class="wikitable" style="width:{{{width| | + | </noinclude>{| class="wikitable" style="width:{{#if:{{{width|}}}|{{{width}}}|{{#ifexpr:{{#expr:(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})*16.66666}}>100|100|{{#expr:(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})*16.66666}}}}}}%" |
|- | |- | ||
− | |{{#if:{{{ | + | |colspan="{{#expr:(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})}}" class='hed'|{{#if:{{{name|}}}|{{{name}}}|<span class='err'>Location requires a name</span>}} |
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{description|}}}|{{!}}colspan="{{#expr:(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})}}"{{!}}''{{{description}}}'' |
− | {{!}}''{{{ | ||
{{!}}-}} | {{!}}-}} | ||
− | |{{#if:{{{distinction1|}}}|{{CortexTrait|name={{{distinction1}}}|value={{{distinction1_value}}}}}|{{ | + | |style="width:{{#expr:100/(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})}}%;"|{{#if: {{{distinction1|}}}|{{CortexTrait|name={{{distinction1}}}|value={{{distinction1_value}}}}}|<span class='err'>Location requires at least 1 distinction</span>}} |
+ | {{#if: {{{distinction2|}}}|{{!}}style="width:{{#expr:100/(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})}}%;"{{!}}{{CortexTrait|name={{{distinction2}}}|value={{{distinction2_value}}}}}|;}} | ||
+ | {{#if: {{{distinction3|}}}|{{!}}style="width:{{#expr:100/(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})}}%;"{{!}}{{CortexTrait|name={{{distinction3}}}|value={{{distinction3_value}}}}}|;}} | ||
|- | |- | ||
− | + | |{{Hinder}} | |
− | {{ | + | {{#if: {{{distinction2|}}}|{{!}}{{Hinder}}|;}} |
− | + | {{#if: {{{distinction3|}}}|{{!}}{{Hinder}}|;}} | |
− | + | |- | |
− | {{!}}{{ | + | {{#if: {{{distinction1_sfx1_name|}}}{{{distinction2_sfx1_name|}}}{{{distinction3_sfx1_name|}}}| |
− | + | {{!}}{{#if: {{{distinction1_sfx1_name|}}}|{{CortexSFX|name = {{{distinction1_sfx1_name}}}|effect = {{{distinction1_sfx1_effect|}}}}}}} | |
− | + | {{#if: {{{distinction2_sfx1_name|}}}|{{!}}{{CortexSFX|name = {{{distinction2_sfx1_name}}}|effect = {{{distinction2_sfx1_effect|}}}}}}} | |
− | {{!}}{{ | + | {{#if: {{{distinction3_sfx1_name|}}}|{{!}}{{CortexSFX|name = {{{distinction3_sfx1_name}}}|effect = {{{distinction3_sfx1_effect|}}}}}}} |
− | |||
− | |||
− | |||
− | |||
− | {{#if:{{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | {{!}} | ||
− | |||
− | |||
− | |||
− | |||
− | {{!}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{!}} | ||
{{!}}-}} | {{!}}-}} | ||
− | {{# | + | {{#if: {{{distinction1_sfx2_name|}}}{{{distinction2_sfx2_name|}}}{{{distinction3_sfx2_name|}}}| |
− | {{ | + | {{!}}{{#if: {{{distinction1_sfx2_name|}}}|{{CortexSFX|name = {{{distinction1_sfx2_name}}}|effect = {{{distinction1_sfx2_effect|}}}}}}} |
+ | {{#if: {{{distinction2_sfx2_name|}}}|{{!}}{{CortexSFX|name = {{{distinction2_sfx2_name}}}|effect = {{{distinction2_sfx2_effect|}}}}}}} | ||
+ | {{#if: {{{distinction3_sfx2_name|}}}|{{!}}{{CortexSFX|name = {{{distinction3_sfx2_name}}}|effect = {{{distinction3_sfx2_effect|}}}}}}} | ||
{{!}}-}} | {{!}}-}} | ||
− | {{# | + | {{#if: {{{distinction1_sfx3_name|}}}{{{distinction2_sfx3_name|}}}{{{distinction3_sfx3_name|}}}| |
− | {{ | + | {{!}}{{#if: {{{distinction1_sfx3_name|}}}|{{CortexSFX|name = {{{distinction1_sfx3_name}}}|effect = {{{distinction1_sfx3_effect|}}}}}}} |
+ | {{#if: {{{distinction2_sfx3_name|}}}|{{!}}{{CortexSFX|name = {{{distinction2_sfx3_name}}}|effect = {{{distinction2_sfx3_effect|}}}}}}} | ||
+ | {{#if: {{{distinction3_sfx3_name|}}}|{{!}}{{CortexSFX|name = {{{distinction3_sfx3_name}}}|effect = {{{distinction3_sfx3_effect|}}}}}}} | ||
{{!}}-}} | {{!}}-}} | ||
− | |}<noinclude> | + | |} |
+ | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 230: | Line 208: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
− | " | + | "description": { |
"label": "Location Description", | "label": "Location Description", | ||
"description": "Description of the Location", | "description": "Description of the Location", | ||
Line 265: | Line 243: | ||
"paramOrder": [ | "paramOrder": [ | ||
"name", | "name", | ||
− | " | + | "description", |
"distinction1", | "distinction1", | ||
"distinction1_value", | "distinction1_value", |
Latest revision as of 05:53, 20 December 2022
Bob | ||||||||
A description of bob | ||||||||
|
|
| ||||||
Hinder
Gain a when you switch out this distinction's for a . |
Hinder
Gain a when you switch out this distinction's for a . |
Hinder
Gain a when you switch out this distinction's for a . | ||||||
Stuff
Exchange for
| ||||||||
Stuffline2
Exchange for
| ||||||||
Stuffline3
Exchange for
|
Lesser | |||||
|
| ||||
Hinder
Gain a when you switch out this distinction's for a . |
Hinder
Gain a when you switch out this distinction's for a . | ||||
Stuffline2
Exchange for |
Location requires a name |
Location requires at least 1 distinction
|
Hinder
Gain a when you switch out this distinction's for a . |
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Location Name | name | Name of the Location
| String | required |
Location Description | description | Description of the Location
| String | suggested |
Distinction 1 Name | distinction1 | Name of First Distinction
| String | required |
Distinction 1 Value | distinction1_value | Die Value of First Distinction
| Number | required |
Distinction 2 Name | distinction2 | Name of Second Distinction
| String | optional |
Distinction 2 Value | distinction2_value | Die Value of Second Distinction
| Number | optional |
Distinction 3 Name | distinction3 | Name of Third Distinction
| String | optional |
Distinction 3 Value | distinction3_value | Die Value of Third Distinction
| Number | optional |
Width | width | Box Width
| Number | optional |
Distinction 1, SFX 1 Name | distinction1_sfx1_name | Name of First SFX Associated with First Distinction
| String | optional |
Distinction 1, SFX 1 Effect | distinction1_sfx1_effect | Effect of First SFX Associated with First Distinction
| String | optional |
Distinction 1, SFX 2 Name | distinction1_sfx2_name | Name of Second SFX Associated with First Distinction
| String | optional |
Distinction 1, SFX 2 Effect | distinction1_sfx2_effect | Effect of Second SFX Associated with First Distinction
| String | optional |
Distinction 1, SFX 3 Name | distinction1_sfx3_name | Name of Third SFX Associated with First Distinction
| String | optional |
Distinction 1, SFX 3 Effect | distinction1_sfx3_effect | Effect of Third SFX Associated with First Distinction
| String | optional |
Distinction 2, SFX 1 Name | distinction2_sfx1_name | Name of First SFX Associated with Second Distinction
| String | optional |
Distinction 2, SFX 1 Effect | distinction2_sfx1_effect | Effect of First SFX Associated with Second Distinction
| String | optional |
Distinction 2, SFX 2 Name | distinction2_sfx2_name | Name of Second SFX Associated with Second Distinction
| String | optional |
Distinction 2, SFX 2 Effect | distinction2_sfx2_effect | Effect of Second SFX Associated with Second Distinction
| String | optional |
Distinction 1, SFX 3 Name | distinction2_sfx3_name | Name of Third SFX Associated with Second Distinction
| String | optional |
Distinction 2, SFX 3 Effect | distinction2_sfx3_effect | Effect of Third SFX Associated with Second Distinction
| String | optional |
Distinction 3, SFX 1 Name | distinction3_sfx1_name | Name of First SFX Associated with Third Distinction
| String | optional |
Distinction 3, SFX 1 Effect | distinction3_sfx1_effect | Effect of First SFX Associated with Third Distinction
| String | optional |
Distinction 3, SFX 2 Name | distinction3_sfx2_name | Name of Second SFX Associated with Third Distinction
| String | optional |
Distinction 3, SFX 2 Effect | distinction3_sfx2_effect | Effect of Second SFX Associated with Third Distinction
| String | optional |
Distinction 1, SFX 3 Name | distinction3_sfx3_name | Name of Third SFX Associated with Third Distinction
| String | optional |
Distinction 3, SFX 3 Effect | distinction3_sfx3_effect | Effect of Third SFX Associated with Third Distinction
| String | optional |