Template:CharacterBob: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Bringing this in line with other Bob templates.) |
||
Line 1: | Line 1: | ||
<includeonly>{| | <includeonly>{{BobTable|width=262px|border={{{border}}}|content= | ||
{{BobRow|headline=y|align=center|bgcolor={{{border}}}|textcolor={{{color|#fff}}}|title={{#if: {{{title|}}} | {{{title}}} | {{SUBPAGENAME}} }} }} | |||
| | {{ #if: {{{noimg|}}} | | {{BobRow|headline=y|align=center|title= | ||
| | {{#ifeq:{{{bobimg|}}}|IMAGE_NAME.png| Incompetent template use! [[Category:{{namespace detect|main=Missing box art}}]] | | ||
| | {{imageexists | ||
{{#if:{{{ | | file = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}-title.png }} | ||
{{ | | width = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }} | ||
{{ | | class = {{#if: {{{imgclass|}}} | {{{imgclass}}} | }} | ||
}} | | caption= {{#if: {{{imgcap|}}} | {{{imgcap}}} | }} | ||
| | }}}}}}}} | ||
{{#if:{{{ | {{#if: {{{name|}}} | {{BobRow|align=left|Full name:|{{{name}}}}} | }} | ||
{{ | {{#if: {{{species|}}} | {{BobRow|align=left|Species:|{{{species}}}}} | }} | ||
{{ | {{#if: {{{firstappearance|}}} | {{BobRow|align=left|First appearance:|{{{firstappearance}}}}} | }} | ||
}} | {{#if: {{{lastappearance|}}} | {{BobRow|align=left|Latest appearance:|{{{lastappearance}}}}} | }} | ||
}}</includeonly><noinclude> | |||
{{#if:{{{ | |||
{{ | |||
{{ | |||
}} | |||
| | |||
{{#if:{{{ | |||
{{ | |||
{{ | |||
}} | |||
{{character infobox | {{character infobox | ||
|title=Hector | |title=Hector | ||
| | |border=#888 | ||
| | |bobimg=Render_England_Seaside_Costume_Swimmer_Boy_Front.png | ||
|name=Hector N.A.O.M.I | |||
|species=Funny fella | |species=Funny fella | ||
| | |firstappearance=Yesterday | ||
| | |lastappearance=Tomorrow | ||
}} | }} | ||
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 | ||
| | |border=#888 | ||
| | |bobimg=Render_England_Seaside_Costume_Swimmer_Boy_Front.png | ||
|species= | |name=Hector N.A.O.M.I | ||
| | |species=Funny fella | ||
| | |firstappearance=Yesterday | ||
|lastappearance=Tomorrow | |||
}} | }} | ||
</pre> | </pre> | ||
[[Category: | [[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 }}