Template:FunctionBob: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
(Changed "| dev=" to use checkmarks and crosses instead of "Yes" and "No")
m (Trimmed unnecesary code)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{BobRow|headline=y|align=center|bgcolor={{{border}}}|textcolor={{{color|#fff}}}|title={{#if: {{{title|}}} | {{{title}}} | {{SUBPAGENAME}} }} }}
{{BobRow|headline=y|align=center|bgcolor={{{border}}}|textcolor={{{color|#fff}}}|title={{#if: {{{title|}}} | {{{title}}} | {{SUBPAGENAME}} }} }}
{{ #if: {{{noimg|}}} |  | {{BobRow|headline=y|align=center|title=
{{ #if: {{{noimg|}}} |  | {{BobRow|headline=y|align=center|title=
{{#ifeq:{{{bobimg|}}}|IMAGE_NAME.png| Incompetent template use! [[Category:{{namespace detect|main=Missing box art}}]] |
{{imageexists
{{imageexists
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}-title.png }}
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}-title.png }}
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
| class  = {{#if: {{{imgclass|}}} | {{{imgclass}}} | }}
| class  = {{#if: {{{imgclass|}}} | {{{imgclass}}} | invert }}
| caption= {{#if: {{{imgcap|}}} | {{{imgcap}}} | Popit Function }}
| caption= {{#if: {{{imgcap|}}} | {{{imgcap}}} | Popit Function }}
}}}}}}}}
}}}}}}
{{#if: {{{dev|}}} |
{{#if: {{{dev|}}} |
{{BobRow|align=left|Developer Exclusive:|{{#switch:{{lc:{{{dev}}}}}
{{BobRow|align=left|Developer Exclusive:|{{#switch:{{lc:{{{dev}}}}}
Line 32: Line 31:
==Usage==
==Usage==
<pre>{{FunctionBob
<pre>{{FunctionBob
| 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.
Line 42: Line 41:
| games= Use this instead of 'game' if the function appears in more than one game. Game links should be separted by commas.
| games= Use this instead of 'game' if the function appears in more than one game. Game links should be separted by commas.
| type= Specify what kind of function it is (sticker, costume, material, pod, etc)
| type= Specify what kind of function it is (sticker, costume, material, pod, etc)
| dev= If the item is a Developer tool.
| dev= If the item is a Developer tool.
}}</pre>
}}</pre>
[[Category:Breakout box templates]]</noinclude>
[[Category:Breakout box templates]]</noinclude>

Latest revision as of 10:01, 6 July 2024

Sticker Scrubber
Popit Function
Developer Exclusive: Yes
Type: Sticker Tool
Games: LittleBigPlanet 2 (DEV),
LittleBigPlanet PS Vita, LittleBigPlanet 3

Use this to provide a brief summary of information about popit functions and other functions.

Usage

{{FunctionBob
| 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 function's name. Only necessary if the articles name has a disambiguation term, e.g. "Page Title (function)"
| game=		The game in which this function appears. Use this if the item only appears in one game.
| games=	Use this instead of 'game' if the function appears in more than one game. Game links should be separted by commas.
| type=		Specify what kind of function it is (sticker, costume, material, pod, etc)
| dev=		If the item is a Developer tool.
}}