Template:LevelBob: Difference between revisions
Jump to navigation
Jump to search
(Rewrote how badge styles work to make it slightly more flexible. Also replaced "nobadge" field with "badgestyle", supporting Adventure and PSP style badges.) |
(Added support for SABA level badges in the "badgestyle" field.) |
||
Line 5: | Line 5: | ||
|adventure= {{AdventureBadge|size={{{imgwidth|256px}}}|image={{{bobimg|Background.png}}}|text={{{imgcap|Level Badge}}} }} | |adventure= {{AdventureBadge|size={{{imgwidth|256px}}}|image={{{bobimg|Background.png}}}|text={{{imgcap|Level Badge}}} }} | ||
|psp= {{PSPLevelBadge|size={{{imgwidth|128px}}}|image={{{bobimg|Background.png}}}|color={{{badgecolor|#888}}}|text={{{imgcap|Level Badge}}} }} | |psp= {{PSPLevelBadge|size={{{imgwidth|128px}}}|image={{{bobimg|Background.png}}}|color={{{badgecolor|#888}}}|text={{{imgcap|Level Badge}}} }} | ||
|saba= {{SABALevelBadge|size={{{imgwidth|256px}}}|image={{{bobimg|Background.png}}}|color={{{badgecolor|#888}}}|text={{{imgcap|Level Badge}}} }} | |||
|none={{imageexists | |none={{imageexists | ||
| file = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}-Icon.png }} | | file = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}-Icon.png }} | ||
Line 38: | Line 39: | ||
|border=#00ACD8 | |border=#00ACD8 | ||
|title=Empty level | |title=Empty level | ||
|badgestyle=saba | |||
|game=[[LittleBigPlanet (PlayStation 3)]] | |game=[[LittleBigPlanet (PlayStation 3)]] | ||
|location=Blank Level Background | |location=Blank Level Background | ||
Line 79: | Line 81: | ||
* <code>bobimg</code>: Image filename (e.g. "Filename.png") | * <code>bobimg</code>: Image filename (e.g. "Filename.png") | ||
* <code>imgwidth</code>: Width of the above image, in pixels (e.g. 256px) | * <code>imgwidth</code>: Width of the above image, in pixels (e.g. 256px) | ||
* <code>badgestyle</code>: Allows you to change the badge's appearance. | * <code>badgestyle</code>: Allows you to change the badge's appearance, with the standard level badge being the default. Additional options include <tt>psp</tt>, <tt>adventure</tt>, <tt>saba</tt>, and <tt>none</tt> (for cases where level badges are already pre-baked, e.g. ''LittleBigPlanet Karting''). | ||
* <code>badgecolor</code>: Allows you to change the colour of the level badge's border. Only applicable if <code>badgestyle</code> is <tt>psp</tt>. | * <code>badgecolor</code>: Allows you to change the colour of the level badge's border. Only applicable if <code>badgestyle</code> is <tt>psp</tt> or <tt>saba</tt>. | ||
* <code>imgcap</code>: Witty caption for the level badge. Defaults to 'Level Badge' if omitted. | * <code>imgcap</code>: Witty caption for the level badge. Defaults to 'Level Badge' if omitted. | ||
* <code>border</code>: Use this to change the colour of the border, if you want to theme the bob around a specific game. Hope you know your hex colours! | * <code>border</code>: Use this to change the colour of the border, if you want to theme the bob around a specific game. Hope you know your hex colours! | ||
Line 93: | Line 95: | ||
* <code>orbs</code>: The number of Dreamer Orbs that can be collected in this level. Only applicable to ''[[Sackboy: A Big Adventure]]'' levels. | * <code>orbs</code>: The number of Dreamer Orbs that can be collected in this level. Only applicable to ''[[Sackboy: A Big Adventure]]'' levels. | ||
* <code>players</code>: The minimum and maximum number of players that are allowed to play this level at once. | * <code>players</code>: The minimum and maximum number of players that are allowed to play this level at once. | ||
* <code>prerequisite</code>: If the level has any additional requirements to unlock beyond simply progressing through the main path, e.g. finding a | * <code>prerequisite</code>: If the level has any additional requirements to unlock beyond simply progressing through the main path, e.g. finding a collectable in another level, put them here. Otherwise, omit. | ||
====Level Chronology==== | ====Level Chronology==== |
Revision as of 06:42, 8 June 2023
Empty level | |
---|---|
Template:SABALevelBadge | |
Game | LittleBigPlanet (PlayStation 3) |
Location | Blank Level Background |
Creator | Sackboy |
Level type | Main, co-operative |
Prizes | 0 |
Number of players | 1-4 |
Prerequisite | Gain access to My Moon |
Usage
When writing a page about a level, copy and paste this at the top of the article, edit the right fields and remove parameters that don't belong. With the exception of bobimg
, all fields are optional.
{{LevelBob |border= |title= |noimg= |bobimg= |badgestyle= |badgecolor= |imgwidth= |imgcap= |game= |location= |creator= |leveltype= |prizes= |orbs= |players= |unlock= |prevlevel= |prevlevelname= |prevlevelimg= |nextlevel= |nextlevelname= |nextlevelimg= }}
Legend
noimg
: Use this to omit the level badge or icon entirely. Generally speaking, this shouldn't be used outside of specific circumstances.bobimg
: Image filename (e.g. "Filename.png")imgwidth
: Width of the above image, in pixels (e.g. 256px)badgestyle
: Allows you to change the badge's appearance, with the standard level badge being the default. Additional options include psp, adventure, saba, and none (for cases where level badges are already pre-baked, e.g. LittleBigPlanet Karting).badgecolor
: Allows you to change the colour of the level badge's border. Only applicable ifbadgestyle
is psp or saba.imgcap
: Witty caption for the level badge. Defaults to 'Level Badge' if omitted.border
: Use this to change the colour of the border, if you want to theme the bob around a specific game. Hope you know your hex colours!color
: Changes the colour of the header text, in case the border colour you've chosen makes it hard to read. Again, hope you know your hex colours!title
: The name of the level. This will use the page's title if left blank, but you may want to fill this in if the page has disambiguation terms, e.g. Introduction.game
: The game that this level comes from, e.g. LittleBigPlanet (PlayStation 3).location
: The theme in which this level is set.creator
: The creator who made this level.characters
: Which character(s) the player controls in this level. Only applicable to LittleBigPlanet 3 levels, in which case use Template:Characters to add their respective icons. Otherwise, omit.leveltype
: Use this to specify what kind of level this is, whether it's co-operative or competitive, and whether it's part of the main story path or a side-level.prizes
: The number of Prize Bubbles found within the level.orbs
: The number of Dreamer Orbs that can be collected in this level. Only applicable to Sackboy: A Big Adventure levels.players
: The minimum and maximum number of players that are allowed to play this level at once.prerequisite
: If the level has any additional requirements to unlock beyond simply progressing through the main path, e.g. finding a collectable in another level, put them here. Otherwise, omit.
Level Chronology
The following arguments are related to a feature of this bob known as 'Level Chronology', which provides quick links to either the next or previous level in a series, i.e. story, DLC, challenges, etc. As long as at least one of prevlevel
or nextlevel
are specified, a 'Level Chronology' section will appear at the bottom of the bob. If only one level exists, or it's the first/last in a set, omit these fields accordingly.
prevlevel
: A link to the previous level in the series. If specified, a link will appear in the bottom left corner of the bob.prevlevelname
: Display name for the 'previous level' link. If omitted, the link will be displayed as "Previous level".prevlevelimg
: Use this to display a Level Badge to the left of the previous level's display name. If omitted, it'll show an arrow instead.nextlevel
: A link to the next level in the series. If specified, a link will appear in the bottom right corner of the bob.prevlevelname
: Display name for the 'next level' link. If omitted, the link will be displayed as "Next level".nextlevelimg
: Use this to display a Level Badge to the right of the next level's display name. If omitted, it'll show an arrow instead.