Difference between revisions of "Template:SkillRow"

From ChatWars Wiki
Jump to: navigation, search
Line 3: Line 3:
 
{{#vardefine: firstOutput | 1 }}
 
{{#vardefine: firstOutput | 1 }}
 
{{#vardefine: backgroundColorModifier | }}
 
{{#vardefine: backgroundColorModifier | }}
{{#vardefine: estimateString | * }}
 
 
<includeonly>
 
<includeonly>
 
  |style="{{#if: {{{2}}} | background-color: lightgrey; }}text-align: left"| {{{1|}}}
 
  |style="{{#if: {{{2}}} | background-color: lightgrey; }}text-align: left"| {{{1|}}}
Line 16: Line 15:
 
     {{#vardefine: endRange | {{#var: i}} }}
 
     {{#vardefine: endRange | {{#var: i}} }}
 
     {{#switch: {{{ {{#var: i}} |}}}
 
     {{#switch: {{{ {{#var: i}} |}}}
       | 1{{#var: estimateString}} = {{#vardefine: backgroundColorModifier | style="background-color: lightblue" }}
+
       | 1* = {{#vardefine: backgroundColorModifier | style="background-color: lightblue" }}
 
       | Unknown | ? = {{#vardefine: backgroundColorModifier | style="background-color: red" }}
 
       | Unknown | ? = {{#vardefine: backgroundColorModifier | style="background-color: red" }}
 
       | #default = {{#vardefine: backgroundColorModifier | }}
 
       | #default = {{#vardefine: backgroundColorModifier | }}

Revision as of 13:17, 17 July 2018




This is a template for formatting one row (skill) of the skill cap table