Template:Object infobox: Difference between revisions

m
no edit summary
(=)
mNo edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 4: Line 4:
{{!}}-  
{{!}}-  
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{image}}}]]
{{!}} colspan=2 style="text-align:center;" {{!}} [[File:{{{image}}}]]
}}
|-
{{#if: {{{gallery|}}} |
{{!}}-
{{!}} colspan=2 style="text-align:center;" {{!}} {{{gallery}}}
}}
}}
|-
|-
Line 9: Line 14:
|}}
|}}
|-
|-
{{#if:{{{hitbox_type|}}}|{{!}}-
{{!}} '''[[Hitbox]]'''
{{!}} '''[[Hitbox]]'''
{{!}}
{{!}}
Line 38: Line 42:
{{#if:{{{interaction_type|}}}|
{{#if:{{{interaction_type|}}}|
{{!}} '''[[Interaction Type|Interaction type]]'''  
{{!}} '''[[Interaction Type|Interaction type]]'''  
{{!!}} [[Interaction Type#{{{interaction_type}}}|{{{interaction_type}}}]]
{{!!}}   {{#ifeq: None | {{{interaction_type}}} | {{{interaction_type}}} | [[Interaction Type#{{{interaction_type}}}|{{{interaction_type}}}]]}}
{{!}}-}}
{{!}}-}}
|-  
|-  
Line 96: 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_type &ndash; Set to N/A for no collision, surface for objects with surfaces, or cylinder for cylindrical hitboxes.
*hitbox_type &ndash; Set to N/A for no collision, surface for objects with surfaces, or cylinder for cylindrical hitboxes.