Template:CharacterBob: Difference between revisions
Jump to navigation
Jump to search
Sackinator20 (talk | contribs) (Added nickname and voice actor parameters) |
(Reworked the documentation.) |
||
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 images}}]] | | {{#ifeq:{{{bobimg|}}}|IMAGE_NAME.png| Incompetent template use! [[Category:{{namespace detect|main=Missing character images}}]] | | ||
{{imageexists | {{imageexists | ||
| file = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}.png }} | | file = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}.png }} | ||
Line 14: | Line 14: | ||
{{#if: {{{firstappearance|}}} | {{BobRow|align=left|First appearance:|{{{firstappearance}}}}} | }} | {{#if: {{{firstappearance|}}} | {{BobRow|align=left|First appearance:|{{{firstappearance}}}}} | }} | ||
{{#if: {{{lastappearance|}}} | {{BobRow|align=left|Latest appearance:|{{{lastappearance}}}}} | }} | {{#if: {{{lastappearance|}}} | {{BobRow|align=left|Latest appearance:|{{{lastappearance}}}}} | }} | ||
{{#if: {{{actor|}}} | {{BobRow|align=left| | {{#if: {{{actor|}}} | {{BobRow|align=left|Portrayed by:|{{{actor}}}}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{CharacterBob | {{CharacterBob | ||
Line 29: | Line 29: | ||
Use this to provide a brief summary of information about characters. | Use this to provide a brief summary of information about characters. | ||
==Usage== | ==Usage== | ||
<pre>{{ | <pre> | ||
| noimg= Use this to omit the character render or placeholder image. Generally this shouldn't be used outside of specific circumstances, i.e. no | {{CharacterBob | ||
| noimg= y | |||
| bobimg= | |||
| imgwidth= | |||
| imgcap= | |||
| border= | |||
| color= | |||
| title= | |||
| name= | |||
| nickname= | |||
| species= | |||
| firstappearance= | |||
| lastappearance= | |||
| actor= | |||
}} | |||
</pre> | |||
===Legend=== | |||
* <code>noimg</code>: Use this to omit the character render or placeholder image. Generally this shouldn't be used outside of specific circumstances, i.e. no art exists. | |||
* <code>bobimg</code>: Image filename (e.g. Placeholder.png). This is typically a render of the character (if one exists). | |||
* <code>imgwidth</code>: Image width, in pixels. | |||
* <code>imgcap</code>: Description for the bob's image that will appear when hovering the mouse cursor over it. | |||
* <code>border</code>: 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! | |||
* <code>color</code>: 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. | |||
* <code>title</code>: The character's name, which will appear on the bob's header. This defaults to the page's title; it's only necessary to change this if the article's name has a disambiguation term, e.g. "Toggle (character)" | |||
* <code>name</code>: The character's full name. | |||
* <code>nickname</code>: Alternate names for the character, such as different formatting or nicknames. | |||
* <code>species</code>: Which kind of creature is this character meant to be? | |||
* <code>firstappearance</code>: The first official game or piece of media this character appeared in. | |||
* <code>lastappearance</code>: The last official game or piece of media this character was featured in. | |||
* <code>actor</code>: The English voice actor who portrayed this character, as listed in the credits. If this character has no voice, or speaks with a non-human Gibberish Voice, omit. | |||
The example on | The example on this page was made with the following code: | ||
<pre> | <pre> | ||
{{CharacterBob | {{CharacterBob |
Revision as of 05:45, 21 February 2024
Hector | |
---|---|
Full name: | Hector N.A.O.M.I |
Other names: | Hector Naomi, Big Stinky Poopoo Head (by a mean ol' bully) |
Species: | Funny fella |
First appearance: | Yesterday |
Latest appearance: | Tomorrow |
Portrayed by: | Steven Isbell |
Use this to provide a brief summary of information about characters.
Usage
{{CharacterBob | noimg= y | bobimg= | imgwidth= | imgcap= | border= | color= | title= | name= | nickname= | species= | firstappearance= | lastappearance= | actor= }}
Legend
noimg
: Use this to omit the character render or placeholder image. Generally this shouldn't be used outside of specific circumstances, i.e. no art 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, which will appear on the bob's header. This defaults to the page's title; it's only necessary to change this if the article's name has a disambiguation term, e.g. "Toggle (character)"name
: The character's full name.nickname
: Alternate names for the character, such as different formatting or nicknames.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.actor
: The English voice actor who portrayed this character, as listed in the credits. If this character has no voice, or speaks with a non-human Gibberish Voice, omit.
The example on this page 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 |nickname=Hector Naomi, Big Stinky Poopoo Head <small>(by a mean ol' [[User:Sackinator20|bully]])</small> |species=Funny fella |firstappearance=Yesterday |lastappearance=Tomorrow |actor=[[Steven Isbell]] }}