Template:MaterialBob: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
(Made something for materials.)
 
(Dark mode support)
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
}}}}}}}}
}}}}}}}}
{{#if: {{{game|}}} | {{BobRow|align=left|Game:|{{{game}}}}} | }}
{{#if: {{{game|}}} | {{BobRow|align=left|Game:|{{{game}}}}} | }}
{{#if: {{{games|}}} | {{BobRow|align=left|Games:|{{{games}}}}} | }}
{{#if: {{{density|}}} | {{BobRow|align=left|Density:|{{{density}}}}} | }}
{{#if: {{{density|}}} | {{BobRow|align=left|Density:|{{{density}}}}} | }}
{{#if: {{{traction|}}} | {{BobRow|align=left|Traction:|{{{traction}}}}} | }}
{{#if: {{{traction|}}} | {{BobRow|align=left|Traction:|{{{traction}}}}} | }}
Line 18: Line 19:
{{#if: {{{explodable|}}} |
{{#if: {{{explodable|}}} |
{{BobRow|align=left|[[Explosives|Damaged by Explosives]]:|{{#switch:{{lc:{{{explodable}}}}}
{{BobRow|align=left|[[Explosives|Damaged by Explosives]]:|{{#switch:{{lc:{{{explodable}}}}}
|yes=[[File:Tweak_GenericSetting_Yes.png|22px|link=|Yes]]
|yes=[[File:Tweak_GenericSetting_Yes.png|22px|class=invert|link=|Yes]]
|y=[[File:Tweak_GenericSetting_Yes.png|22px|link=|Yes]]
|y=[[File:Tweak_GenericSetting_Yes.png|22px|class=invert|link=|Yes]]
|no=[[File:Tweak_GenericSetting_No.png|22px|link=|No]]
|no=[[File:Tweak_GenericSetting_No.png|22px|class=invert|link=|No]]
|n=[[File:Tweak_GenericSetting_No.png|22px|link=|No]]
|n=[[File:Tweak_GenericSetting_No.png|22px|class=invert|link=|No]]
|#default={{{explodable}}}
|#default={{{explodable}}}
}} }} | }}
}} }} | }}
{{#if: {{{grabbable|}}} | {{BobRow|align=left|Grabbable:|{{#switch:{{lc:{{{grabbable}}}}}
{{#if: {{{grabbable|}}} | {{BobRow|align=left|Grabbable:|{{#switch:{{lc:{{{grabbable}}}}}
|yes=[[File:Tweak_GenericSetting_Yes.png|22px|link=|Yes]]
|yes=[[File:Tweak_GenericSetting_Yes.png|22px|class=invert|link=|Yes]]
|y=[[File:Tweak_GenericSetting_Yes.png|22px|link=|Yes]]
|y=[[File:Tweak_GenericSetting_Yes.png|22px|class=invert|link=|Yes]]
|no=[[File:Tweak_GenericSetting_No.png|22px|link=|No]]
|no=[[File:Tweak_GenericSetting_No.png|22px|class=invert|link=|No]]
|n=[[File:Tweak_GenericSetting_No.png|22px|link=|No]]
|n=[[File:Tweak_GenericSetting_No.png|22px|class=invert|link=|No]]
|#default={{{grabbable}}}
|#default={{{grabbable}}}
}} }} | }}
}} }} | }}
{{#if: {{{climbable|}}} | {{BobRow|align=left|Climbable:|{{#switch:{{lc:{{{climbable}}}}}
{{#if: {{{climbable|}}} | {{BobRow|align=left|Climbable:|{{#switch:{{lc:{{{climbable}}}}}
|yes=[[File:Tweak_GenericSetting_Yes.png|22px|link=|Yes]]
|yes=[[File:Tweak_GenericSetting_Yes.png|22px|class=invert|link=|Yes]]
|y=[[File:Tweak_GenericSetting_Yes.png|22px|link=|Yes]]
|y=[[File:Tweak_GenericSetting_Yes.png|22px|class=invert|link=|Yes]]
|no=[[File:Tweak_GenericSetting_No.png|22px|link=|No]]
|no=[[File:Tweak_GenericSetting_No.png|22px|class=invert|link=|No]]
|n=[[File:Tweak_GenericSetting_No.png|22px|link=|No]]
|n=[[File:Tweak_GenericSetting_No.png|22px|class=invert|link=|No]]
|#default={{{climbable}}}
|#default={{{climbable}}}
}} }} | }}
}} }} | }}
{{#if: {{{solid|}}} | {{BobRow|align=left|Collidable:|{{#switch:{{lc:{{{solid}}}}}
{{#if: {{{solid|}}} | {{BobRow|align=left|Collidable:|{{#switch:{{lc:{{{solid}}}}}
|yes=[[File:Tweak_GenericSetting_Yes.png|22px|link=|Yes]]
|yes=[[File:Tweak_GenericSetting_Yes.png|22px|class=invert|link=|Yes]]
|y=[[File:Tweak_GenericSetting_Yes.png|22px|link=|Yes]]
|y=[[File:Tweak_GenericSetting_Yes.png|22px|class=invert|link=|Yes]]
|no=[[File:Tweak_GenericSetting_No.png|22px|link=|No]]
|no=[[File:Tweak_GenericSetting_No.png|22px|class=invert|link=|No]]
|n=[[File:Tweak_GenericSetting_No.png|22px|link=|No]]
|n=[[File:Tweak_GenericSetting_No.png|22px|class=invert|link=|No]]
|#default={{{solid}}}
|#default={{{solid}}}
}} }} | }}
}} }} | }}
Line 74: Line 75:
| game= The game in which this material appears. Use this if the item only appears in one game.
| game= The game in which this material appears. Use this if the item only appears in one game.
| games= Use this instead of 'game' if the item appears in more than one game. Game links should be separted by commas.
| games= Use this instead of 'game' if the item appears in more than one game. Game links should be separted by commas.
| weight= The material's weight.
| density= The material's weight.
| friction= The amount of friction this material has when rubbing against another object
| traction= The amount of friction this material has when rubbing against another object
| bounciness= How bouncy this material is, i.e. how much of its velocity gets redirected when colliding with another object.
| bounciness= How bouncy this material is, i.e. how much of its velocity gets redirected when colliding with another object.
| buoyancy= How buoyant the material is.
| buoyancy= How buoyant the material is.

