Template:Object infobox 2: Difference between revisions

Jump to navigation Jump to search
Adding more constants, more to come
(Adding some constants, WIP)
(Adding more constants, more to come)
Line 3: Line 3:
{{#if: {{{image|}}} |
{{#if: {{{image|}}} |
{{!}}-  
{{!}}-  
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{image}}}|300px|]]
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{image}}}|200px|]]
}}
}}
|-
|-
Line 10: Line 10:
|-
|-
{{#if: {{{group|}}} |
{{#if: {{{group|}}} |
{{!}} '''Object Group''' {{!!}} [[{{{group}}}]]
{{!}} '''Object Group''' {{!!}} {{{group}}}
{{!}}-}}
{{!}}-}}
|-
|-
Line 17: Line 17:
|-
|-
{{#if: {{{gravity|}}} |
{{#if: {{{gravity|}}} |
{{!}} '''Gravity''' {{!!}} [[{{{gravity}}}]]
{{!}} '''Gravity''' {{!!}} {{{gravity}}}
{{!}}-}}
{{!}}-}}
|-
|-
{{#if: {{{friction|}}} |
{{#if: {{{friction|}}} |
{{!}} '''Friction''' {{!!}} [[{{{friction}}}]]
{{!}} '''Friction''' {{!!}} {{{friction}}}
{{!}}-}}
{{!}}-}}
|-
|-
{{#if: {{{buoyancy|}}} |
{{#if: {{{buoyancy|}}} |
{{!}} '''Buoyancy''' {{!!}} [[{{{buoyancy}}}]]
{{!}} '''Buoyancy''' {{!!}} {{{buoyancy}}}
{{!}}-}}
|-
{{#if:{{{interaction|}}}{{{damage|}}}{{{health|}}}{{{radius|}}}{{{height|}}}{{{offset|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Hitbox</span>'''
|}}
|-
{{#if: {{{interaction|}}} |
{{!}} '''Interaction Type''' {{!!}} {{{interaction}}}
{{!}}-}}
|-
{{#if: {{{damage|}}} |
{{!}} '''Damage''' {{!!}} {{{damage}}}
{{!}}-}}
|-
{{#if: {{{health|}}} |
{{!}} '''Health''' {{!!}} {{{health}}}
{{!}}-}}
|-
{{#if: {{{radius|}}} |
{{!}} '''Radius''' {{!!}} {{{radius}}}
{{!}}-}}
|-
{{#if: {{{height|}}} |
{{!}} '''Height''' {{!!}} {{{height}}}
{{!}}-}}
|-
{{#if: {{{offset|}}} |
{{!}} '''Offset''' {{!!}} {{{offset}}}
{{!}}-}}
{{!}}-}}
|-
|-
|}{{#ifeq:{{NAMESPACENUMBER}}|0|
|}{{#ifeq:{{NAMESPACENUMBER}}|0|
[[Category:Objects]]}}</includeonly>
[[Category:Objects]]}}</includeonly>
<noinclude><div style="float:right"><pre>{{object_infobox
<noinclude>{{Object_infobox_2
|title=
|title=Boulder
|image=
|image=STROOP- Rolling Rock.png
|hitbox_type=
|group=General Actor
|hitbox_radius=
|gravity=8
|hitbox_height=
|friction=0.999
|hitbox_down=
|buoyancy=2
|damage=
|interaction=Hurtbox 1
|speed=
|damage=3
|tangibility_radius=
|health=0
|interaction_type=
|radius=315
|surfaces=
|height=525
|related=
|offset=0
|found_in=
}}
|expand=
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
}}</pre></div>
*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
*hitbox_type &ndash; Set to N/A for no collision, surface for objects with surfaces, or cylinder for cylindrical hitboxes.
*hitbox_radius, hitbox_height, hitbox_down &ndash; stats like height, radius, and down offset.
*damage &ndash; how much damage the object deals on contact with Mario
*damage_hatless &ndash; how much damage the object deals if Mario doesn't have his hat
*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>

Navigation menu