Template:Infobox Game: Difference between revisions

Trying out a Switch statement for the complexity field to try and catch other values
(Fixing link for the Complexity field)
(Trying out a Switch statement for the complexity field to try and catch other values)
Line 19:
| {{PL|:Complexity||25px}}
! align=right | Complexity:
| {{#switch: {{{complexity|}}}
| [[Rules Complexity::{{#if: {{{complexity|}}} | Browse_games/{{{complexity}}}_complexity{{!}}{{{complexity}}} | unknown}}]]
| #default = [[Rules Complexity::Browse_games/Unknown_complexity{{!}}unknown]]
 
| simple|low = [[Rules Complexity::{{#if: {{{complexity|}}} | Browse_games/{{{complexity}}}_complexitySimple_complexity{{!}}{{{complexity}}} | unknown}}]]
| medium|moderate = [[Rules Complexity::Browse_games/Medium_complexity{{!}}{{{complexity}}}]]
| complex|high = [[Rules Complexity::Browse_games/Complex_complexity{{!}}{{{complexity}}}]]
}}
|-
! colspan=2 align=right width="50%" valign=top | Trios per color: