Template:Object infobox 2: Difference between revisions
Jump to navigation
Jump to search
(To prevent completely breaking everything, creating a temporary sandbox template that I will be redoing. This template is going to be based almost entirely off of what the code dictates.) |
(Adding some constants, WIP) |
||
Line 3: | Line 3: | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{image}}}]] | {{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{image}}}|300px|]] | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{group|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Technical Constants</span>''' | ||
|}} | |}} | ||
|- | |- | ||
{{!}} ''' | {{#if: {{{group|}}} | | ||
{{!}} | {{!}} '''Object Group''' {{!!}} [[{{{group}}}]] | ||
{{!}}-}} | |||
|- | |||
{{#if:{{{gravity|}}}{{{friction|}}}{{{buoyancy|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Physical Constants</span>''' | |||
}} | |||
|}} | |}} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{gravity|}}} | | ||
{{!}} ''' | {{!}} '''Gravity''' {{!!}} [[{{{gravity}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
|- | |- | ||
{{#if:{{{ | {{#if: {{{friction|}}} | | ||
{{!}} ''' | {{!}} '''Friction''' {{!!}} [[{{{friction}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
|- | |- | ||
{{#if:{{{ | {{#if: {{{buoyancy|}}} | | ||
{{!}} ''' | {{!}} '''Buoyancy''' {{!!}} [[{{{buoyancy}}}]] | ||
{{!!}} [[ | |||
{{!}}-}} | {{!}}-}} | ||
|- | |- | ||
|}{{#ifeq:{{NAMESPACENUMBER}}|0| | |}{{#ifeq:{{NAMESPACENUMBER}}|0| | ||
[[Category:Objects]]}}</includeonly> | [[Category:Objects]]}}</includeonly> | ||
<noinclude> | <noinclude><div style="float:right"><pre>{{object_infobox | ||
<div style="float:right"><pre>{{object_infobox | |||
|title= | |title= | ||
|image= | |image= |
Revision as of 18:11, 18 March 2019
{{object_infobox |title= |image= |hitbox_type= |hitbox_radius= |hitbox_height= |hitbox_down= |damage= |speed= |tangibility_radius= |interaction_type= |surfaces= |related= |found_in= |expand= }}
- image – an image. Must use
{{!}}
for a|
break symbol in image syntax. - title – default pagename, just in case can be changed
- hitbox_type – Set to N/A for no collision, surface for objects with surfaces, or cylinder for cylindrical hitboxes.
- hitbox_radius, hitbox_height, hitbox_down – stats like height, radius, and down offset.
- damage – how much damage the object deals on contact with Mario
- damage_hatless – how much damage the object deals if Mario doesn't have his hat
- tangibility_radius – tangibility radius of the object
- interaction_type – interaction type of the object
- surfaces – surfaces type of the object
- related – similar objects
- found_in – which course the object is found in.
- expand – for collapsing the "found in" and "related" lists when they are long. Activate this by writing "expandable" (it is "noexpandable" by default).