Difference between revisions of "Template:CortexLocation"

From Starlight Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
{{CortexLocation
 
{{CortexLocation
 
|name=Bob
 
|name=Bob
|description=A description of bob
+
|desc=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
 +
|distinction1_sfx1_name=Stuffline1
 
|distinction2_sfx1_name=Stuffline2
 
|distinction2_sfx1_name=Stuffline2
 
|distinction2_sfx1_effect=Exchange [pp] for [10]
 
|distinction2_sfx1_effect=Exchange [pp] for [10]
Line 40: Line 41:
  
 
[[Category:Templates]][[Category:Cortex]]
 
[[Category:Templates]][[Category:Cortex]]
</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}}}}}}%"
+
</noinclude>{| class="wikitable" style="width:{{{width|35}}}%"
 
|-
 
|-
|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:{{{name|}}}|{{head|{{{name}}}}}|{{error|Location requires a name}}}}  
 
|-
 
|-
{{#if:{{{description|}}}|{{!}}colspan="{{#expr:(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})}}"{{!}}''{{{description}}}''
+
{{#if:{{{desc|}}}|
 +
{{!}}''{{{desc}}}''
 
{{!}}-}}
 
{{!}}-}}
|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:{{{distinction1|}}}|{{CortexTrait|name={{{distinction1}}}|value={{{distinction1_value}}}}}|{{error|Locations require at least one distinction}}}}
{{#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:{{{distinction1|}}}|
{{#if: {{{distinction2|}}}|{{!}}{{Hinder}}|;}}
+
{{!}}{{hinder}}
{{#if: {{{distinction3|}}}|{{!}}{{Hinder}}|;}}
+
{{!}}-}}
|-
+
{{#ifexpr:({{#if:{{{distinction1|}}}|1|0}}*{{#if:{{{distinction1_sfx1_name|}}}|1|0}})=1|
{{#if: {{{distinction1_sfx1_name|}}}{{{distinction2_sfx1_name|}}}{{{distinction3_sfx1_name|}}}|
+
{{!}}{{#if:{{{distinction1_sfx1_effect|}}}|{{CortexSFX|name = {{{distinction1_sfx1_name}}}|effect={{{distinction1_sfx1_effect}}}}}|{{error|distinction1_sfx1_effect missing}}}}
{{!}}{{#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|}}}}}}}
+
{{#ifexpr:({{#if:{{{distinction1|}}}|1|0}}*{{#if:{{{distinction1_sfx2_name|}}}|1|0}})=1|
{{#if: {{{distinction3_sfx1_name|}}}|{{!}}{{CortexSFX|name = {{{distinction3_sfx1_name}}}|effect = {{{distinction3_sfx1_effect|}}}}}}}
+
{{!}}{{#if:{{{distinction1_sfx2_effect|}}}|{{CortexSFX|name = {{{distinction1_sfx2_name}}}|effect={{{distinction1_sfx2_effect}}}}}|{{error|distinction1_sfx2_effect missing}}}}
 +
{{!}}-}}
 +
{{#ifexpr:({{#if:{{{distinction1|}}}|1|0}}*{{#if:{{{distinction1_sfx3_name|}}}|1|0}})=1|
 +
{{!}}{{#if:{{{distinction1_sfx3_effect|}}}|{{CortexSFX|name = {{{distinction1_sfx3_name}}}|effect={{{distinction1_sfx3_effect}}}}}|{{error|distinction1_sfx3_effect missing}}}}
 +
{{!}}-}}
 +
{{#if:{{{distinction2|}}}|
 +
{{!}}{{CortexTrait|name={{{distinction2}}}|value={{{distinction2_value}}}}}
 +
{{!}}-}}
 +
{{#if:{{{distinction2|}}}|
 +
{{!}}{{hinder}}
 +
{{!}}-}}
 +
{{#ifexpr:({{#if:{{{distinction2|}}}|1|0}}*{{#if:{{{distinction2_sfx1_name|}}}|1|0}})=1|
 +
{{!}}{{#if:{{{distinction2_sfx1_effect|}}}|{{CortexSFX|name = {{{distinction2_sfx1_name}}}|effect={{{distinction2_sfx1_effect}}}}}|{{error|distinction2_sfx1_effect missing}}}}
 +
{{!}}-}}
 +
{{#ifexpr:({{#if:{{{distinction2|}}}|1|0}}*{{#if:{{{distinction2_sfx2_name|}}}|1|0}})=1|
 +
{{!}}{{#if:{{{distinction2_sfx2_effect|}}}|{{CortexSFX|name = {{{distinction2_sfx2_name}}}|effect={{{distinction2_sfx2_effect}}}}}|{{error|distinction2_sfx2_effect missing}}}}
 +
{{!}}-}}
 +
{{#ifexpr:({{#if:{{{distinction2|}}}|1|0}}*{{#if:{{{distinction2_sfx3_name|}}}|1|0}})=1|
 +
{{!}}{{#if:{{{distinction2_sfx3_effect|}}}|{{CortexSFX|name = {{{distinction2_sfx3_name}}}|effect={{{distinction2_sfx3_effect}}}}}|{{error|distinction2_sfx3_effect missing}}}}
 +
{{!}}-}}
 +
{{#if:{{{distinction3|}}}|
 +
{{!}}{{CortexTrait|name={{{distinction3}}}|value={{{distinction3_value}}}}}
 +
{{!}}-}}
 +
{{#if:{{{distinction3|}}}|
 +
{{!}}{{hinder}}
 +
{{!}}-}}
 +
{{#ifexpr:({{#if:{{{distinction3|}}}|1|0}}*{{#if:{{{distinction3_sfx1_name|}}}|1|0}})=1|
 +
{{!}}{{#if:{{{distinction3_sfx1_effect|}}}|{{CortexSFX|name = {{{distinction3_sfx1_name}}}|effect={{{distinction3_sfx1_effect}}}}}|{{error|distinction3_sfx1_effect missing}}}}
 
{{!}}-}}
 
{{!}}-}}
{{#if: {{{distinction1_sfx2_name|}}}{{{distinction2_sfx2_name|}}}{{{distinction3_sfx2_name|}}}|
+
{{#ifexpr:({{#if:{{{distinction3|}}}|1|0}}*{{#if:{{{distinction3_sfx2_name|}}}|1|0}})=1|
{{!}}{{#if: {{{distinction1_sfx2_name|}}}|{{CortexSFX|name = {{{distinction1_sfx2_name}}}|effect = {{{distinction1_sfx2_effect|}}}}}}}
+
{{!}}{{#if:{{{distinction3_sfx2_effect|}}}|{{CortexSFX|name = {{{distinction3_sfx2_name}}}|effect={{{distinction3_sfx2_effect}}}}}|{{error|distinction3_sfx2_effect missing}}}}
{{#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|}}}|
+
{{#ifexpr:({{#if:{{{distinction3|}}}|1|0}}*{{#if:{{{distinction3_sfx3_name|}}}|1|0}})=1|
{{!}}{{#if: {{{distinction1_sfx3_name|}}}|{{CortexSFX|name = {{{distinction1_sfx3_name}}}|effect = {{{distinction1_sfx3_effect|}}}}}}}
+
{{!}}{{#if:{{{distinction3_sfx3_effect|}}}|{{CortexSFX|name = {{{distinction3_sfx3_name}}}|effect={{{distinction3_sfx3_effect}}}}}|{{error|distinction3_sfx3_effect missing}}}}
{{#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 208: Line 230:
 
"type": "string"
 
"type": "string"
 
},
 
},
"description": {
+
"desc": {
 
"label": "Location Description",
 
"label": "Location Description",
 
"description": "Description of the Location",
 
"description": "Description of the Location",
Line 243: Line 265:
 
"paramOrder": [
 
"paramOrder": [
 
"name",
 
"name",
"description",
+
"desc",
 
"distinction1",
 
"distinction1",
 
"distinction1_value",
 
"distinction1_value",

Revision as of 04:49, 20 December 2022

Bob
A description of bob
Very Bob
Hinder
Gain a when you switch out this distinction's for a .
Stuff
Exchange for
Stuffline2
Exchange for
Stuffline3
Exchange for
Exceptionally Bob
Hinder
Gain a when you switch out this distinction's for a .
Quite Bob
Hinder
Gain a when you switch out this distinction's for a .
Lesser
A THing
Hinder
Gain a when you switch out this distinction's for a .
distinction1_sfx1_effect missing
A Second Thing
Hinder
Gain a when you switch out this distinction's for a .
Stuffline2
Exchange for
Location requires a name
Locations require at least one distinction

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Location Namename

Name of the Location

Example
High-Class Restaurant
Stringrequired
Location Descriptiondesc

Description of the Location

Example
A high class restaruant with a bunch of stuff that's really high class.
Stringsuggested
Distinction 1 Namedistinction1

Name of First Distinction

Example
Bustling Waitstaff
Stringrequired
Distinction 1 Valuedistinction1_value

Die Value of First Distinction

Example
8
Numberrequired
Distinction 2 Namedistinction2

Name of Second Distinction

Example
Well-Stocked Larder
Stringoptional
Distinction 2 Valuedistinction2_value

Die Value of Second Distinction

Example
8
Numberoptional
Distinction 3 Namedistinction3

Name of Third Distinction

Example
Productive Kitchen
Stringoptional
Distinction 3 Valuedistinction3_value

Die Value of Third Distinction

Example
8
Numberoptional
Widthwidth

Box Width

Example
100
Numberoptional
Distinction 1, SFX 1 Namedistinction1_sfx1_name

Name of First SFX Associated with First Distinction

Example
Show me the money
Stringoptional
Distinction 1, SFX 1 Effectdistinction1_sfx1_effect

Effect of First SFX Associated with First Distinction

Example
Spend [pp] gain [8] asset
Stringoptional
Distinction 1, SFX 2 Namedistinction1_sfx2_name

Name of Second SFX Associated with First Distinction

Example
Show me the money
Stringoptional
Distinction 1, SFX 2 Effectdistinction1_sfx2_effect

Effect of Second SFX Associated with First Distinction

Example
Spend [pp] gain [8] asset
Stringoptional
Distinction 1, SFX 3 Namedistinction1_sfx3_name

Name of Third SFX Associated with First Distinction

Example
Show me the money
Stringoptional
Distinction 1, SFX 3 Effectdistinction1_sfx3_effect

Effect of Third SFX Associated with First Distinction

Example
Spend [pp] gain [8] asset
Stringoptional
Distinction 2, SFX 1 Namedistinction2_sfx1_name

Name of First SFX Associated with Second Distinction

Example
Show me the money
Stringoptional
Distinction 2, SFX 1 Effectdistinction2_sfx1_effect

Effect of First SFX Associated with Second Distinction

Example
Spend [pp] gain [8] asset
Stringoptional
Distinction 2, SFX 2 Namedistinction2_sfx2_name

Name of Second SFX Associated with Second Distinction

Example
Show me the money
Stringoptional
Distinction 2, SFX 2 Effectdistinction2_sfx2_effect

Effect of Second SFX Associated with Second Distinction

Example
Spend [pp] gain [8] asset
Stringoptional
Distinction 1, SFX 3 Namedistinction2_sfx3_name

Name of Third SFX Associated with Second Distinction

Example
Show me the money
Stringoptional
Distinction 2, SFX 3 Effectdistinction2_sfx3_effect

Effect of Third SFX Associated with Second Distinction

Example
Spend [pp] gain [8] asset
Stringoptional
Distinction 3, SFX 1 Namedistinction3_sfx1_name

Name of First SFX Associated with Third Distinction

Example
Show me the money
Stringoptional
Distinction 3, SFX 1 Effectdistinction3_sfx1_effect

Effect of First SFX Associated with Third Distinction

Example
Spend [pp] gain [8] asset
Stringoptional
Distinction 3, SFX 2 Namedistinction3_sfx2_name

Name of Second SFX Associated with Third Distinction

Example
Show me the money
Stringoptional
Distinction 3, SFX 2 Effectdistinction3_sfx2_effect

Effect of Second SFX Associated with Third Distinction

Example
Spend [pp] gain [8] asset
Stringoptional
Distinction 1, SFX 3 Namedistinction3_sfx3_name

Name of Third SFX Associated with Third Distinction

Example
Show me the money
Stringoptional
Distinction 3, SFX 3 Effectdistinction3_sfx3_effect

Effect of Third SFX Associated with Third Distinction

Example
Spend [pp] gain [8] asset
Stringoptional