Difference between revisions of "Template:CortexLocation"

From Starlight Wiki
Jump to navigation Jump to search
Line 40: Line 40:
 
</noinclude>
 
</noinclude>
  
{{#expr:100/(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})}}
+
 
 
{| 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}}}}%"
 
{| 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="3" class='hed'|{{#if:{{{name|}}}|{{{name}}}|<span class='err'>Location requires a name</span>}}  
 
|colspan="3" class='hed'|{{#if:{{{name|}}}|{{{name}}}|<span class='err'>Location requires a name</span>}}  
 
|-|
 
|-|
|style="width:{{#if:{{{distinction1|}}}{{{distinction2|}}}{{{distinction3|}}}|33.3|{{#if:{{{distinction1|}}}{{{distinction2|}}}|50|100}}}};"|{{#if: {{{distinction1|}}}|{{CortexTrait|name={{{distinction1}}}|value{{{=distinction1_value}}}}}|<span class='err'>Location requires at least 1 distinction</span>}}
+
|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:{{#if: {{{distinction2_sfx1_name|}}}{{{distinction3_sfx1_name|}}}|50|33.33333%;"}}{{!}}{{CortexTrait|name={{{distinction2}}}|value{{{=distinction2_value}}}}}|;}}
+
{{#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:33.33333%;"{{!}}{{CortexTrait|name={{{distinction3}}}|value{{{=distinction3_value}}}}}|;}}
+
{{#if: {{{distinction3|}}}|{{!}}style="width:{{#expr:100/(1+{{#if:{{{distinction2|}}}|1|0}}+{{#if:{{{distinction3|}}}|1|0}})}}%;"{{!}}{{CortexTrait|name={{{distinction3}}}|value{{{=distinction3_value}}}}}|;}}
 
|-
 
|-
 
|{{Hinder}}
 
|{{Hinder}}

Revision as of 12:41, 13 December 2022



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
{{{distinction2}}}
;}}
Hinder
Gain a when you switch out this distinction's for a .