Template:Bob: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
No edit summary
(Rewrote the template to make it more modular and slightly easier to edit and remix.)
Line 1: Line 1:
<includeonly>{|cellpadding="0.7" cellspacing="0" width="320px" class="breakout" style="margin-left: 1em; {{{#if: {{{border|}}} | border: 2px solid {{{border}}}; | }}}"
<includeonly>{{BobTable|border={{{border}}}|content=
| style="text-align: center;" |
{{BobRow|headline=y|align=center|bgcolor={{{border}}}|textcolor={{{color|#000}}}|title={{#if: {{{title|}}} | {{{title}}} | {{PAGETITLE}} }} }}
|-class="breakouttitle" style="color:#fff; {{{#if: {{{border|}}} | background:{{{border}}} | }}}"
{{ #if: {{{noimg|}}} | | {{BobRow|headline=y|align=center|title=
!colspan="2" {{#if: {{{color|}}}|style="color:{{{color}}};" | }} |''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}''
{{#ifeq:{{{bobimg|}}}|IMAGE_NAME.png| Incompetent template use! [[Category:{{namespace detect|main=Missing box art}}]] |  
|-
{{imageexists
|colspan="2" style="padding:0.5em; line-height: 1em; padding-left: 5px; text-align: center;" |
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}-title.png }}
{{#ifeq:{{{bobimg|}}}|IMAGE_NAME.png| Incompetent template use! [[Category:{{namespace detect|main=Missing box art}}]] |  
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
{{ #if: {{{noimg|}}} |  | {{imageexists
| caption= {{#if: {{{imgcap|}}} | {{{imgcap}}} | }}
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAMEE}}-title.png }}
}}}}}}}}
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
{{#if: {{{aka|}}} | {{BobRow|align=left|bgcolor=#fff|Also known as:|{{{aka}}}}} | }}
| caption= {{#if: {{{imgcap|}}} | {{{imgcap}}} | }}
{{#if: {{{dev|}}} | {{BobRow|align=left|bgcolor=#ececec|Developer:|{{{dev}}}}} | }}
}}}}}}
{{#if: {{{pub|}}} | {{BobRow|align=left|bgcolor=#fff|Publisher:|{{{pub}}}}} | }}
|-
{{#if: {{{system|}}} | {{BobRow|align=left|bgcolor=#ececec|System(s):|{{{system}}}}} | }}
!style="text-align:left; width:38%;"|{{#if: {{{aka|}}} |Also known as: | }}
{{#if: {{{genre|}}} | {{BobRow|align=left|bgcolor=#fff|Genre:|{{{genre}}}}} | }}
|{{#if: {{{aka|}}} |{{{aka}}} | }}
{{#if: {{{players|}}} | {{BobRow|align=left|bgcolor=#ececec|Supported players:|{{{players}}}}} | }}
|-
{{#if: {{{version|}}} | {{BobRow|align=left|bgcolor=#fff|Current version:|{{{version}}} {{#if: {{{nochangelog|}}} | | <small>([[Game updates/{{FULLPAGENAME}}|Read more...]])</small> | }} }} }}
!style="text-align:left; width:38%;"|{{#if: {{{dev|}}} |Developer: | }}
{{#if: {{{releases|}}} | {{Releasetable|release={{{releases}}} }} | }}
|{{#if: {{{dev|}}} |{{{dev}}} | }}
}}
|-
</includeonly><noinclude>
!style="text-align:left; width:38%;"|{{#if: {{{pub|}}} |Publisher: | }}
|{{#if: {{{pub|}}} |{{{pub}}} | }}
|-
!style="text-align:left; width:38%;"|{{#if: {{{system|}}} |System(s): | }}
|{{#if: {{{system|}}} |{{{system}}} | }}
|-
!style="text-align:left; width:38%;"|{{#if: {{{genre|}}} |Genre: | }}
|{{#if: {{{genre|}}} |{{{genre}}} | }}
|-
!style="text-align:left; width:38%;"|{{#if: {{{players|}}} |Supported players: | }}
|{{#if: {{{players|}}} |{{{players}}} | }}
|-
!style="text-align:left; width:38%;"|{{#if: {{{version|}}} |Current version: | }}
|{{#if: {{{version|}}} | {{{version}}} {{#if: {{{nochangelog|}}} | | <small>([[Game updates/{{FULLPAGENAME}}|Read more...]])</small> }} | }}
|-
|colspan="2"|{{#if: {{{releases|}}} | {{Releasetable|release={{{releases}}} }} | }}
|-
|}</includeonly><noinclude>
{{bob
{{bob
| bobimg= Placeholder.png
| bobimg= Lbp3_test_card.png
| imgwidth= 64px
| imgwidth= 320px
| imgcap= Please, fix me!
| imgcap= Test Card
| border= #2E92D5
| border= #2E92D5
| color=#FFF
| color=#FFF
Line 64: Line 46:
<pre>
<pre>
{{Bob
{{Bob
| noimg=       y
| noimg= y
| bobimg=      
| bobimg=
| imgwidth=    
| imgwidth=
| imgcap=      
| imgcap=
| border=      
| border=
| color=      
| color=
| title=      
| title=
| aka=        
| aka=
| dev=        
| dev=
| pub=        
| pub=
| system=      
| system=
| genre=      
| genre=
| players=    
| players=
| version=    
| version=
| nochangelog= y
| nochangelog= y
| releases=  
| releases=
  {{release
{{release
    |system=
|system=
    |region=
|region=
    |edition=  
|edition=
    |date=  
|date=
    |code=  
|code=
    }}
}}
}}
}}
</pre>
</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:
When creating a page for a game, 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 <code>bobimg</code>, all fields are optional.
 
<pre>
<pre>
  {{release
{{release
    |system=
|system=
    |region=
|region=
    |edition=  
|edition=
    |date=  
|date=
    |code=  
|code=
    }}
}}
</pre>
</pre>
...paste it underneath the existing <code><nowiki>{{release}}</nowiki></code> template, and fill in the relevant fields.
To add more releases to the bob, copy the above code, paste it underneath the existing <code><nowiki>{{release}}</nowiki></code> template, and fill in the relevant fields.
===Legend===
===Legend===
* '''noimg''': Use this to omit the title screen, box art or default placeholder entirely. Generally shouldn't be used outside of specific circumstances.
* <code>noimg</code>: Use this to omit the title screen, box art or default placeholder entirely. Generally speaking, this shouldn't be used outside of specific circumstances.
* '''bobimg''': Image filename (e.g. "Filename.png")
* <code>bobimg</code>: Image filename (e.g. "Filename.png")
* '''imgwidth''': Width of the above image, in pixels (e.g. 320px)
* <code>imgwidth</code>: Width of the above image, in pixels (e.g. 320px)
* '''imgcap''': Witty caption for the chosen image, if it exists.
* <code>imgcap</code>: 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!
* <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!
* '''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!
* <code>color</code>: 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.
* <code>title</code>: 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, e.g. ''LittleBigPlanet (PlayStation 3)''.
* '''aka''': The game's title in other regions (e.g. "LiBits! Big Adventure (JP)")
* <code>aka</code>: The game's title in other regions (e.g. "LiBits! Big Adventure (JP)")
* '''dev''': The game's developer.
* <code>dev</code>: The game's developer.
* '''pub''': The game's publisher.
* <code>pub</code>: The game's publisher.
* '''system''': The system the game was released for.
* <code>system</code>: 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")
* <code>genre</code>: The genre the game is in. If the game is multi-genre, separate with commas (e.g. "Racing, Sandbox")
* '''players''': The number of players that can play at once.
* <code>players</code>: The number of players that can play at once.
* '''version''': The current version for the game. This can be entered manually, or transcluded from [[Game updates#Transclusion|Game updates]] to be kept up to date automatically. If the game was never updated, just put 1.00.  
* <code>version</code>: The current version for the game. This can be entered manually, or transcluded from [[Game updates#Transclusion|Game updates]] to be kept up to date automatically. If the game was never updated, just put 1.00.  
* '''nochangelog''': If the game was never updated, or a changelog hasn't been written yet, use this to omit the "Read more..." link that appears next to the version number.
* <code>nochangelog</code>: If the game was never updated, or a changelog hasn't been written yet, use this to omit the "Read more..." link 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.
* <code>releases</code>: 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.
** <code>system</code>: The system this variant of the game was released on.
** '''media''': The storage media used for this release of the game. For physical releases, put "p", and the icon will change depending on the system specified above. For digital releases, put "d".
** <code>media</code>: The storage media used for this variant of the game. For physical releases, put "p", and the icon will change depending on the system specified above. For digital releases, put "d".
** '''region''': The region for this release. Defaults to "International" if omitted or left blank.
** <code>region</code>: The region this variant was released in. 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.
** <code>edition</code>: If this edition is different from the inital launch version in some way, 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>date</code>: The date this variant was, well, released. Sorted using the {{tooltip|YYYY/MM/DD|Year / Month / Date}} date format. (e.g. 2010-04-16).
** '''code''': The product code or Title ID associated with this release (e.g. BCES00611). This will be different depending on the region and whether it was sold physically or digitally, so do your research!
** <code>code</code>: The product code or Title ID associated with this variant (e.g. BCES00611). This will be different depending on the region and whether it was sold physically or digitally, so do your research!


==See also==
==See also==
Line 156: Line 139:
</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:Breakout box templates]]</noinclude>

Revision as of 13:53, 17 August 2022

Example Bob
Test Card
Also known as: Infobox (literally nobody)
Developer: Me
Publisher: Not Me
System(s): PlayStation 4
Genre: MMORPG
Supported players: 1-2
Current version: 1.23
Release Date (Y/M/D) Code
PlayStation Now Planet Earth
(Gamer's Edition)
2021-02-06 BCES00141

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 parameters that don't belong. With the exception of bobimg, all fields are optional.

	{{release
	|system=	
	|region=	
	|edition=	
	|date=		
	|code=		
	}}

To add more releases to the bob, copy the above 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 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. 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, e.g. LittleBigPlanet (PlayStation 3).
  • 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 the game is in. 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. This can be entered manually, or transcluded from Game updates to be kept up to date automatically. If the game was never updated, just put 1.00.
  • nochangelog: If the game was never updated, or a changelog hasn't been written yet, use this to omit the "Read more..." link 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 variant of the game was released on.
    • media: The storage media used for this variant of the game. For physical releases, put "p", and the icon will change depending on the system specified above. For digital releases, put "d".
    • region: The region this variant was released in. Defaults to "International" if omitted or left blank.
    • edition: If this edition is different from the inital launch version in some way, use this to specify which edition it is (e.g. "Game of the Year Edition"). Otherwise, omit this field.
    • date: The date this variant was, well, released. Sorted using the YYYY/MM/DD date format. (e.g. 2010-04-16).
    • code: The product code or Title ID associated with this variant (e.g. BCES00611). This will be different depending on the region and whether it was sold physically or digitally, so do your research!

See also