Template:Chem2: Difference between revisions

From Chompstation Wiki
Jump to navigation Jump to search
imported>Xn--qm8h
m (Fixes padding issue on tables.)
imported>Xn--qm8h
m (Changed to use the switch statement. This saves on system resources.)
Line 2: Line 2:
{|style="border-spacing:0"
{|style="border-spacing:0"
{{#if:{{{complexity|}}}|{{!}}-
{{#if:{{{complexity|}}}|{{!}}-
{{!}} style="padding:0 10px 0 0" {{!}} '''Complexity''' {{!}}{{!}}{{
{{!}} style="padding:0 10px 0 0" {{!}} '''Complexity''' {{!}}{{!}}{{#switch:{{{complexity}}}|0=☆☆☆☆☆|1=★☆☆☆☆|2=★★☆☆☆|3=★★★☆☆|4=★★★★☆|5=★★★★★|#default={{{complexity}}}}}}}
#ifeq: {{{complexity}}} | 0 | ☆☆☆☆☆ |{{
#ifeq: {{{complexity}}} | 1 | ★☆☆☆☆ |{{
#ifeq: {{{complexity}}} | 2 | ★★☆☆☆ |{{
#ifeq: {{{complexity}}} | 3 | ★★★☆☆ |{{
#ifeq: {{{complexity}}} | 4 | ★★★★☆ |{{
#ifeq: {{{complexity}}} | 5 | ★★★★★ |{{{complexity}}}}}}}}}}}}}}}}}
{{#if:{{{category|}}}|{{!}}-
{{#if:{{{category|}}}|{{!}}-
{{!}} style="padding:0 10px 0 0" {{!}} '''Category''' {{!}}{{!}}{{{category}}}}}
{{!}} style="padding:0 10px 0 0" {{!}} '''Category''' {{!}}{{!}}{{{category}}}}}

Revision as of 03:46, 11 May 2022

Hewwo :3