Template:Course infobox: Difference between revisions

no edit summary
m (Reverted edits by Thestickman391 (talk) to last revision by JoshDuMan)
No edit summary
Line 4: Line 4:
|align="center" colspan="2" | {{{image|}}}
|align="center" colspan="2" | {{{image|}}}
|- style="vertical-align: top"
|- style="vertical-align: top"
{{#if:{{{Environment|}}}|{{!}}- style="vertical-align: top;"
{{!}} '''Environment'''
{{!}} {{{environment}}}
|}}
{{#if:{{{setting|}}}|{{!}}- style="vertical-align: top;"
{{!}} '''Setting'''
{{!}} {{{setting}}}
|}}
{{#if:{{{water|}}}|{{!}}- style="vertical-align: top;"
{{!}} '''Water'''
{{!}} {{{water}}}
|}}
{{#if:{{{water|}}}|{{!}}- style="vertical-align: top;"
{{!}} '''Water'''
{{!}} {{{water}}}
|}}
|- style="vertical-align: top"
| {{#if: {{{yellow-coins|red-coins|blue-coins|}}}
{{!}} colspan="2" style="padding:0" {{!}}
{{{!}} 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
{{!}}-
{{!}} style="text-align:center;" {{!}} {{#if: {{{yellow-coins|}}} [[File:Yellow_Coin.gif|link=Yellow_coin|20px]]  ×{{{yellow-coins}}} }} | {{#if: {{{red-coins|}}} [[File:Red_Coin.gif|link=Red_coin|20px]]  ×{{{red-coins}}} }} | {{#if: {{{blue-coins|}}} [[File:Blue_Coin.gif|link=Blue_coin|20px]]  ×{{{blue-coins}}} | }}
{{!}}}
|}}
{{#if:{{{star|heart}}}|{{!}}- style="vertical-align: top;"
{{!}} '''Objects:'''
{{!}} style="text-align:center;" {{!}} {{#if: {{{star|}}} [[File:Star.gif|link=Star|20px]]  ×{{{star}}} }} | {{#if: {{{heart|}}} [[File:Spin_Heart.png|link=Spinning_heart|20px]]  ×{{{heart}}} }} |
|}}
|- style="vertical-align: top"
{{!}} colspan="2" style="padding:0" {{!}}
{{{!}} 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;" {{!}} Found In
{{!}}-
{{!}} colspan="2" {{!}} [[File:Photo {{{file-name}}}.png|300px|center]]
{{!}}}
|}}
|}
|}
{{#ifeq:{{NAMESPACENUMBER}}|0|
{{#ifeq:{{NAMESPACENUMBER}}|0|
[[Category:Courses]]}}
[[Category:Objects]]}}
</includeonly><noinclude><div style="float:right"><pre>{{course_infobox
</includeonly><noinclude><div style="float:right"><pre>{{object_infobox
|title=
|title=
|image=
|image=
|hitbox=
|damage=
|speed=
|tangibility_radius=
|interaction_type=
|surfaces=
|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.
*title &ndash; default pagename, just in case can be changed
*title &ndash; default pagename, just in case can be changed
*hitbox &ndash; should include stats like height, radius, and down offset
*damage &ndash; how much damage the object deals on contact with Mario
*tangibility_radius &ndash; tangibility radius of the object
*interaction_type &ndash; interaction type of the object
*surfaces &ndash; surfaces type of the object
*related &ndash; similar objects
*found_in &ndash; which course the object is found in.
*expand &ndash; for collapsing the "found in" and "related" lists when they are long. Activate this by writing "expandable" (it is "noexpandable" by default).
<br clear="all"> [[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
<br clear="all"> [[Category:Infobox templates|{{PAGENAME}}]]</noinclude>