Template:Course infobox: Difference between revisions

Fixing the errors with the count addition, somehow broke the red coin gif
m (Need to stop breaking things lmao)
(Fixing the errors with the count addition, somehow broke the red coin gif)
Line 36: Line 36:
{{#if:{{{yellow-coins|}}} {{{red-coins|}}} {{{blue-coins|}}} |
{{#if:{{{yellow-coins|}}} {{{red-coins|}}} {{{blue-coins|}}} |
   {{!}}'''Coins'''
   {{!}}'''Coins'''
  {{!}} style="text-align:center;"{{!}} '''{{#expr: {{{yellow-coins}}}+2*{{{red-coins}}}+5*{{{blue-coins}}} }} (''' {{#if:{{{yellow-coins|}}}|[[File:Yellow_Coin.gif|link=Yellow_Coin|20px]] ×{{{yellow-coins}}}|}}{{#if: {{{red-coins|}}} | {{#if: {{{yellow-coins|}}} |  {{b}}  | }} | }}{{#if:{{{red-coins|}}}|[[File:Red_Coin.gif|link=Red_Coin|20px]] ×{{{red-coins}}}|}}{{#if: {{{blue-coins|}}} | {{#if: {{{red-coins|}}} |  {{b}}  | {{#if: {{{yellow-coins|}}} |  {{b}}  | }} }} | }}{{#if:{{{blue-coins|}}}|[[File:Blue_Coin.gif|link=Blue_Coin|20px]] ×{{{blue-coins}}}|}}''')'''
    {{!}} style="text-align:center;"{{!}} '''{{#expr:{{#if:{{{yellow-coins|}}}|{{{yellow-coins}}}{{#if:{{{red-coins|}}}|+|{{#if:{{{blue-coins|}}}|+}}}}}}{{#if:{{{red-coins|}}}|2*{{{red-coins}}}{{#if:{{{blue-coins|}}}|+}}}}{{#if:{{{blue-coins}}}|5*{{{blue-coins}}}}}}} (''' {{#if:{{{yellow-coins|}}}|[[File:Yellow_Coin.gif|link=Yellow_Coin|20px]] ×{{{yellow-coins}}}|}}{{#if: {{{red-coins|}}} | {{#if: {{{yellow-coins|}}} |  {{b}}  | }} | }}{{#if:{{{red-coins|}}}|[[File:Red_Coin.gif|link=Red_Coin|20px]] ×{{{red-coins}}}|}}{{#if: {{{blue-coins|}}} | {{#if: {{{red-coins|}}} |  {{b}}  | {{#if: {{{yellow-coins|}}} |  {{b}}  | }} }} | }}{{#if:{{{blue-coins|}}}|[[File:Blue_Coin.gif|link=Blue_Coin|20px]] ×{{{blue-coins}}}|}}''')'''
{{!}}-
{{!}}-
| }}
| }}


{{!}} '''Enemy Coins'''
{{!}} '''Enemy Coins'''
{{#if:{{{enemy-yellow|}}} {{{enemy-blue|}}} |  {{!}} style="text-align:center;"{{!}} '''{{#expr: {{{enemy-yellow}}}+5*{{{enemy-blue}}} }} (''' {{#if:{{{enemy-yellow|}}}|[[File:Yellow_Coin.gif|link=Yellow_Coin|20px]] ×{{{enemy-yellow}}}|}}{{#if: {{{enemy-blue|}}} | {{#if: {{{enemy-yellow|}}} |  {{b}}  | }} | }}{{#if:{{{enemy-blue|}}}|[[File:Blue_Coin.gif|link=Blue_Coin|20px]] ×{{{enemy-blue}}}|}}''')'''
{{#if:{{{enemy-yellow|}}} {{{enemy-blue|}}} |  {{!}} style="text-align:center;"{{!}} '''{{#expr: {{#if:{{{enemy-yellow}}}|{{{enemy-yellow}}}{{#if:{{{enemy-blue}}}|+}}}}{{#if:{{{enemy-blue}}}|5*{{{enemy-blue}}} }} }} (''' {{#if:{{{enemy-yellow|}}}|[[File:Yellow_Coin.gif|link=Yellow_Coin|20px]] ×{{{enemy-yellow}}}|}}{{#if: {{{enemy-blue|}}} | {{#if: {{{enemy-yellow|}}} |  {{b}}  | }} | }}{{#if:{{{enemy-blue|}}}|[[File:Blue_Coin.gif|link=Blue_Coin|20px]] ×{{{enemy-blue}}}|}}''')'''
| {{!}} style="text-align:center;"{{!}} None
| {{!}} style="text-align:center;"{{!}} None
| }}
| }}