Latest revision as of 06:18, 20 June 2024

Basic Cardboard
Popit Icon
Game: LittleBigPlanet
Density: 20.0
Traction: 1.0
Restitution: 0.3
Gravity Scale: 1.0
Damaged by Explosives: Yes
Grabbable: No
Climbable: No
Collidable: Yes
Obtained from: Start

Use this to provide a brief summary of a material's physical properties.

Usage

{{MaterialBob
| noimg=		Use this to omit the Popit icon and placeholder image. Generally this shouldn't be used outside of specific circumstances, i.e. no Popit icon exists.
| bobimg=		Image filename (e.g. Placeholder.png). This is typically the icon that gets displayed in the Popit menu.
| imgwidth=		Image width, in pixels.
| imgcap=		Description for the bob's image that will appear when hovering the mouse cursor over it.
| border=		Allows you to change the colour of the border, if you want it to be themed around a certain game. Hope you know your hex colours!
| color=		Change the colour of the bob's heading text. Typical use case would be changing it to black (#000) if the border colour makes the header hard to see.
| title=		The material's name. Only necessary if the articles name has a disambiguation term, e.g. "Page Title (Material)"
| game=			The game in which this material appears. Use this if the item only appears in one game.
| games=		Use this instead of 'game' if the item appears in more than one game. Game links should be separted by commas.
| density=		The material's weight.
| traction=		The amount of friction this material has when rubbing against another object
| bounciness=		How bouncy this material is, i.e. how much of its velocity gets redirected when colliding with another object.
| buoyancy=		How buoyant the material is.
| gravity=		How much gravity affects this material.
| explodable=		Whether or not explosives can cut holes in this material.
| grabbable=		Whether or not Sackthings can grab this material.
| climbable=		Whether or not Sackboy can climb on the front of this material in LittleBigPlanet 3.
| solid=		Whether or not players and objects can collide with this material.
| obtained=		Where the material is unlocked or obtained from. If it's available from the start, put "Start". Omit if it's unobtainable through normal means.
}}