Template:Course infobox: Difference between revisions

idk if this is the technically proper way to do this, but I want people to understand the meaning behind this
(Fixing the errors with the count addition, somehow broke the red coin gif)
(idk if this is the technically proper way to do this, but I want people to understand the meaning behind this)
 
(4 intermediate revisions by the same user not shown)
Line 8: Line 8:
{{#if:{{{abbreviation|}}}{{{environment|}}}{{{setting|}}}{{{water|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Course Info</span>'''
{{#if:{{{abbreviation|}}}{{{environment|}}}{{{setting|}}}{{{water|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Course Info</span>'''
|}}
|}}
 
|-
{{#if:{{{abbreviation|}}}|{{!}}- style="vertical-align: top;"
{{#if: {{{abbreviation|}}} |
{{!}} '''Abbreviation'''
{{!}} '''Abbreviation''' {{!!}} {{{abbreviation}}}
{{!}} {{{abbreviation}}}
{{!}}-}}
|}}
|-
 
{{#if: {{{terrain|}}} |
{{#if:{{{environment|}}}|{{!}}- style="vertical-align: top;"
{{!}} '''[[Terrain]]''' {{!!}} {{{terrain}}}
{{!}} '''Environment'''
{{!}}-}}
{{!}} {{{environment}}}
|-
|}}
{{#if: {{{setting|}}} |
 
{{!}} '''Setting''' {{!!}} {{{setting}}}
{{#if:{{{setting|}}}|{{!}}- style="vertical-align: top;"
{{!}}-}}
{{!}} '''Setting'''
|-
{{!}} {{{setting}}}
{{#if: {{{water|}}} |
|}}
{{!}} '''Water''' {{!!}} {{{water}}}
 
{{!}}-}}
{{#if:{{{water|}}}|{{!}}- style="vertical-align: top;"
{{!}} '''Water'''
{{!}} {{{water}}}
| }}
|-  
|-  


Line 55: Line 51:
   {{!}}'''Caps'''
   {{!}}'''Caps'''
   {{!}} style="text-align:center;"{{!}} {{#if:{{{wing-caps|}}}|[[File:STROOP- Wing Cap Block.png|link=Wing_Cap|20px]]&nbsp;&times;{{{wing-caps}}}|}}{{#if: {{{metal-caps|}}} | {{#if: {{{wing-caps|}}} | &nbsp;{{b}}&nbsp; | }} | }}{{#if:{{{metal-caps|}}}|[[File:STROOP- Metal Cap Block.png|link=Metal_Cap|20px]]&nbsp;&times;{{{metal-caps}}}|}}{{#if: {{{vanish-caps|}}} | {{#if: {{{metal-caps|}}} | &nbsp;{{b}}&nbsp; | {{#if: {{{wing-caps|}}} | &nbsp;{{b}}&nbsp; | }} }} | }}{{#if:{{{vanish-caps|}}}|[[File:STROOP- Vanish Cap Block.png|link=Vanish Cap|20px]]&nbsp;&times;{{{vanish-caps}}}|}}
   {{!}} style="text-align:center;"{{!}} {{#if:{{{wing-caps|}}}|[[File:STROOP- Wing Cap Block.png|link=Wing_Cap|20px]]&nbsp;&times;{{{wing-caps}}}|}}{{#if: {{{metal-caps|}}} | {{#if: {{{wing-caps|}}} | &nbsp;{{b}}&nbsp; | }} | }}{{#if:{{{metal-caps|}}}|[[File:STROOP- Metal Cap Block.png|link=Metal_Cap|20px]]&nbsp;&times;{{{metal-caps}}}|}}{{#if: {{{vanish-caps|}}} | {{#if: {{{metal-caps|}}} | &nbsp;{{b}}&nbsp; | {{#if: {{{wing-caps|}}} | &nbsp;{{b}}&nbsp; | }} }} | }}{{#if:{{{vanish-caps|}}}|[[File:STROOP- Vanish Cap Block.png|link=Vanish Cap|20px]]&nbsp;&times;{{{vanish-caps}}}|}}
{{!}}-
| }}
| }}


{{#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>'''
|-
|align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Star Navigation</span>'''  
 
|-
|align="center" colspan="2" | {{Course_infobox_stars
|abbreviation={{{abbreviation}}} }}
 
{{!}}-
{{!}}-
{{#if:{{{overview_1|}}}|{{!}}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|]]
Line 93: Line 96:
|image= Course5.jpg
|image= Course5.jpg
|abbreviation=BBH
|abbreviation=BBH
|environment=Mansion
|terrain=Spooky
|setting=Dark
|setting=Mansion
|water=Small
|water=Little
|yellow-coins=16
|yellow-coins=16
|red-coins=8
|red-coins=8
Line 114: Line 117:
|image=
|image=
|abbreviation=
|abbreviation=
|environment=
|terrain=
|setting=
|setting=
|water=
|water=
Line 134: Line 137:
*title - default pagename, just in case can be changed.
*title - default pagename, just in case can be changed.
*abbreviation - abbreviation used for the level.
*abbreviation - abbreviation used for the level.
*environment - Course environment (Alpine, Desert, etc).  
*terrain - Course terrain (Snow, Desert, etc).  
*setting - Course setting, as daytime and weather.  
*setting - Course setting, as daytime and weather.  
*water - Water Height in level.
*water - Water Height in level.