Difference between revisions of "Template:CortexLocation"

From Starlight Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<noinclude>
 
{{CortexLocation
 
|name=Bob
 
|description=A description of bob
 
|distinction1=Very Bob
 
|distinction1_value=10
 
|distinction1_sfx1_name=Stuff
 
|distinction1_sfx1_effect=Exchange [pp] for [8]
 
|distinction1_sfx2_name=Stuffline2
 
|distinction1_sfx2_effect=Exchange [pp] for [10]
 
|distinction1_sfx3_name=Stuffline3
 
|distinction1_sfx3_effect=Exchange [pp] for [12]
 
|distinction2=Exceptionally Bob
 
|distinction2_value=8
 
|distinction2_sfx1_name=
 
|distinction2_sfx1_effect=
 
|distinction2_sfx2_name=
 
|distinction2_sfx2_effect=
 
|distinction2_sfx3_name=
 
|distinction2_sfx3_effect=
 
|distinction3=Quite Bob
 
|distinction3_value=8
 
|distinction3_sfx1_name=
 
|distinction3_sfx1_effect=
 
|distinction3_sfx2_name=
 
|distinction3_sfx2_effect=
 
|distinction3_sfx3_name=
 
|distinction3_sfx3_effect=
 
}}
 
{{CortexLocation
 
|name=Lesser
 
|distinction1=A THing
 
|distinction1_value=10
 
|distinction2=A Second Thing
 
|distinction2_value=8
 
|distinction2_sfx1_name=Stuffline2
 
|distinction2_sfx1_effect=Exchange [pp] for [10]
 
}}
 
 
[[Category:Templates]][[Category:Cortex]]
 
</noinclude>{| class="wikitable" style="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}}}}%"
 
|-
 
|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:{{{description|}}}|{{!}}colspan="{{#expr:(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})}}"{{!}}''{{{description}}}''
 
{{!}}-}}
 
