Template:CharacterBob: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
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}}]] |  
{{#ifeq:{{{bobimg|}}}|IMAGE_NAME.png| Incompetent template use! [[Category:{{namespace detect|main=Missing images}}]] |  
{{imageexists
{{imageexists
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}-title.png }}
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}.png }}
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
| class  = {{#if: {{{imgclass|}}} | {{{imgclass}}} | }}
| class  = {{#if: {{{imgclass|}}} | {{{imgclass}}} | }}

Revision as of 05:08, 21 February 2024

Hector
Render England Seaside Costume Swimmer Boy Front.png
Full name: Hector N.A.O.M.I
Species: Funny fella
First appearance: Yesterday
Latest appearance: Tomorrow

Use this to provide a brief summary of information about characters.

Usage

{{GadgetBob
| noimg=			Use this to omit the character render or 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 a render of the character (if one exists).
| 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 character's name. Only necessary if the article's name has a disambiguation term, e.g. "Toggle (character)"
| name=				The character's full name.
| species=			Which kind of creature is this character meant to be?
| firstappearance=	The first official game or piece of media this character appeared in.
| lastappearance=	The last official game or piece of media this character was featured in.
}}

The example on the right was made with the following code:

{{CharacterBob
|title=Hector
|border=#888
|bobimg=Render_England_Seaside_Costume_Swimmer_Boy_Front.png
|name=Hector N.A.O.M.I
|species=Funny fella
|firstappearance=Yesterday
|lastappearance=Tomorrow
}}