Template:Course infobox: Difference between revisions

m
Need to stop breaking things lmao
(Maybe a bit better, but I don't really like how this looks currently. This will work on every page already filled out, though.)
m (Need to stop breaking things lmao)
Line 1: Line 1:
<includeonly>{| class="infobox" cellpadding=2 cellspacing=2 align=right width=280px style="font-family: verdana, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 10px; background-color: ghostwhite; border:1px solid #8a8; color:black"
<includeonly>{| class="infobox" cellpadding=2 cellspacing=2 align=right width=280px style="font-family: verdana, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 10px; background-color: ghostwhite; border:1px solid #8a8; color:black"
| align="center" colspan="2" bgcolor="#10274c" style="font-size:145%;" | '''<span style="color:white;">{{{title|{{PAGENAME}} }}}</span>'''
| align="center" colspan="2" bgcolor="#10274c" style="font-size:145%;" | '''<span style="color:white;">{{{title|{{PAGENAME}}}}}</span>'''
{{#if: {{{image|}}} |
{{#if: {{{image|}}} |
{{!}}-  
{{!}}-  
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]]&nbsp;&times;{{{yellow-coins}}}|}}{{#if: {{{red-coins|}}} | {{#if: {{{yellow-coins|}}} | &nbsp;{{b}}&nbsp; | }} | }}{{#if:{{{red-coins|}}}|[[File:Red_Coin.gif|link=Red_Coin|20px]]&nbsp;&times;{{{red-coins}}}|}}{{#if: {{{blue-coins|}}} | {{#if: {{{red-coins|}}} | &nbsp;{{b}}&nbsp; | {{#if: {{{yellow-coins|}}} | &nbsp;{{b}}&nbsp; | }} }} | }}{{#if:{{{blue-coins|}}}|[[File:Blue_Coin.gif|link=Blue_Coin|20px]]&nbsp;&times;{{{blue-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]]&nbsp;&times;{{{yellow-coins}}}|}}{{#if: {{{red-coins|}}} | {{#if: {{{yellow-coins|}}} | &nbsp;{{b}}&nbsp; | }} | }}{{#if:{{{red-coins|}}}|[[File:Red_Coin.gif|link=Red_Coin|20px]]&nbsp;&times;{{{red-coins}}}|}}{{#if: {{{blue-coins|}}} | {{#if: {{{red-coins|}}} | &nbsp;{{b}}&nbsp; | {{#if: {{{yellow-coins|}}} | &nbsp;{{b}}&nbsp; | }} }} | }}{{#if:{{{blue-coins|}}}|[[File:Blue_Coin.gif|link=Blue_Coin|20px]]&nbsp;&times;{{{blue-coins}}}|}}''')'''
{{!}}-
{{!}}-
| }}
| }}
Line 59: Line 59:


{{#if:{{{overview_1|}}}{{{overview_2|}}}{{{overview_3|}}}{{{overview_4|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Overview</span>'''
{{#if:{{{overview_1|}}}{{{overview_2|}}}{{{overview_3|}}}{{{overview_4|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Overview</span>'''
{{!}}-
|}}
|}}


{{#if: {{{overview_1|}}} |
{{#if: {{{overview_1|}}} |
{{!}}-
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_1|}}}|300px|]]
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_1|}}}|300px|]]
{{!}}-
}}
}}


{{#if: {{{overview_2|}}} |
{{#if: {{{overview_2|}}} |
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_2|}}}|300px|]]
{{!}}-  
{{!}}-  
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_2|}}}|300px|]]
}}
}}


{{#if: {{{overview_3|}}} |
{{#if: {{{overview_3|}}} |
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_3|}}}|300px|]]
{{!}}-  
{{!}}-  
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_3|}}}|300px|]]
}}
}}


{{#if: {{{overview_4|}}} |
{{#if: {{{overview_4|}}} |
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_4|}}}|300px|]]
{{!}}-  
{{!}}-  
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_4|}}}|300px|]]
}}
}}


{{#if: {{{overview_5|}}} |  
{{#if: {{{overview_5|}}} |  
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_5|}}}|300px|]]
{{!}}-  
{{!}}-  
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_5|}}}|300px|]]
}}
}}
|}{{#ifeq:{{NAMESPACENUMBER}}|0|
|}{{#ifeq:{{NAMESPACENUMBER}}|0|
Line 89: Line 90:
<noinclude>
<noinclude>
{{course_infobox
{{course_infobox
|title=
|title=Big Boo's Haunt
|image= Course5.jpg
|image= Course5.jpg
|abbreviation=BBH
|abbreviation=BBH