Line 2: |
Line 2: |
| {{CortexMob | | {{CortexMob |
| |name=Mob of Bob | | |name=Mob of Bob |
| + | |description=It's bob, what do you think? |
| |skill_level=8 | | |skill_level=8 |
| |rating=4 | | |rating=4 |
Line 16: |
Line 17: |
| |trait6=Not Particularly Bob | | |trait6=Not Particularly Bob |
| |trait6_value=4 | | |trait6_value=4 |
| + | |width=75 |
| }} | | }} |
| {{CortexMob | | {{CortexMob |
Line 24: |
Line 26: |
| [[Category:Templates]][[Category:Cortex]] | | [[Category:Templates]][[Category:Cortex]] |
| </noinclude> | | </noinclude> |
− | {{#ifexpr:{{{rating|0}}}>=4 or {{#if:{{{trait4|}}}|1|0}}|ues|no}}
| |
| {{#ifexpr:{{{rating|0}}}<2|<span class='err'>Mobs require a rating of 2 or more</span>| | | {{#ifexpr:{{{rating|0}}}<2|<span class='err'>Mobs require a rating of 2 or more</span>| |
− | {{{!}}class="wikitable" style="width:20%" | + | {{{!}}class="wikitable" style="width:{{{width|20}}}%" |
| {{!}}colspan='3' class='hed'{{!}}{{#if:{{{name|}}}|{{{name}}}|<span class='err'>Mobs require a name</span>}} | | {{!}}colspan='3' class='hed'{{!}}{{#if:{{{name|}}}|{{{name}}}|<span class='err'>Mobs require a name</span>}} |
| {{!}}- | | {{!}}- |
| + | {{#if:{{{description|}}}|{{!}}colspan='3' {{!}}''{{{description}}}'' |
| + | {{!}}-}} |
| {{!}}colspan='2' style='width:50%' class='hed'{{!}}Mob Traits | | {{!}}colspan='2' style='width:50%' class='hed'{{!}}Mob Traits |
| {{!}}style='width:50%' class='hed'{{!}}Rating | | {{!}}style='width:50%' class='hed'{{!}}Rating |
| {{!}}- | | {{!}}- |
− | {{!}}style='width:60%'{{!}}{{#if:{{{trait1|}}}|{{{trait1}}}}} | + | {{!}}style='width:60%;text-align:center'{{!}}{{#if:{{{trait1|}}}|{{{trait1}}}}} |
− | {{!}}style='width:20%'{{!}}{{#if:{{{trait1|}}}|{{#die:{{{trait1_value|0}}}}}}} | + | {{!}}style='width:20%;text-align:center'{{!}}{{#if:{{{trait1|}}}|{{#die:{{{trait1_value|0}}}}}}} |
− | {{!}}style='width:20%'{{!}}{{#die:{{{skill_level|0}}}}} | + | {{!}}style='width:20%;text-align:center'{{!}}{{#die:{{{skill_level|0}}}}} |
| {{!}}- | | {{!}}- |
− | {{!}}{{#if:{{{trait2|}}}|{{{trait2}}}}} | + | {{!}}style='text-align:center'{{!}}{{#if:{{{trait2|}}}|{{{trait2}}}}} |
− | {{!}}{{#if:{{{trait2|}}}|{{#die:{{{trait2_value|0}}}}}}} | + | {{!}}style='text-align:center'{{!}}{{#if:{{{trait2|}}}|{{#die:{{{trait2_value|0}}}}}}} |
− | {{!}}{{#die:{{{skill_level|0}}}}} | + | {{!}}style='text-align:center'{{!}}{{#die:{{{skill_level|0}}}}} |
| {{!}}- | | {{!}}- |
| {{#ifexpr:{{{rating|0}}}>=3 or {{#if:{{{trait3|}}}|1|0}}| | | {{#ifexpr:{{{rating|0}}}>=3 or {{#if:{{{trait3|}}}|1|0}}| |
− | {{!}}{{#if:{{{trait3|}}}|{{{trait3}}}}} | + | {{!}}style='text-align:center'{{!}}{{#if:{{{trait3|}}}|{{{trait3}}}}} |
− | {{!}}{{#if:{{{trait3|}}}|{{#die:{{{trait3_value|0}}}}}}} | + | {{!}}style='text-align:center'{{!}}{{#if:{{{trait3|}}}|{{#die:{{{trait3_value|0}}}}}}} |
− | {{!}}{{#ifexpr:{{{rating|0}}}>=3|{{#die:{{{skill_level|0}}}}}}} | + | {{!}}style='text-align:center'{{!}}{{#ifexpr:{{{rating|0}}}>=3|{{#die:{{{skill_level|0}}}}}}} |
| {{!}}-}} | | {{!}}-}} |
| {{#ifexpr:{{{rating|0}}}>=4 or {{#if:{{{trait4|}}}|1|0}}| | | {{#ifexpr:{{{rating|0}}}>=4 or {{#if:{{{trait4|}}}|1|0}}| |
− | {{!}}{{#if:{{{trait3|}}}|{{{trait4}}}}} | + | {{!}}style='text-align:center'{{!}}{{#if:{{{trait4|}}}|{{{trait4}}}}} |
− | {{!}}{{#if:{{{trait4|}}}|{{#die:{{{trait4_value|0}}}}}}} | + | {{!}}style='text-align:center'{{!}}{{#if:{{{trait4|}}}|{{#die:{{{trait4_value|0}}}}}}} |
− | {{!}}{{#ifexpr:{{{rating|0}}}>=4|{{#die:{{{skill_level|0}}}}}}} | + | {{!}}style='text-align:center'{{!}}{{#ifexpr:{{{rating|0}}}>=4|{{#die:{{{skill_level|0}}}}}}} |
| + | {{!}}-}} |
| + | {{#ifexpr:{{{rating|0}}}>=5 or {{#if:{{{trait5|}}}|1|0}}| |
| + | {{!}}style='text-align:center'{{!}}{{#if:{{{trait3|}}}|{{{trait5}}}}} |
| + | {{!}}style='text-align:center'{{!}}{{#if:{{{trait5|}}}|{{#die:{{{trait5_value|0}}}}}}} |
| + | {{!}}style='text-align:center'{{!}}{{#ifexpr:{{{rating|0}}}>=5|{{#die:{{{skill_level|0}}}}}}} |
| + | {{!}}-}} |
| + | {{#ifexpr:{{{rating|0}}}>=6 or {{#if:{{{trait6|}}}|1|0}}| |
| + | {{!}}style='text-align:center'{{!}}{{#if:{{{trait3|}}}|{{{trait6}}}}} |
| + | {{!}}style='text-align:center'{{!}}{{#if:{{{trait6|}}}|{{#die:{{{trait6_value|0}}}}}}} |
| + | {{!}}style='text-align:center'{{!}}{{#ifexpr:{{{rating|0}}}>=6|{{#die:{{{skill_level|0}}}}}}} |
| {{!}}-}} | | {{!}}-}} |
| {{!}}} | | {{!}}} |
| }} | | }} |
− | {|class="wikitable" | + | <noinclude> |
− | |a
| + | <templatedata> |
− | |-
| + | { |
− | |n
| + | "params": { |
− | |}
| + | "rating": { |
| + | "label": "Number of Mob Dice", |
| + | "description": "The skill level of the mob. Minimum 2, max 5, determines how many 'health' dice the mob has.", |
| + | "example": "2", |
| + | "type": "number", |
| + | "required": true, |
| + | "default": "2" |
| + | }, |
| + | "name": { |
| + | "label": "Mob Name", |
| + | "description": "The Mob's Name. Make it something snappy", |
| + | "example": "Bob, or Xzanthir the Mighty", |
| + | "type": "string", |
| + | "required": true |
| + | }, |
| + | "description": { |
| + | "label": "Mob Description", |
| + | "description": "A brief description of the mob.", |
| + | "type": "string", |
| + | "suggested": true |
| + | }, |
| + | "trait1": { |
| + | "label": "Trait 1", |
| + | "description": "An extra trait the mob possesses", |
| + | "example": "Disorganized", |
| + | "type": "string", |
| + | "suggested": true |
| + | }, |
| + | "trait1_value": { |
| + | "label": "Trait 1 Die Value", |
| + | "description": "The die value of the 1st trait", |
| + | "example": "8", |
| + | "type": "number", |
| + | "suggested": true |
| + | }, |
| + | "skill_level": { |
| + | "label": "Cortex Die", |
| + | "description": "The Mob's Die Rating: 4,6,8,10, or 12", |
| + | "type": "number", |
| + | "required": true, |
| + | "example": "8" |
| + | }, |
| + | "trait2": { |
| + | "label": "Trait 2", |
| + | "description": "An extra trait the mob possesses", |
| + | "example": "Disorganized", |
| + | "type": "string", |
| + | "suggested": true |
| + | }, |
| + | "trait2_value": { |
| + | "label": "Trait 2 Value", |
| + | "description": "The die value of the 2nd trait", |
| + | "example": "8", |
| + | "type": "number", |
| + | "suggested": true |
| + | }, |
| + | "trait3": { |
| + | "label": "Trait 3", |
| + | "description": "An extra trait the mob possesses", |
| + | "example": "Disorganized", |
| + | "type": "string" |
| + | }, |
| + | "trait3_value": { |
| + | "label": "Trait 3 Value", |
| + | "description": "The die value of the 3rd trait", |
| + | "example": "8", |
| + | "type": "number" |
| + | }, |
| + | "trait4": { |
| + | "label": "Trait 4", |
| + | "description": "An extra trait the mob possesses", |
| + | "example": "Disorganized", |
| + | "type": "string" |
| + | }, |
| + | "trait4_value": { |
| + | "label": "Trait 4 Value", |
| + | "description": "The die value of the 4th trait", |
| + | "example": "8" |
| + | }, |
| + | "trait5": { |
| + | "label": "Trait 5", |
| + | "description": "An extra trait the mob possesses", |
| + | "example": "Disorganized", |
| + | "type": "string" |
| + | }, |
| + | "trait5_value": { |
| + | "label": "Trait 5 Value", |
| + | "description": "The die value of the 5th trait", |
| + | "example": "8", |
| + | "type": "number" |
| + | }, |
| + | "trait6": { |
| + | "label": "Trait 6", |
| + | "description": "An extra trait the mob possesses", |
| + | "example": "Disorganized", |
| + | "type": "string" |
| + | }, |
| + | "trait6_value": { |
| + | "label": "Trait 6 Value", |
| + | "description": "The die value of the 6th trait", |
| + | "example": "8", |
| + | "type": "number" |
| + | }, |
| + | "width": { |
| + | "label": "Width of Object", |
| + | "description": "Width of the object on the page. Default 20%, suggest using 100% if putting the box in a table", |
| + | "example": "100", |
| + | "type": "number" |
| + | } |
| + | }, |
| + | "description": "Cortex Mob", |
| + | "paramOrder": [ |
| + | "name", |
| + | "rating", |
| + | "skill_level", |
| + | "description", |
| + | "width", |
| + | "trait1", |
| + | "trait1_value", |
| + | "trait2", |
| + | "trait2_value", |
| + | "trait3", |
| + | "trait3_value", |
| + | "trait4", |
| + | "trait4_value", |
| + | "trait5", |
| + | "trait5_value", |
| + | "trait6", |
| + | "trait6_value" |
| + | ], |
| + | "format": "inline" |
| + | } |
| + | </templatedata> |
| + | </noinclude> |