Template:CharacterBob: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
mNo edit summary
(Bringing this in line with other Bob templates.)
Line 1: Line 1:
<includeonly>{| id="character" class="infobox" style="width:300px"
<includeonly>{{BobTable|width=262px|border={{{border}}}|content=
! colspan="2" style="font-size:125%" | {{{title|{{PAGENAME}}}}}
{{BobRow|headline=y|align=center|bgcolor={{{border}}}|textcolor={{{color|#fff}}}|title={{#if: {{{title|}}} | {{{title}}} | {{SUBPAGENAME}} }} }}
|-
{{ #if: {{{noimg|}}} | | {{BobRow|headline=y|align=center|title=
| colspan="2" style="text-align:center" | {{{image|}}}
{{#ifeq:{{{bobimg|}}}|IMAGE_NAME.png| Incompetent template use! [[Category:{{namespace detect|main=Missing box art}}]] |
|-
{{imageexists
{{#if:{{{full_name|}}}|
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}-title.png }}
{{!}} '''Full name'''
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
{{!}} {{{full_name}}}
| class  = {{#if: {{{imgclass|}}} | {{{imgclass}}} | }}
}}
| caption= {{#if: {{{imgcap|}}} | {{{imgcap}}} | }}
|-
}}}}}}}}
{{#if:{{{species|}}}|
{{#if: {{{name|}}} | {{BobRow|align=left|Full name:|{{{name}}}}} | }}
{{!}} '''Species'''
{{#if: {{{species|}}} | {{BobRow|align=left|Species:|{{{species}}}}} | }}
{{!}} {{{species}}}
{{#if: {{{firstappearance|}}} | {{BobRow|align=left|First appearance:|{{{firstappearance}}}}} | }}
}}
{{#if: {{{lastappearance|}}} | {{BobRow|align=left|Latest appearance:|{{{lastappearance}}}}} | }}
|-
}}</includeonly><noinclude>
{{#if:{{{first_appearance|}}}|
{{!}} '''First appearance'''
{{!}} {{{first_appearance}}}
}}
|-
{{#if:{{{latest_appearance|}}}|
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
}}
|}</includeonly><noinclude>
 
{{character infobox
{{character infobox
|title=Hector
|title=Hector
|image=[[File:Render_England_Seaside_Costume_Swimmer_Boy_Front.png]]
|border=#888
|full_name=Hector N.A.O.M.I
|bobimg=Render_England_Seaside_Costume_Swimmer_Boy_Front.png
|name=Hector N.A.O.M.I
|species=Funny fella
|species=Funny fella
|first_appearance=Yesterday
|firstappearance=Yesterday
|latest_appearance=Tomorrow
|lastappearance=Tomorrow
}}
}}
Stolen from Mario wiki
Use this to provide a brief summary of information about characters.
== Usage ==
==Usage==
<pre>{{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.
}}</pre>
 
The example on the right was made with the following code:
<pre>
<pre>
{{character infobox
{{character infobox
|title=
|title=Hector
|image=
|border=#888
|full_name=
|bobimg=Render_England_Seaside_Costume_Swimmer_Boy_Front.png
|species=
|name=Hector N.A.O.M.I
|first_appearance=
|species=Funny fella
|latest_appearance=
|firstappearance=Yesterday
|lastappearance=Tomorrow
}}
}}
</pre>
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Breakout box templates]]</noinclude>

Revision as of 14:04, 20 February 2024

Template:Character infobox 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:

{{character infobox
|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
}}