Template:Object infobox: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(35 intermediate revisions by 5 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}}}]]
}}
|-
|-
|align="center" colspan="2" | {{{image|}}}
{{#if: {{{gallery|}}} |
|- style="vertical-align: top"
{{!}}-  
{{#if:{{{Environment|}}}|{{!}}- style="vertical-align: top;"
{{!}} colspan=2 style="text-align:center;" {{!}} {{{gallery}}}
{{!}} '''Environment'''
}}
{{!}} {{{environment}}}
|-
{{#if:{{{hitbox_type|}}}{{{interaction_type|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Hitbox Info</span>'''
|}}
|}}
{{#if:{{{setting|}}}|{{!}}- style="vertical-align: top;"
|-
{{!}} '''Setting'''
{{!}} '''[[Hitbox]]'''
{{!}} {{{setting}}}
{{!}}
{{#switch: {{{hitbox_type}}}
| N/A = No collision with Mario
| surface = Collision involves triangles instead of a cylindrical hitbox
| cylinder = cylinder with radius of {{{hitbox_radius}}} and height of {{{hitbox_height}}}{{#if: {{{hitbox_down|}}}|, offset down {{{hitbox_down}}} units|, not offset down
| cylinder with radius of {{{hitbox_radius}}} and height of {{{hitbox_height}}}{{#if: {{{hitbox_down|}}}|, offset down {{{hitbox_down}}} units|, not offset down}}
}}
|}}
|}}
{{#if:{{{water|}}}|{{!}}- style="vertical-align: top;"
|-
{{!}} '''Water'''
{{#if: {{{damage|}}} |
{{!}} {{{water}}}
{{!}} '''[[HP|Damage]]''' {{!!}} {{{damage}}}
|}}
{{!}}-}}
{{#if:{{{water|}}}|{{!}}- style="vertical-align: top;"
|-
{{!}} '''Water'''
{{#if:{{{damage_hatless|}}}|
{{!}} {{{water}}}
{{!}} '''[[Hat|Damage without hat]]''' {{!!}} {{{damage_hatless}}}
|}}
{{!}}-}}
|- style="vertical-align: top"
|-
| {{#if: {{{yellow-coins|red-coins|blue-coins|}}}
{{#if:{{{speed|}}}|
{{!}} '''Speed'''{{!!}} {{{speed}}}
{{!}}-}}
|-
{{#if:{{{tangibility_radius|}}}|
{{!}} '''[[Tangibility Radius|Tangibility radius]]''' {{!!}} {{{tangibility_radius}}}
{{!}}-}}
|-
{{#if:{{{interaction_type|}}}|
{{!}} '''[[Interaction Type|Interaction type]]'''  
{{!!}}  {{#ifeq: None | {{{interaction_type}}} | {{{interaction_type}}} | [[Interaction Type#{{{interaction_type}}}|{{{interaction_type}}}]]}}
{{!}}-}}
|-  
{{#if:{{{surfaces|}}}|
{{!}} '''[[Surface]]s''' {{!!}} {{{surfaces}}}
{{!}}-}}
|-
{{#if:{{{related|}}}|
{{!}} colspan="2" style="padding:0" {{!}}
{{!}} 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"
{{{!}} 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="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Related
{{!}}-
{{!}}-
{{!}} 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}}} | }}
{{!}} style="padding:0 2px;" {{!}} {{{related|}}}
{{!}}}
{{!}}}
|}}
{{#if:{{{star|heart}}}|{{!}}- style="vertical-align: top;"
{{!}} '''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}}} }} |
|}}
|}}
|- style="vertical-align: top"
|- style="vertical-align: top"
{{#if:{{{found_in|}}}|
{{!}} colspan="2" style="padding:0" {{!}}
{{!}} 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"
{{{!}} 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
! style="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Found In
{{!}}-
{{!}}-
{{!}} colspan="2" {{!}} [[File:Photo {{{file-name}}}.png|300px|center]]
{{!}} style="padding:0 2px;" {{!}} {{{found_in}}}
{{!}}}
{{!}}}
|}}
|}}
|}
|}{{#ifeq:{{NAMESPACENUMBER}}|0|
{{#ifeq:{{NAMESPACENUMBER}}|0|
[[Category:Objects]]}}</includeonly>
[[Category:Objects]]}}
<noinclude>{{object_infobox
</includeonly><noinclude><div style="float:right"><pre>{{object_infobox
|title= Yellow Coin
|image= Yellow_Coin.gif
|hitbox_type= cylinder
|hitbox_radius= 100
|hitbox_height= 64
|hitbox_down= 0
|speed= Dependent on [[RNG]]. Varies based on how it was spawned.
|tangibility_radius= 1000
|interaction_type= Coin
|surfaces=
|related= [[Red Coin|Red Coins]] <br> [[Blue Coin|Blue Coins]]
|found_in= [[All courses]], [[The Castle]]
|expand=
}}
<div style="float:right"><pre>{{object_infobox
|title=
|title=
|image=
|image=
|hitbox=
|hitbox_type=
|hitbox_radius=
|hitbox_height=
|hitbox_down=
|damage=
|damage=
|speed=
|speed=
Line 58: Line 100:
}}</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.
*gallery &ndash; a <code><gallery></code> tag
*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
*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 &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
*tangibility_radius &ndash; tangibility radius of the object
*interaction_type &ndash; interaction type of the object
*interaction_type &ndash; interaction type of the object

Latest revision as of 20:22, 20 November 2020


Yellow Coin
Yellow Coin.gif
Hitbox Info
Hitbox

cylinder with radius of 100 and height of 64, offset down 0 units

Speed Dependent on RNG. Varies based on how it was spawned.
Tangibility radius 1000
Interaction type Coin
Related
Red Coins
Blue Coins
Found In
All courses, The Castle
{{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.
  • gallery – a <gallery> tag
  • 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).