Template:Bob: Difference between revisions
Jump to navigation
Jump to search
(Added the option to list the game's current version.) |
(Overhauled the releases section, which should allow us to quickly document information about multiple post-launch releases of games. Existing pages will need to be updated to comply with the new setup.) |
||
Line 1: | Line 1: | ||
<includeonly>{|cellpadding="0.7" cellspacing="0" class="breakout" style="margin-left: | <includeonly>{|cellpadding="0.7" cellspacing="0" width="320px" class="breakout" style="margin-left: 1em; {{{#if: {{{border|}}} | border: 2px solid {{{border}}}; | }}}" | ||
| style="text-align: center;" | | | style="text-align: center;" | | ||
|-class="breakouttitle" style="color:#fff; {{{#if: {{{border|}}} | background:{{{border}}} | }}}" | |-class="breakouttitle" style="color:#fff; {{{#if: {{{border|}}} | background:{{{border}}} | }}}" | ||
!colspan="2"|''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}'' | !colspan="2" {{#if: {{{color|}}}|style="color:{{{color}}};" | }} |''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}'' | ||
|- | |- | ||
|colspan="2" style="padding:0.5em; line-height: 1em; padding-left: 5px; text-align: center;" | | |colspan="2" style="padding:0.5em; line-height: 1em; padding-left: 5px; text-align: center;" | | ||
Line 12: | Line 12: | ||
}}}}}} | }}}}}} | ||
|- | |- | ||
!style="text-align:left;"|{{#if: {{{aka|}}} |Also known as: | }} | !style="text-align:left; width:38%;"|{{#if: {{{aka|}}} |Also known as: | }} | ||
|{{#if: {{{aka|}}} |{{{aka}}} | }} | |{{#if: {{{aka|}}} |{{{aka}}} | }} | ||
|- | |- | ||
!style="text-align:left;"|{{#if: {{{dev|}}} |Developer: | }} | !style="text-align:left; width:38%;"|{{#if: {{{dev|}}} |Developer: | }} | ||
|{{#if: {{{dev|}}} |{{{dev}}} | }} | |{{#if: {{{dev|}}} |{{{dev}}} | }} | ||
|- | |- | ||
!style="text-align:left;"|{{#if: {{{pub|}}} |Publisher: | }} | !style="text-align:left; width:38%;"|{{#if: {{{pub|}}} |Publisher: | }} | ||
|{{#if: {{{pub|}}} |{{{pub}}} | }} | |{{#if: {{{pub|}}} |{{{pub}}} | }} | ||
|- | |- | ||
!style="text-align:left;"|{{#if: {{{system|}}} |System(s): | }} | !style="text-align:left; width:38%;"|{{#if: {{{system|}}} |System(s): | }} | ||
|{{#if: {{{system|}}} |{{{system}}} | }} | |{{#if: {{{system|}}} |{{{system}}} | }} | ||
|- | |- | ||
!style="text-align:left;"|{{#if: {{{genre|}}} |Genre: | }} | !style="text-align:left; width:38%;"|{{#if: {{{genre|}}} |Genre: | }} | ||
|{{#if: {{{genre|}}} |{{{genre}}} | }} | |{{#if: {{{genre|}}} |{{{genre}}} | }} | ||
|- | |- | ||
!style="text-align:left;"|{{#if: {{{players|}}} | | !style="text-align:left; width:38%;"|{{#if: {{{players|}}} |Supported players: | }} | ||
|{{#if: {{{players|}}} |{{{players}}} | }} | |{{#if: {{{players|}}} |{{{players}}} | }} | ||
|- | |- | ||
!style="text-align:left;"|{{#if: {{{version|}}} |Current version: | }} | !style="text-align:left; width:38%;"|{{#if: {{{version|}}} |Current version: | }} | ||
|{{#if: {{{version|}}} | {{{version}}} {{#if: {{{nochangelog|}}} | | <small>([[Game updates/{{FULLPAGENAME}}|Read more...]])</small> }} | }} | |{{#if: {{{version|}}} | {{{version}}} {{#if: {{{nochangelog|}}} | | <small>([[Game updates/{{FULLPAGENAME}}|Read more...]])</small> }} | }} | ||
|- | |- | ||
|colspan="2 | |colspan="2"|{{#if: {{{releases|}}} | {{Releasetable|release={{{releases}}} }} | }} | ||
|{{ | |||
|- | |- | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
Line 63: | Line 41: | ||
| imgcap= Please, fix me! | | imgcap= Please, fix me! | ||
| border= #2E92D5 | | border= #2E92D5 | ||
| color=#FFF | |||
| title= Example Bob | | title= Example Bob | ||
| aka= Infobox (literally nobody) | | aka= Infobox (literally nobody) | ||
Line 72: | Line 51: | ||
| version= 1.23 | | version= 1.23 | ||
| nochangelog= y | | nochangelog= y | ||
| | | releases= | ||
{{release | |||
|system= PSNow | |||
|region= Planet Earth | |||
|edition= Gamer's Edition | |||
|date= 2021-02-06 | |||
|code= BCES00141 | |||
}} | |||
}} | }} | ||
Nicked from Sonic Retro and The Cutting Room Floor. | Nicked from Sonic Retro and The Cutting Room Floor. | ||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{Bob | |||
| noimg= y | |||
| bobimg= | |||
| imgwidth= | |||
| imgcap= | |||
| border= | |||
| color= | |||
| title= | |||
| aka= | |||
| dev= | |||
| pub= | |||
| system= | |||
| genre= | |||
| players= | |||
| version= | |||
| nochangelog= y | |||
| releases= | |||
{{release | |||
|system= | |||
|region= | |||
|edition= | |||
|date= | |||
|code= | |||
}} | |||
}} | |||
</pre> | |||
When creating a page for a game, copy and paste this at the top of the article, edit the right fields and remove arguments that don't belong. To add more releases to the bob, copy this code: | |||
<pre> | |||
{{release | |||
|system= | |||
|region= | |||
|edition= | |||
|date= | |||
|code= | |||
}} | |||
</pre> | |||
...paste it underneath the existing <code><nowiki>{{release}}</nowiki></code> template, and fill in the relevant fields. | |||
===Legend=== | |||
* '''noimg''': Use this to omit the title screen, box art or default placeholder entirely. Generally 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. 320px) | |||
* '''imgcap''': Witty caption for the chosen image, if it exists. | |||
* '''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 game's title. This will use the page's title if left blank, but you may want to fill this in if the page has disambiguation terms. | |||
* '''aka''': The game's title in other regions (e.g. "LiBits! Big Adventure (JP)") | |||
* '''dev''': The game's developer. | |||
* '''pub''': The game's publisher. | |||
* '''system''': The system the game was released for. | |||
* '''genre''': The genre for the game. If the game is multi-genre, separate with commas (e.g. "Racing, Sandbox") | |||
* '''players''': The number of players that can play at once. | |||
* '''version''': The current version for the game. If the game was never updated, put 1.00. | |||
* '''nochangelog''': If the game was never updated or the changelog hasn't been written yet, use this to omit the "Read more..." bubble that appears next to the version number. | |||
* '''releases''': Used for providing information on each release of the game, be it the launch version or a special edition released later on. This should <em>not</em> be used for Game Updates. | |||
** '''system''': The system this release of the game can be played on. | |||
** '''region''': The region for this release. Defaults to "International" if omitted or left blank. | |||
** '''edition''': If this edition is different from the inital launch version, use this to specify which edition it is (e.g. "Game of the Year Edition"). Otherwise, omit this field. | |||
** '''date''': The date this release was, well, released. Sorted using the YYYY/MM/DD date format. (e.g. 2010-04-16). | |||
** '''code''': The release's product code or Title ID (e.g. BCES00611). This will be different depending on the region and whether it was a digital download or on physical media, so do some research! | |||
==See also== | |||
* [[Template:Releasetable]] | |||
* [[Template:Release]] | |||
<!-- <pre> | |||
{{Bob | {{Bob | ||
| noimg= Use this to omit the title screen and placeholder image. Generally this shouldn't be used outside of specific instances. | | noimg= Use this to omit the title screen and placeholder image. Generally this shouldn't be used outside of specific instances. | ||
| bobimg= Image filename (e.g. Placeholder.png) | | bobimg= Image filename (e.g. Placeholder.png) | ||
| imgwidth= Image width, in pixels. | | imgwidth= Image width, in pixels. | ||
| imgcap= Description for the bob's image that | | 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! | | 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 game's title. This is really only necessary if the article's name has text other than the title alone, e.g. "Title Name (game)" | | title= The game's title. This is really only necessary if the article's name has text other than the title alone, e.g. "Title Name (game)" | ||
| aka= The game's title in other regions, if applicable. (e.g. "LiBits! Big Adventure (JP)") | | aka= The game's title in other regions, if applicable. (e.g. "LiBits! Big Adventure (JP)") | ||
Line 92: | Line 144: | ||
| version= The latest update available for the game. Omit this if the game was never updated or released, or if the bob isn't being used on a game article. | | version= The latest update available for the game. Omit this if the game was never updated or released, or if the bob isn't being used on a game article. | ||
| nochangelog= Use this to hide the "Read more" bubble that pops up next to the version number. | | nochangelog= Use this to hide the "Read more" bubble that pops up next to the version number. | ||
| releases= | |||
| world= Worldwide release date. | | world= Worldwide release date. | ||
| us= Release date in the United States, if known or applicable. | | us= Release date in the United States, if known or applicable. | ||
Line 101: | Line 154: | ||
}} | }} | ||
</pre> | </pre> | ||
Use the [[Template:Date|date]] template from <tt>world</tt> onward. | Use the [[Template:Date|date]] template from <tt>world</tt> onward. --> | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 11:00, 25 March 2021
Nicked from Sonic Retro and The Cutting Room Floor.
Usage
{{Bob | noimg= y | bobimg= | imgwidth= | imgcap= | border= | color= | title= | aka= | dev= | pub= | system= | genre= | players= | version= | nochangelog= y | releases= {{release |system= |region= |edition= |date= |code= }} }}
When creating a page for a game, copy and paste this at the top of the article, edit the right fields and remove arguments that don't belong. To add more releases to the bob, copy this code:
{{release |system= |region= |edition= |date= |code= }}
...paste it underneath the existing {{release}}
template, and fill in the relevant fields.
Legend
- noimg: Use this to omit the title screen, box art or default placeholder entirely. Generally 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. 320px)
- imgcap: Witty caption for the chosen image, if it exists.
- 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 game's title. This will use the page's title if left blank, but you may want to fill this in if the page has disambiguation terms.
- aka: The game's title in other regions (e.g. "LiBits! Big Adventure (JP)")
- dev: The game's developer.
- pub: The game's publisher.
- system: The system the game was released for.
- genre: The genre for the game. If the game is multi-genre, separate with commas (e.g. "Racing, Sandbox")
- players: The number of players that can play at once.
- version: The current version for the game. If the game was never updated, put 1.00.
- nochangelog: If the game was never updated or the changelog hasn't been written yet, use this to omit the "Read more..." bubble that appears next to the version number.
- releases: Used for providing information on each release of the game, be it the launch version or a special edition released later on. This should not be used for Game Updates.
- system: The system this release of the game can be played on.
- region: The region for this release. Defaults to "International" if omitted or left blank.
- edition: If this edition is different from the inital launch version, use this to specify which edition it is (e.g. "Game of the Year Edition"). Otherwise, omit this field.
- date: The date this release was, well, released. Sorted using the YYYY/MM/DD date format. (e.g. 2010-04-16).
- code: The release's product code or Title ID (e.g. BCES00611). This will be different depending on the region and whether it was a digital download or on physical media, so do some research!