|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: {{{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>
 
<templatedata>
 
 
{
 
{
 
"params": {
 
"params": {
"distinction2": {},
+
"distinction2": {
"distinction3": {},
+
"label": "Distinction 2 Name",
"name": {},
+
"description": "Name of Second Distinction",
"distinction1": {},
+
"example": "Well-Stocked Larder",
"=distinction1_value": {},
+
"type": "string"
"=distinction2_value": {},
+
},
"=distinction3_value": {},
+
"distinction3": {
"distinction1_sfx1_name": {},
+
"label": "Distinction 3 Name",
"distinction2_sfx1_name": {},
+
"description": "Name of Third Distinction",
"distinction3_sfx1_name": {},
+
"example": "Productive Kitchen",
"distinction1_sfx1_effect": {},
+
"type": "string"
"distinction2_sfx1_effect": {},
+
},
"distinction3_sfx1_effect": {},
+
"name": {
"distinction1_sfx2_name": {},
+
"label": "Location Name",
"distinction2_sfx2_name": {},
+
"description": "Name of the Location",
"distinction3_sfx2_name": {},
+
"example": "High-Class Restaurant",
"distinction1_sfx2_effect": {},
+
"type": "string",
"distinction2_sfx2_effect": {},
+
"required": true
"distinction3_sfx2_effect": {},
+
},
"distinction1_sfx3_name": {},
+
"distinction1": {
"distinction2_sfx3_name": {},
+
"label": "Distinction 1 Name",
"distinction3_sfx3_name": {},
+
"description": "Name of First Distinction",
"distinction1_sfx3_effect": {},
+
"example": "Bustling Waitstaff",
"distinction2_sfx3_effect": {},
+
"type": "string",
"distinction3_sfx3_effect": {}
+
"required": true
 +
},
 +
"distinction1_sfx1_name": {
 +
"label": "Distinction 1, SFX 1 Name",
 +
"description": "Name of First SFX Associated with First Distinction",
 +
"example": "Show me the money",
 +
"type": "string"
 +
},
 +
"distinction2_sfx1_name": {
 +
"label": "Distinction 2, SFX 1 Name",
 +
"description": "Name of First SFX Associated with Second Distinction",
 +
"example": "Show me the money",
 +
"type": "string"
 +
},
 +
"distinction3_sfx1_name": {
 +
"label": "Distinction 3, SFX 1 Name",
 +
"description": "Name of First SFX Associated with Third Distinction",
 +
"example": "Show me the money",
 +
"type": "string"
 +
},
 +
"distinction1_sfx1_effect": {
 +
"label": "Distinction 1, SFX 1 Effect",
 +
"description": "Effect of First SFX Associated with First Distinction",
 +
"example": "Spend [pp] gain [8] asset",
 +
"type": "string"
 +
},
 +
"distinction2_sfx1_effect": {
 +
"label": "Distinction 2, SFX 1 Effect",
 +
"description": "Effect of First SFX Associated with Second Distinction",
 +
"example": "Spend [pp] gain [8] asset",
 +
"type": "string"
 +
},
 +
"distinction3_sfx1_effect": {
 +
"label": "Distinction 3, SFX 1 Effect",
 +
"description": "Effect of First SFX Associated with Third Distinction",
 +
"example": "Spend [pp] gain [8] asset",
 +
"type": "string"
 +
},
 +
"distinction1_sfx2_name": {
 +
"label": "Distinction 1, SFX 2 Name",
 +
"description": "Name of Second SFX Associated with First Distinction",
 +
"example": "Show me the money",
 +
"type": "string"
 +
},
 +
"distinction2_sfx2_name": {
 +
"label": "Distinction 2, SFX 2 Name",
 +
"description": "Name of Second SFX Associated with Second Distinction",
 +
"example": "Show me the money",
 +
"type": "string"
 +
},
 +
"distinction3_sfx2_name": {
 +
"label": "Distinction 3, SFX 2 Name",
 +
"description": "Name of Second SFX Associated with Third Distinction",
 +
"example": "Show me the money",
 +
"type": "string"
 +
},
 +
"distinction1_sfx2_effect": {
 +
"label": "Distinction 1, SFX 2 Effect",
 +
"description": "Effect of Second SFX Associated with First Distinction",
 +
"example": "Spend [pp] gain [8] asset",
 +
"type": "string"
 +
},
 +
"distinction2_sfx2_effect": {
 +
"label": "Distinction 2, SFX 2 Effect",
 +
"description": "Effect of Second SFX Associated with Second Distinction",
 +
"example": "Spend [pp] gain [8] asset",
 +
"type": "string"
 +
},
 +
"distinction3_sfx2_effect": {
 +
"label": "Distinction 3, SFX 2 Effect",
 +
"description": "Effect of Second SFX Associated with Third Distinction",
 +
"example": "Spend [pp] gain [8] asset",
 +
"type": "string"
 +
},
 +
"distinction1_sfx3_name": {
 +
"label": "Distinction 1, SFX 3 Name",
 +
"description": "Name of Third SFX Associated with First Distinction",
 +
"example": "Show me the money",
 +
"type": "string"
 +
},
 +
"distinction2_sfx3_name": {
 +
"label": "Distinction 1, SFX 3 Name",
 +
"description": "Name of Third SFX Associated with Second Distinction",
 +
"example": "Show me the money",
 +
"type": "string"
 +
},
 +
"distinction3_sfx3_name": {
 +
"label": "Distinction 1, SFX 3 Name",
 +
"description": "Name of Third SFX Associated with Third Distinction",
 +
"example": "Show me the money",
 +
"type": "string"
 +
},
 +
"distinction1_sfx3_effect": {
 +
"label": "Distinction 1, SFX 3 Effect",
 +
"description": "Effect of Third SFX Associated with First Distinction",
 +
"example": "Spend [pp] gain [8] asset",
 +
"type": "string"
 +
},
 +
"distinction2_sfx3_effect": {
 +
"label": "Distinction 2, SFX 3 Effect",
 +
"description": "Effect of Third SFX Associated with Second Distinction",
 +
"example": "Spend [pp] gain [8] asset",
 +
"type": "string"
 +
},
 +
"distinction3_sfx3_effect": {
 +
"label": "Distinction 3, SFX 3 Effect",
 +
"description": "Effect of Third SFX Associated with Third Distinction",
 +
"example": "Spend [pp] gain [8] asset",
 +
"type": "string"
 +
},
 +
"description": {
 +
"label": "Location Description",
 +
"description": "Description of the Location",
 +
"example": "A high class restaruant with a bunch of stuff that's really high class.",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"distinction1_value": {
 +
"label": "Distinction 1 Value",
 +
"description": "Die Value of First Distinction",
 +
"example": "8",
 +
"type": "number",
 +
"required": true
 +
},
 +
"distinction2_value": {
 +
"label": "Distinction 2 Value",
 +
"description": "Die Value of Second Distinction",
 +
"example": "8",
 +
"type": "number"
 +
},
 +
"distinction3_value": {
 +
"label": "Distinction 3 Value",
 +
"description": "Die Value of Third Distinction",
 +
"example": "8",
 +
"type": "number"
 +
}
 
},
 
},
 
"paramOrder": [
 
"paramOrder": [
 
"name",
 
"name",
 +
"description",
 +
"distinction1",
 +
"distinction1_value",
 
"distinction2",
 
"distinction2",
 +
"distinction2_value",
 
"distinction3",
 
"distinction3",
"distinction1",
+
"distinction3_value",
"=distinction1_value",
 
"=distinction2_value",
 
"=distinction3_value",
 
 
"distinction1_sfx1_name",
 
"distinction1_sfx1_name",
 +
"distinction1_sfx1_effect",
 +
"distinction1_sfx2_name",
 +
"distinction1_sfx2_effect",
 +
"distinction1_sfx3_name",
 +
"distinction1_sfx3_effect",
 
"distinction2_sfx1_name",
 
"distinction2_sfx1_name",
 +
"distinction2_sfx1_effect",
 +
"distinction2_sfx2_name",
 +
"distinction2_sfx2_effect",
 +
"distinction2_sfx3_name",
 +
"distinction2_sfx3_effect",
 
"distinction3_sfx1_name",
 
"distinction3_sfx1_name",
"distinction1_sfx1_effect",
 
"distinction2_sfx1_effect",
 
 
"distinction3_sfx1_effect",
 
"distinction3_sfx1_effect",
"distinction1_sfx2_name",
 
"distinction2_sfx2_name",
 
 
"distinction3_sfx2_name",
 
"distinction3_sfx2_name",
"distinction1_sfx2_effect",
 
"distinction2_sfx2_effect",
 
 
"distinction3_sfx2_effect",
 
"distinction3_sfx2_effect",
"distinction1_sfx3_name",
 
"distinction2_sfx3_name",
 
 
"distinction3_sfx3_name",
 
"distinction3_sfx3_name",
"distinction1_sfx3_effect",
 
"distinction2_sfx3_effect",
 
 
"distinction3_sfx3_effect"
 
"distinction3_sfx3_effect"
 +
],
 +
"sets": [
 +
{
 +
"label" : "Distinction 2",
 +
"params": ["distinction2", "distinction2_value"]
 +
},
 +
{
 +
"label" : "Distinction 3",
 +
"params": ["distinction3", "distinction3_value"]
 +
},
 +
{
 +
"label" : "Distinction 1, First SFX",
 +
"params": [ "distinction1_sfx1_name", "distinction1_sfx1_effect"]
 +
},
 +
{
 +
"label" : "Distinction 1, Second SFX",
 +
"params": [ "distinction1_sfx2_name", "distinction1_sfx2_effect"]
 +
},
 +
{
 +
"label" : "Distinction 1, Third SFX",
 +
"params": [ "distinction1_sfx3_name", "distinction1_sfx3_effect"]
 +
},
 +
{
 +
"label" : "Distinction 2, First SFX",
 +
"params": [ "distinction2_sfx1_name", "distinction2_sfx1_effect"]
 +
},
 +
{
 +
"label" : "Distinction 2, Second SFX",
 +
"params": [ "distinction2_sfx2_name", "distinction2_sfx2_effect"]
 +
},
 +
{
 +
"label" : "Distinction 2, Third SFX",
 +
"params": [ "distinction2_sfx3_name", "distinction2_sfx3_effect"]
 +
},
 +
{
 +
"label" : "Distinction 3, First SFX",
 +
"params": [ "distinction3_sfx1_name", "distinction3_sfx1_effect"]
 +
},
 +
{
 +
"label" : "Distinction 3, Second SFX",
 +
"params": [ "distinction3_sfx2_name", "distinction3_sfx2_effect"]
 +
},
 +
{
 +
"label" : "Distinction 3, Third SFX",
 +
"params": [ "distinction3_sfx3_name", "distinction3_sfx3_effect"]
 +
}
 
],
 
],
 
"format": "inline"
 
"format": "inline"
 
}
 
}
</templatedata>
 
</noinclude>
 

Revision as of 00:55, 14 December 2022

{ "params": { "distinction2": { "label": "Distinction 2 Name", "description": "Name of Second Distinction", "example": "Well-Stocked Larder", "type": "string" }, "distinction3": { "label": "Distinction 3 Name", "description": "Name of Third Distinction", "example": "Productive Kitchen", "type": "string" }, "name": { "label": "Location Name", "description": "Name of the Location", "example": "High-Class Restaurant", "type": "string", "required": true }, "distinction1": { "label": "Distinction 1 Name", "description": "Name of First Distinction", "example": "Bustling Waitstaff", "type": "string", "required": true }, "distinction1_sfx1_name": { "label": "Distinction 1, SFX 1 Name", "description": "Name of First SFX Associated with First Distinction", "example": "Show me the money", "type": "string" }, "distinction2_sfx1_name": { "label": "Distinction 2, SFX 1 Name", "description": "Name of First SFX Associated with Second Distinction", "example": "Show me the money", "type": "string" }, "distinction3_sfx1_name": { "label": "Distinction 3, SFX 1 Name", "description": "Name of First SFX Associated with Third Distinction", "example": "Show me the money", "type": "string" }, "distinction1_sfx1_effect": { "label": "Distinction 1, SFX 1 Effect", "description": "Effect of First SFX Associated with First Distinction", "example": "Spend [pp] gain [8] asset", "type": "string" }, "distinction2_sfx1_effect": { "label": "Distinction 2, SFX 1 Effect", "description": "Effect of First SFX Associated with Second Distinction", "example": "Spend [pp] gain [8] asset", "type": "string" }, "distinction3_sfx1_effect": { "label": "Distinction 3, SFX 1 Effect", "description": "Effect of First SFX Associated with Third Distinction", "example": "Spend [pp] gain [8] asset", "type": "string" }, "distinction1_sfx2_name": { "label": "Distinction 1, SFX 2 Name", "description": "Name of Second SFX Associated with First Distinction", "example": "Show me the money", "type": "string" }, "distinction2_sfx2_name": { "label": "Distinction 2, SFX 2 Name", "description": "Name of Second SFX Associated with Second Distinction", "example": "Show me the money", "type": "string" }, "distinction3_sfx2_name": { "label": "Distinction 3, SFX 2 Name", "description": "Name of Second SFX Associated with Third Distinction", "example": "Show me the money", "type": "string" }, "distinction1_sfx2_effect": { "label": "Distinction 1, SFX 2 Effect", "description": "Effect of Second SFX Associated with First Distinction", "example": "Spend [pp] gain [8] asset", "type": "string" }, "distinction2_sfx2_effect": { "label": "Distinction 2, SFX 2 Effect", "description": "Effect of Second SFX Associated with Second Distinction", "example": "Spend [pp] gain [8] asset", "type": "string" }, "distinction3_sfx2_effect": { "label": "Distinction 3, SFX 2 Effect", "description": "Effect of Second SFX Associated with Third Distinction", "example": "Spend [pp] gain [8] asset", "type": "string" }, "distinction1_sfx3_name": { "label": "Distinction 1, SFX 3 Name", "description": "Name of Third SFX Associated with First Distinction", "example": "Show me the money", "type": "string" }, "distinction2_sfx3_name": { "label": "Distinction 1, SFX 3 Name", "description": "Name of Third SFX Associated with Second Distinction", "example": "Show me the money", "type": "string" }, "distinction3_sfx3_name": { "label": "Distinction 1, SFX 3 Name", "description": "Name of Third SFX Associated with Third Distinction", "example": "Show me the money", "type": "string" }, "distinction1_sfx3_effect": { "label": "Distinction 1, SFX 3 Effect", "description": "Effect of Third SFX Associated with First Distinction", "example": "Spend [pp] gain [8] asset", "type": "string" }, "distinction2_sfx3_effect": { "label": "Distinction 2, SFX 3 Effect", "description": "Effect of Third SFX Associated with Second Distinction", "example": "Spend [pp] gain [8] asset", "type": "string" }, "distinction3_sfx3_effect": { "label": "Distinction 3, SFX 3 Effect", "description": "Effect of Third SFX Associated with Third Distinction", "example": "Spend [pp] gain [8] asset", "type": "string" }, "description": { "label": "Location Description", "description": "Description of the Location", "example": "A high class restaruant with a bunch of stuff that's really high class.", "type": "string", "suggested": true }, "distinction1_value": { "label": "Distinction 1 Value", "description": "Die Value of First Distinction", "example": "8", "type": "number", "required": true }, "distinction2_value": { "label": "Distinction 2 Value", "description": "Die Value of Second Distinction", "example": "8", "type": "number" }, "distinction3_value": { "label": "Distinction 3 Value", "description": "Die Value of Third Distinction", "example": "8", "type": "number" } }, "paramOrder": [ "name", "description", "distinction1", "distinction1_value", "distinction2", "distinction2_value", "distinction3", "distinction3_value", "distinction1_sfx1_name", "distinction1_sfx1_effect", "distinction1_sfx2_name", "distinction1_sfx2_effect", "distinction1_sfx3_name", "distinction1_sfx3_effect", "distinction2_sfx1_name", "distinction2_sfx1_effect", "distinction2_sfx2_name", "distinction2_sfx2_effect", "distinction2_sfx3_name", "distinction2_sfx3_effect", "distinction3_sfx1_name", "distinction3_sfx1_effect", "distinction3_sfx2_name", "distinction3_sfx2_effect", "distinction3_sfx3_name", "distinction3_sfx3_effect" ], "sets": [ { "label" : "Distinction 2", "params": ["distinction2", "distinction2_value"] }, { "label" : "Distinction 3", "params": ["distinction3", "distinction3_value"] }, { "label" : "Distinction 1, First SFX", "params": [ "distinction1_sfx1_name", "distinction1_sfx1_effect"] }, { "label" : "Distinction 1, Second SFX", "params": [ "distinction1_sfx2_name", "distinction1_sfx2_effect"] }, { "label" : "Distinction 1, Third SFX", "params": [ "distinction1_sfx3_name", "distinction1_sfx3_effect"] }, { "label" : "Distinction 2, First SFX", "params": [ "distinction2_sfx1_name", "distinction2_sfx1_effect"] }, { "label" : "Distinction 2, Second SFX", "params": [ "distinction2_sfx2_name", "distinction2_sfx2_effect"] }, { "label" : "Distinction 2, Third SFX", "params": [ "distinction2_sfx3_name", "distinction2_sfx3_effect"] }, { "label" : "Distinction 3, First SFX", "params": [ "distinction3_sfx1_name", "distinction3_sfx1_effect"] }, { "label" : "Distinction 3, Second SFX", "params": [ "distinction3_sfx2_name", "distinction3_sfx2_effect"] }, { "label" : "Distinction 3, Third SFX", "params": [ "distinction3_sfx3_name", "distinction3_sfx3_effect"] } ], "format": "inline" }