Template:Bob: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
No edit summary
m (Trimmed unnecesary code)
 
(9 intermediate revisions by the same user not shown)
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|#fff}}}|title={{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }} }}
|-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}} }}''
{{imageexists
|-
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAME}}-title.png }}
|colspan="2" style="padding:0.5em; line-height: 1em; padding-left: 5px; text-align: center;" |
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
{{#ifeq:{{{bobimg|}}}|IMAGE_NAME.png| Incompetent template use! [[Category:{{namespace detect|main=Missing box art}}]] |  
| caption= {{#if: {{{imgcap|}}} | {{{imgcap}}} | }}
{{ #if: {{{noimg|}}} |  | {{imageexists
| mcat= Missing title screens
| file  = {{#if: {{{bobimg|}}} | {{{bobimg}}} | {{PAGENAMEE}}-title.png }}
}}}}}}
| width  = {{#if: {{{imgwidth|}}} | {{{imgwidth}}} | }}
{{#if: {{{aka|}}} | {{BobRow|align=left|Also known as:|{{{aka}}}}} | }}
| caption= {{#if: {{{imgcap|}}} | {{{imgcap}}} | }}
{{#if: {{{dev|}}} | {{BobRow|align=left|Developer:|{{{dev}}}}} | }}
}}}}}}
{{#if: {{{pub|}}} | {{BobRow|align=left|Publisher:|{{{pub}}}}} | }}
|-
{{#if: {{{system|}}} | {{BobRow|align=left|System(s):|{{{system}}}}} | }}
!style="text-align:left; width:38%;"|{{#if: {{{aka|}}} |Also known as: | }}
{{#if: {{{engine|}}} | {{BobRow|align=left|Engine:|{{{engine}}}}} | }}
|{{#if: {{{aka|}}} |{{{aka}}} | }}
{{#if: {{{size|}}} | {{BobRow|align=left|File size:|{{{size}}}}} | }}
|-
{{#if: {{{genre|}}} | {{BobRow|align=left|Genre:|{{{genre}}}}} | }}
!style="text-align:left; width:38%;"|{{#if: {{{dev|}}} |Developer: | }}
{{#if: {{{players|}}} | {{BobRow|align=left|Supported players:|{{{players}}}}} | }}
|{{#if: {{{dev|}}} |{{{dev}}} | }}
{{#if: {{{version|}}} | {{BobRow|align=left|Current version:|{{{version}}} {{#if: {{{nochangelog|}}} | | <small>([[{{FULLPAGENAME}}/Game updates|Read more...]])</small> | }} }} }}
|-
{{#if: {{{releases|}}} | {{Releasetable|border={{{border}}}|color={{{color|#fff}}}|release={{{releases}}} }} | }}
!style="text-align:left; width:38%;"|{{#if: {{{pub|}}} |Publisher: | }}
}}
|{{#if: {{{pub|}}} |{{{pub}}} | }}
</includeonly><noinclude>
|-
!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
| title= Example Bob
| title= Example Bob
| aka= Infobox (literally nobody)
| aka= Infobox (literally nobody)
Line 47: Line 30:
| pub= Not Me
| pub= Not Me
| system= PlayStation 4
| system= PlayStation 4
| engine= Proprietary
| size= 8 GB
| genre= MMORPG
| genre= MMORPG
| players= 1-2
| players= 1-2
Line 52: Line 37:
| nochangelog= y
| nochangelog= y
| releases=
| releases=
  {{release
{{release
    |system=  PSNow
|system=  PSNow
    |region=  Planet Earth
|region=  Planet Earth
    |edition= Gamer's Edition
|edition= Gamer's Edition
    |date=    2021-02-06
|date=    2021-02-06
    |code=    BCES00141
|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
{{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=      
| engine=
| players=    
| size=
| version=    
| genre=
| nochangelog= y
| players=
| releases=  
| version=
  {{release
| nochangelog= y
    |system=
| releases=
    |region=
{{release
    |edition=  
|system=
    |date=  
|region=
    |code=  
|edition=
    }}
|date=
|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>engine</code>: The engine that the game runs on. If known, specify it here. Otherwise, omit.
* '''players''': The number of players that can play at once.
* <code>size</code>: The amount of space the game takes up on the system's storage.
* '''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>genre</code>: The genre the game is in. If the game is multi-genre, separate with commas (e.g. "Racing, Sandbox")
* '''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>players</code>: The number of players that can play at once.
* '''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>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.  
** '''system''': The system this release of the game can be played on.
* <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.
** '''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>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.
** '''region''': The region for this release. Defaults to "International" if omitted or left blank.
** <code>system</code>: The system this variant of the game was released on.
** '''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>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".
** '''date''': The date this release was, well, released. Sorted using the YYYY/MM/DD date format. (e.g. 2010-04-16).
** <code>region</code>: The region this variant was released in. Defaults to "International" if omitted or left blank.
** '''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>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.
** <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>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 128: Line 118:
* [[Template:Release]]
* [[Template:Release]]


<!-- <pre>
[[Category:Breakout box templates]]</noinclude>
{{Bob
| 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)
| 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 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)")
| dev=          The developer of the game.
| pub=          The publisher of the game. Not applicable for unreleased games.
| system=      Which platforms the game was released on.
| genre=        What genre the game is in.
| players=      The number of players that can play the game at once.
| 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.
| releases=   
| world=        Worldwide release date.
| us=          Release date in the United States, if known or applicable.
| eu=          Release date in Europe, if known or applicable.
| uk=          Release date in the United Kingdom, if applicable or known.
| au=          Release date in Australia, if applicable or known.
| jp=          Release date in Japan, if applicable or known.
| nz=          Release date in New Zealand, if applicable or known.
}}
</pre>
Use the [[Template:Date|date]] template from <tt>world</tt> onward. -->
[[Category:Templates]]</noinclude>

Latest revision as of 09:59, 6 July 2024

Example Bob
Test Card
Also known as: Infobox (literally nobody)
Developer: Me
Publisher: Not Me
System(s): PlayStation 4
Engine: Proprietary
File size: 8 GB
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=	
| engine=	
| size=	
| 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.
  • engine: The engine that the game runs on. If known, specify it here. Otherwise, omit.
  • size: The amount of space the game takes up on the system's storage.
  • 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