Template:Course infobox: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
No edit summary
(idk if this is the technically proper way to do this, but I want people to understand the meaning behind this)
 
(155 intermediate revisions by 2 users not shown)
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|}}} |
{{!}}-
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{image|}}}|300px|]]
}}
|-
|-
|align="center" colspan="2" | {{{image|300px}}}
{{#if:{{{abbreviation|}}}{{{environment|}}}{{{setting|}}}{{{water|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Course Info</span>'''
|- style="vertical-align: top"
{{#if:{{{environment|}}}|{{!}}- style="vertical-align: top;"
{{!}} '''Environment'''
{{!}} {{{environment}}}
|}}
|}}
|- style="vertical-align: top"
|-
{{#if:{{{setting|}}}|{{!}}- style="vertical-align:top"
{{#if: {{{abbreviation|}}} |
{{!}} '''Setting'''
{{!}} '''Abbreviation''' {{!!}} {{{abbreviation}}}
{{!}} {{{setting}}}
{{!}}-}}
|-
{{#if: {{{terrain|}}} |
{{!}} '''[[Terrain]]''' {{!!}} {{{terrain}}}
{{!}}-}}
|-
{{#if: {{{setting|}}} |
{{!}} '''Setting''' {{!!}} {{{setting}}}
{{!}}-}}
|-
{{#if: {{{water|}}} |
{{!}} '''Water''' {{!!}} {{{water}}}
{{!}}-}}
|-
 
{{#if:{{{yellow-coins|}}}{{{red-coins|}}}{{{blue-coins|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Course Items</span>'''
{{!}}-
|}}
|}}
|- style="vertical-align: top"  
 
{{#if:{{{water|}}}|{{!}}- style="vertical-align:top"
{{#if:{{{yellow-coins|}}} {{{red-coins|}}} {{{blue-coins|}}} |
{{!}} '''Water'''
  {{!}}'''Coins'''
{{!}} {{{Water}}}
    {{!}} 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]]&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}}}|}}''')'''
{{!}}-
| }}
 
{{!}} '''Enemy Coins'''
{{#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]]&nbsp;&times;{{{enemy-yellow}}}|}}{{#if: {{{enemy-blue|}}} | {{#if: {{{enemy-yellow|}}} | &nbsp;{{b}}&nbsp; | }} | }}{{#if:{{{enemy-blue|}}}|[[File:Blue_Coin.gif|link=Blue_Coin|20px]]&nbsp;&times;{{{enemy-blue}}}|}}''')'''
| {{!}} style="text-align:center;"{{!}} None
| }}
{{!}}-
 
