Template:GadgetBob: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
(A new bob variant appears!)
 
mNo edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{|cellpadding="0.7" cellspacing="0" width="220px" class="breakout" style="margin-left: 15px; {{{#if: {{{border|}}} | border: 2px solid {{{border}}}; | }}}"
<includeonly>{{BobTable|width=262px|border={{{border}}}|content=
| style="text-align: center;" |
{{BobRow|headline=y|align=center|bgcolor={{{border}}}|textcolor={{{color|#fff}}}|title={{#if: {{{title|}}} | {{{title}}} | {{SUBPAGENAME}} }} }}
|-class="breakouttitle" style="color:#fff; {{{#if: {{{border|}}} | background:{{{border}}} | }}}"
{{ #if: {{{noimg|}}} | | {{BobRow|headline=y|align=center|title=
!colspan="2" {{#if: {{{color|}}}|style="color:{{{color}}};" | }} |''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}''
{{imageexists
|-
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}_Icon.png }}
|colspan="2" style="padding:0.5em; line-height: 1.5em; padding-left: 5px; text-align: center;" |
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
{{#ifeq:{{{bobimg|}}}|IMAGE_NAME.png| Incompetent template use! [[Category:{{namespace detect|main=Missing box art}}]] |  
| class  = {{#if: {{{imgclass|}}} | {{{imgclass}}} | }}
{{ #if: {{{noimg|}}} |  | {{imageexists
| caption= {{#if: {{{imgcap|}}} | {{{imgcap}}} | Popit Icon }}  
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAMEE}}-title.png }}
}}}}}}
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
{{#if: {{{game|}}} | {{BobRow|align=left|Game:|{{{game}}}}} | }}
| caption= Popit Icon
{{#if: {{{games|}}} | {{BobRow|align=left|Games:|{{{games}}}}} | }}
}}}}}}
{{#if: {{{type|}}} | {{BobRow|align=left|Type:|{{{type}}}}} | }}
|-
{{#if: {{{category|}}} | {{BobRow|align=left|Category:|{{{category}}}}} | }}
!style="text-align:left; width:42%;"|{{#if: {{{game|}}} |Game: | }}
{{#if: {{{ingamecat|}}} | {{BobRow|align=left|In-Game Category:|{{{ingamecat}}}}} | }}
|{{#if: {{{game|}}} |{{{game}}} | }}
{{#if: {{{inputs|}}} | {{BobRow|align=left|Inputs:|{{{inputs}}}}} | }}
|-
{{#if: {{{outputs|}}} | {{BobRow|align=left|Outputs:|{{{outputs}}}}} | }}
!style="text-align:left; width:42%;"|{{#if: {{{games|}}} |Games: | }}
{{#if: {{{obtained|}}} | {{BobRow|align=left|Obtained from:|{{{obtained}}}}} | }}
|{{#if: {{{games|}}} |{{{games}}} | }}
}}<!--
|-
AUTO-CATEGORIZATION
!style="text-align:left; width:42%;"|{{#if: {{{type|}}} |Type: | }}
-->{{#if: {{{nocat|}}} | | [[Category:{{{category}}}]] }}</includeonly><noinclude>
|{{#if: {{{type|}}} |{{{type}}} | }}
|-
!style="text-align:left; width:42%;"|{{#if: {{{category|}}} |Category: | }}
|{{#if: {{{category|}}} |{{{category}}} | }}
|-
!style="text-align:left; width:42%;"|{{#if: {{{inputs|}}} |Inputs: | }}
|{{#if: {{{inputs|}}} |{{{inputs}}} | }}
|-
!style="text-align:left; width:42%;"|{{#if: {{{outputs|}}} |Outputs: | }}
|{{#if: {{{outputs|}}} |{{{outputs}}} | }}
|-
!style="text-align:left; width:42%;"|{{#if: {{{obtained|}}} |Obtained from: | }}
|{{#if: {{{obtained|}}} |{{{obtained}}} | }}
|-
|}</includeonly><noinclude>
{{GadgetBob
{{GadgetBob
| border= #2BC416
| border= #2BC416
| bobimg= LBP2_Motion_Recorder.png
| bobimg= Gadget_Mover_Motion_Recorder_Icon.png
| title= Motion Recorder
| title= Motion Recorder
| game=[[LittleBigPlanet 2]]
| game=[[LittleBigPlanet 2]]
| type= Gadgets
| type= Gadgets
| category= Movers
| category= Movers
| ingamecat=Movers
| inputs= 1
| inputs= 1
| outputs= 3
| outputs= 3
| obtained= [[LittleBigPlanet 2 Move Pack|DLC]]
| obtained= [[LittleBigPlanet 2 Move Pack|DLC]]
| nocat=y
}}
}}
Use this to provide a brief summary of information about tools, gadgets and any other special objects that live in the Tools Bag.
Use this to provide a brief summary of information about tools, gadgets and any other special objects that live in the Tools Bag.
==Usage==
==Usage==
<pre>{{GadgetBob
<pre>{{GadgetBob
| noimg=     Use this to omit the title screen and placeholder image. Generally this shouldn't be used outside of specific circumstances, i.e. no Popit icon exists.
| noimg= Use this to omit the bob 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.
| bobimg= Image filename (e.g. Placeholder.png). This is typically the icon that gets displayed in the Popit menu.
| imgwidth= Image width, in pixels.
| imgwidth= Image width, in pixels.
| imgcap=   Description for the bob's image that will appear when hovering the mouse cursor over it.
| 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!
| 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.
| 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 gadget's name. Only necessary if the articles name has a disambiguation term, e.g. "Page Title (gadget)"
| title= The gadget's name. Only necessary if the articles name has a disambiguation term, e.g. "Page Title (gadget)"
| game=     The game in which this gadget appears. Use this if the item only appears in one game.
| game= The game in which this gadget 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.
| type=     Specify what kind of tool the item is (gadget, gameplay object, connector, tool)
| type= Specify what kind of tool the item is (gadget, gameplay object, connector, tool)
| category= The default category for the item.
| category= What type of object is this (sensor, logic, etc)
| inputs=   Number of inputs on the item, if any.
| inputs= Number of inputs on the item, if any.
| outputs=   Number of outputs on the item, if any.
| outputs= Number of outputs on the item, if any.
| obtained= Where the gadget is unlocked or obtained from. If the gadget is available from the start, put "Start". Omit this argument if the item unobtainable through normal means.
| obtained= Where the gadget is unlocked or obtained from. If the gadget is available from the start, put "Start". Omit this argument if the item unobtainable through normal means.
| nocat= Use this to disable the auto-categorization. Otherwise, the page will automatically be categorized based on the "category" field.
}}</pre>
}}</pre>
[[Category:Templates]]</noinclude>
[[Category:Breakout box templates]]</noinclude>

Latest revision as of 09:57, 6 July 2024

Motion Recorder
Popit Icon
Game: LittleBigPlanet 2
Type: Gadgets
Category: Movers
In-Game Category: Movers
Inputs: 1
Outputs: 3
Obtained from: DLC

Use this to provide a brief summary of information about tools, gadgets and any other special objects that live in the Tools Bag.

Usage

{{GadgetBob
| noimg=		Use this to omit the bob 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 gadget's name. Only necessary if the articles name has a disambiguation term, e.g. "Page Title (gadget)"
| game=			The game in which this gadget 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.
| type=			Specify what kind of tool the item is (gadget, gameplay object, connector, tool)
| category=		What type of object is this (sensor, logic, etc)
| inputs=		Number of inputs on the item, if any.
| outputs=		Number of outputs on the item, if any.
| obtained=		Where the gadget is unlocked or obtained from. If the gadget is available from the start, put "Start". Omit this argument if the item unobtainable through normal means.
| nocat=		Use this to disable the auto-categorization. Otherwise, the page will automatically be categorized based on the "category" field.
}}