Template:Course infobox: Difference between revisions

Major change
(This needs greatly fleshed out, but not totally sure what to do for course information. Legitimately couldn't think of much, except stars needed for entry and the level "boss".)
 
(Major change)
Line 2: Line 2:
| 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>'''
|-
|-
|align="center" colspan="2" | {{{image|}}}
|align="center" colspan="2" | {{{image|300px}}}
|- style="vertical-align: top"
|- style="vertical-align: top"
|}
{{#if:{{{environment|}}}|{{!}}- style="vertical-align: top;"
{{!}} '''Environment'''
{{!}} {{{environment}}}
|}}
|- style="vertical-align: top"
{{#if:{{{setting|}}}|{{!}}- style="vertical-align:top"
{{!}} '''Setting'''
{{!}} {{{setting}}}
|}}
|- style="vertical-align: top"
{{#if:{{{water|}}}|{{!}}- style="vertical-align:top"
{{!}} '''Water'''
{{!}} {{{Water}}}
|}}
{{{!}} class="{{#ifeq:{{{expand}}}|expandable|mw-collapsible mw-collapsed|noexpandable}}" width="100%" style="background: ghostwhite; text-align:left;" border="0" cellpadding="0" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Objects
| {{#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-->
{{!}} '''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-->
 
{{{!}} class="{{#ifeq:{{{expand}}}|expandable|mw-collapsible mw-collapsed|noexpandable}}" width="100%" style="background: ghostwhite; text-align:left;" border="0" cellpadding="0" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Course Photos
  {{!}}-
  {{!}} colspan="2" {{!}} [[File:Photo {{{file-name}}}.png|300px|center]]
  {{!}}-
}
 
{{{!}} class="{{#ifeq:{{{expand}}}|expandable|mw-collapsible mw-collapsed|noexpandable}}" width="100%" style="background: ghostwhite; text-align:left;" border="0" cellpadding="0" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Course Overview
 
  {{!}}-
  {{!}} colspan="2" {{!}} [[File:{{{file-name}}} overview.png|300px|center]]
  {{!}}-
}
 
{{#ifeq:{{NAMESPACENUMBER}}|0|
{{#ifeq:{{NAMESPACENUMBER}}|0|
[[Category:Courses]]}}
[[Category:Templates]]}}
</includeonly><noinclude><div style="float:right"><pre>{{course_infobox
</includeonly><noinclude><div style="float:right"><pre>{{map_infobox
|title=
|title=
|image=
|image=
|enviroment=
|setting=
|water=
|yellow-coins=
|red-coins=
|blue-coins=
|related=
|found_in=
|expand=
}}</pre></div>
}}</pre></div>
*image &ndash; an image. Must use <code><nowiki>{{!}}</nowiki></code> for a <code>|</code> break symbol in image syntax.
*image &ndash; an image. Must use <code><nowiki>{{!}}</nowiki></code> for a <code>|</code> break symbol in image syntax. Automatically resized to 300x300
*title &ndash; default pagename, just in case can be changed
*title &ndash; default pagename, just in case can be changed
*enviroment &ndash; Course environment (Alpine, Desert, etc).
*setting &ndash; Course setting, as daytime and weather.
*tangibility_radius &ndash; Deep water present in course.
*yellow-coins &ndash; Number of yellow coins in the course
*red-coins &ndash; Number of red coins in the course
*blue-coins &ndash; Number of blue coins in the course
*star &ndash; Number of stars coins in the course
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>