{{#if:{{{stars|}}} |
  {{!}} '''Stars'''
  {{!}} style="text-align:center;"{{!}} {{#if:{{{stars|}}}|[[File:Challenge infobox star 1.gif|link=Star|20px]]&nbsp;&times;{{{stars|}}}|}}
{{!}}-
| }}
 
{{#if:{{{wing-caps|}}} {{{metal-caps|}}} {{{vanish-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}}}|}}
| }}
 
|-
|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>'''
|}}
|}}
| align="center" colspan="2" bgcolor="#10274c" style="font-size:145%;" | '''<span style="color:white;">{{Course info}}</span>'''
| {{#if: {{{yellow-coins|}}} {{{red-coins|}}} {{{blue-coins|}}} |
{{!}} '''Coins:'''
{{!}} style="text-align:center;" {{!}} {{#if: {{{yellow-coins|}}} [[File:Yellow_Coin.gif|link=Yellow_coin|20px]] &nbsp;&times;{{{yellow-coins}}} }} | {{#if: {{{red-coins|}}} [[File:Red_Coin.gif|link=Red_coin|20px]] &nbsp;&times;{{{red-coins}}} }} | {{#if: {{{blue-coins|}}} [[File:Blue_Coin.gif|link=Blue_coin|20px]] &nbsp;&times;{{{blue-coins}}} | }}
}}}
<!-- {{!}} '''Enemies:'''-->
<!-- {{!}} style="text-align:center;" {{!}} {{#if: {{{scuttlebug|}}} [[File:Scuttlebug_small.png]] &nbsp;&times;{{{yellow-coins}}} }} | ... -->
<!-- The next person who edits this should add all the enemies to this template-->
<br>
{{!}} '''Objects:'''
{{!}} style="text-align:center;" {{!}} {{#if: {{{star|}}} [[File:Star.gif|link=Star|20px]] &nbsp;&times;{{{star}}} }} | {{#if: {{{heart|}}} [[File:Spin_Heart.png|link=Spinning_heart|20px]] &nbsp;&times;{{{heart}}} }} |
<!-- The next person who edits this should add more objects to this template-->
<br>
| align="center" colspan="2" bgcolor="#10274c" style="font-size:145%;" | '''<span style="color:white;">{{Course Photos}}</span>'''
  {{!}}-
  {{!}} colspan="2" {{!}} [[File:Photo {{{file-name}}}.png|300px|center]]
  {{!}}-
}
| align="center" colspan="2" bgcolor="#10274c" style="font-size:145%;" | '''<span style="color:white;">{{Course Overview}}</span>'''


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


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


{{#ifeq:{{NAMESPACENUMBER}}|0|
{{#if: {{{overview_5|}}} |
[[Category:Templates]]}}
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{overview_5|}}}|300px|]]
</includeonly><noinclude><div style="float:right"><pre>{{map_infobox
{{!}}-
}}
|}{{#ifeq:{{NAMESPACENUMBER}}|0|
[[Category:Courses]]}}</includeonly>
<noinclude>
{{course_infobox
|title=Big Boo's Haunt
|image= Course5.jpg
|abbreviation=BBH
|terrain=Spooky
|setting=Mansion
|water=Little
|yellow-coins=16
|red-coins=8
|blue-coins=4
|enemy-yellow=14
|enemy-blue=17
|stars=7
|wing-caps=
|metal-caps=
|vanish-caps=3
|overview_1=STROOP- BBH Basement.png
|overview_2=STROOP- BBH Floor 1.png
|overview_3=STROOP- BBH Floor 2.png
|overview_4=STROOP- BBH Floor 3.png
|overview_5=STROOP- BBH Roof.png
}}<div style="float:right"><pre>{{course_infobox
|title=
|title=
|image=
|image=
|environment=
|abbreviation=
|terrain=
|setting=
|setting=
|water=
|water=
|yellow-coins=
|yellow-coins=
|red-coins=
|blue-coins=
|blue-coins=
|related=
|enemy-yellow=
|found_in=
|enemy-blue=
|expand=
|stars=
|wing-caps=
|metal-caps=
|vanish-caps=
|overview_1=
|overview_2=
|overview_3=
|overview_4=
|overview_5=
}}</pre></div>
}}</pre></div>
*image &ndash; an image. Must use <code><nowiki>{{!}}</nowiki></code> for a <code>|</code> break symbol in image syntax. Automatically resized to 300x300
*image - The file name of image, with the extension. Automatically resized to 300x300
*title &ndash; default pagename, just in case can be changed
*title - default pagename, just in case can be changed.
*environment &ndash; Course environment (Alpine, Desert, etc).  
*abbreviation - abbreviation used for the level.
*setting &ndash; Course setting, as daytime and weather.  
*terrain - Course terrain (Snow, Desert, etc).  
*water &ndash; Deep water present in course.
*setting - Course setting, as daytime and weather.  
*yellow-coins &ndash; Number of yellow coins in the course
*water - Water Height in level.
*red-coins &ndash; Number of red coins in the course
*yellow-coins - Number of yellow coins in the course.
*blue-coins &ndash; Number of blue coins in the course
*red-coins - Number of red coins in the course.
*star &ndash; Number of stars coins in the course
*blue-coins - Number of blue coins in the course.
*enemy-yellow - Number of enemy yellow coins in the course.
*enemy-blue - Number of enemy blue coins in the course.
*stars - star count for a stage.
*overview_1 - overview of the level, use overview_2-4 for extra overview images. Use the entire file name, with extension. Automatically resized to 300x300.
 


This template also automatically embeds course images if they are uploaded with the title "Photo (title of article)".png
This template also automatically embeds course overviews if they are uploaded with the title "(title of article) overview".png
<br clear="all"> [[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
<br clear="all"> [[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 23:21, 27 September 2018


Big Boo's Haunt
Course5.jpg
Course Info
Abbreviation BBH
Terrain Spooky
Setting Mansion
Water Little
Course Items
Coins 52 ( Yellow Coin.gif ×16  •  Red Coin.gif ×8  •  Blue Coin.gif ×4)
Enemy Coins 99 ( Yellow Coin.gif ×14  •  Blue Coin.gif ×17)
Stars Challenge infobox star 1.gif ×7
Caps STROOP- Vanish Cap Block.png ×3
Star Navigation

Challenge infobox star 1.gifChallenge infobox star 1.gifChallenge infobox star 1.gifChallenge infobox star 1.gifChallenge infobox star 1.gifChallenge infobox star 1.gifChallenge infobox star 1.gif

Overview
STROOP- BBH Basement.png
STROOP- BBH Floor 1.png
STROOP- BBH Floor 2.png
STROOP- BBH Floor 3.png
STROOP- BBH Roof.png
{{course_infobox
|title=
|image=
|abbreviation=
|terrain=
|setting=
|water=
|yellow-coins=
|blue-coins=
|enemy-yellow=
|enemy-blue=
|stars=
|wing-caps=
|metal-caps=
|vanish-caps=
|overview_1=
|overview_2=
|overview_3=
|overview_4=
|overview_5=
}}
  • image - The file name of image, with the extension. Automatically resized to 300x300
  • title - default pagename, just in case can be changed.
  • abbreviation - abbreviation used for the level.
  • terrain - Course terrain (Snow, Desert, etc).
  • setting - Course setting, as daytime and weather.
  • water - Water Height in level.
  • yellow-coins - Number of yellow coins in the course.
  • red-coins - Number of red coins in the course.
  • blue-coins - Number of blue coins in the course.
  • enemy-yellow - Number of enemy yellow coins in the course.
  • enemy-blue - Number of enemy blue coins in the course.
  • stars - star count for a stage.
  • overview_1 - overview of the level, use overview_2-4 for extra overview images. Use the entire file name, with extension. Automatically resized to 300x300.