Difference between revisions of "Template:CortexLocation"

From Starlight Wiki
Jump to navigation Jump to search
(Undo revision 3187 by Stylo (talk))
Tag: Undo
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": {},
"label": "Distinction 2 Name",
+
"distinction3": {},
"description": "Name of Second Distinction",
+
"name": {},
"example": "Well-Stocked Larder",
+
"distinction1": {},
"type": "string"
+
"=distinction1_value": {},
},
+
"=distinction2_value": {},
"distinction3": {
+
"=distinction3_value": {},
"label": "Distinction 3 Name",
+
"distinction1_sfx1_name": {},
"description": "Name of Third Distinction",
+
"distinction2_sfx1_name": {},
"example": "Productive Kitchen",
+
"distinction3_sfx1_name": {},
"type": "string"
+
"distinction1_sfx1_effect": {},
},
+
"distinction2_sfx1_effect": {},
"name": {
+
"distinction3_sfx1_effect": {},
"label": "Location Name",
+
"distinction1_sfx2_name": {},
"description": "Name of the Location",
+
"distinction2_sfx2_name": {},
"example": "High-Class Restaurant",
+
"distinction3_sfx2_name": {},
"type": "string",
+
"distinction1_sfx2_effect": {},
"required": true
+
"distinction2_sfx2_effect": {},
},
+
"distinction3_sfx2_effect": {},
"distinction1": {
+
"distinction1_sfx3_name": {},
"label": "Distinction 1 Name",
+
"distinction2_sfx3_name": {},
"description": "Name of First Distinction",
+
"distinction3_sfx3_name": {},
"example": "Bustling Waitstaff",
+
"distinction1_sfx3_effect": {},
"type": "string",
+
"distinction2_sfx3_effect": {},
"required": true
+
"distinction3_sfx3_effect": {}
},
 
"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",
"distinction3_value",
+
"distinction1",
 +
"=distinction1_value",
 +
"=distinction2_value",
 +
"=distinction3_value",
 
"distinction1_sfx1_name",
 
"distinction1_sfx1_name",
 +
"distinction2_sfx1_name",
 +
"distinction3_sfx1_name",
 
"distinction1_sfx1_effect",
 
"distinction1_sfx1_effect",
 +
"distinction2_sfx1_effect",
 +
"distinction3_sfx1_effect",
 
"distinction1_sfx2_name",
 
"distinction1_sfx2_name",
 +
"distinction2_sfx2_name",
 +
"distinction3_sfx2_name",
 
"distinction1_sfx2_effect",
 
"distinction1_sfx2_effect",
 +
"distinction2_sfx2_effect",
 +
"distinction3_sfx2_effect",
 
"distinction1_sfx3_name",
 
"distinction1_sfx3_name",
 +
"distinction2_sfx3_name",
 +
"distinction3_sfx3_name",
 
"distinction1_sfx3_effect",
 
"distinction1_sfx3_effect",
"distinction2_sfx1_name",
 
"distinction2_sfx1_effect",
 
"distinction2_sfx2_name",
 
"distinction2_sfx2_effect",
 
"distinction2_sfx3_name",
 
 
"distinction2_sfx3_effect",
 
"distinction2_sfx3_effect",
"distinction3_sfx1_name",
 
"distinction3_sfx1_effect",
 
"distinction3_sfx2_name",
 
"distinction3_sfx2_effect",
 
"distinction3_sfx3_name",
 
 
"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

Bob
A description of bob
Very Bob
Exceptionally Bob
Quite 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
A THing
A Second Thing
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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Namename

no description

Unknownoptional
Distinction2distinction2

no description

Unknownoptional
Distinction3distinction3

no description

Unknownoptional
Distinction1distinction1

no description

Unknownoptional
=distinction1_value=distinction1_value

no description

Unknownoptional
=distinction2_value=distinction2_value

no description

Unknownoptional
=distinction3_value=distinction3_value

no description

Unknownoptional
Distinction1_sfx1_namedistinction1_sfx1_name

no description

Unknownoptional
Distinction2_sfx1_namedistinction2_sfx1_name

no description

Unknownoptional
Distinction3_sfx1_namedistinction3_sfx1_name

no description

Unknownoptional
Distinction1_sfx1_effectdistinction1_sfx1_effect

no description

Unknownoptional
Distinction2_sfx1_effectdistinction2_sfx1_effect

no description

Unknownoptional
Distinction3_sfx1_effectdistinction3_sfx1_effect

no description

Unknownoptional
Distinction1_sfx2_namedistinction1_sfx2_name

no description

Unknownoptional
Distinction2_sfx2_namedistinction2_sfx2_name

no description

Unknownoptional
Distinction3_sfx2_namedistinction3_sfx2_name

no description

Unknownoptional
Distinction1_sfx2_effectdistinction1_sfx2_effect

no description

Unknownoptional
Distinction2_sfx2_effectdistinction2_sfx2_effect

no description

Unknownoptional
Distinction3_sfx2_effectdistinction3_sfx2_effect

no description

Unknownoptional
Distinction1_sfx3_namedistinction1_sfx3_name

no description

Unknownoptional
Distinction2_sfx3_namedistinction2_sfx3_name

no description

Unknownoptional
Distinction3_sfx3_namedistinction3_sfx3_name

no description

Unknownoptional
Distinction1_sfx3_effectdistinction1_sfx3_effect

no description

Unknownoptional
Distinction2_sfx3_effectdistinction2_sfx3_effect

no description

Unknownoptional
Distinction3_sfx3_effectdistinction3_sfx3_effect

no description

Unknownoptional