Template:Videogamecover: Difference between revisions
Cyberlink420 (talk | contribs) mNo edit summary |
Tigerpaw28 (talk | contribs) Adding logic to intelligently pluralize 'version' and only add the category when used on an actual file |
||
| Line 18: | Line 18: | ||
===Code=== | ===Code=== | ||
<pre> | <pre> | ||
{{ | {{User:Tigerpaw28/Sandbox/Template:VideogameCover | ||
|the cover of | |the cover of | ||
|source=SOURCENAME | |source=SOURCENAME | ||
| Line 38: | Line 38: | ||
</pre> | </pre> | ||
===Result=== | ===Result=== | ||
{{ | {{User:Tigerpaw28/Sandbox/Template:VideogameCover | ||
|source=''[[Transformers: Devastation]]'', art by [[Guido Guidi]] | |source=''[[Transformers: Devastation]]'', art by [[Guido Guidi]] | ||
|owner=[[Hasbro]], [[Activision]], and [[PlatinumGames]] | |owner=[[Hasbro]], [[Activision]], and [[PlatinumGames]] | ||
|console=Xbox 360, Xbox One, PlayStation 3, PlayStation 4, PC | |console=Xbox 360, Xbox One, PlayStation 3, PlayStation 4, and PC | ||
|cover=the United States cover | |cover=the United States cover | ||
}} | }} | ||
| Line 54: | Line 54: | ||
</pre> | </pre> | ||
===Result=== | ===Result=== | ||
{{ | {{User:Tigerpaw28/Sandbox/Template:VideogameCover | ||
|source=SOURCENAME | |source=SOURCENAME | ||
|owner=OWNERNAME | |owner=OWNERNAME | ||
| Line 62: | Line 62: | ||
[[Category:Basic image templates|{{PAGENAME}}]]</noinclude> | [[Category:Basic image templates|{{PAGENAME}}]]</noinclude> | ||
<includeonly>{{cover|source={{{source|a video game}}}|owner={{{owner|[[Hasbro]]/[[TakaraTomy]] and the game publisher}}}|excerpt={{{excerpt|}}}|cover={{{cover|the cover }}} of {{#if:{{{console|}}}|the {{{console}}} version | <includeonly>{{cover|source={{{source|a video game}}}|owner={{{owner|[[Hasbro]]/[[TakaraTomy]] and the game publisher}}}|excerpt={{{excerpt|}}}|cover={{{cover|the cover }}} of {{#if:{{{console|}}}|the {{{console}}} version{{#if:{{#pos:{{{console}}}|and}}|s|}}}}|type=video game|nocategory=y}} | ||
{{#if:{{{source|}}} ||'''To the uploader:''' Please include both the publisher of this game, and the cover artist, when drawn.}}[[Category:Video game covers]]</includeonly> | {{#if:{{{source|}}} ||'''To the uploader:''' Please include both the publisher of this game, and the cover artist, when drawn.}}{{#ifeq: {{NAMESPACE}}|File|[[Category:Video game covers]]}}</includeonly> | ||
Revision as of 01:47, 25 July 2024
Description
This template is for documenting the source of an image which is a cover to a videogame.
It can accept five optional parameters to replace the text "the cover of", identify an excerpt, identify which cover (in the event of multiple covers for a game, such as a difference between the US and UK/Europe covers), identify the source of the image, the copyright holder and the console of origin. If the source parameter is left empty, the template will show a note directing the uploader to add this, including the publisher and artist when known.
Usage
Parameters
Optional
- source - The title of the game the cover belongs to
- owner - The copyright owner(s) of the game
- console - The console(s) of origin.
- excerpt - Yes/no flag for whether the image is an except or the whole cover.
- cover - Description of the specific cover variant depicted, defaults to "the cover of"
Code
{{User:Tigerpaw28/Sandbox/Template:VideogameCover
|the cover of
|source=SOURCENAME
|owner=OWNERNAME
|console=
|excerpt=yes
|cover=cover A
}}
Examples
Code
{{Videogamecover
|source=''[[Transformers: Devastation]]'', art by [[Guido Guidi]]
|owner=[[Hasbro]], [[Activision]], and [[PlatinumGames]]
|console=Xbox 360, Xbox One, PlayStation 3, PlayStation 4, PC
|cover=the United States cover
}}
Result
This image is the United States cover of the Xbox 360, Xbox One, PlayStation 3, PlayStation 4, and PC versions of Transformers: Devastation, art by Guido Guidi, the copyright for which is owned by Hasbro, Activision, and PlatinumGames. It is believed that video game covers may be used on MediaWiki under the fair use provision of United States copyright law. See Copyrights.
Code
{{Videogamecover
|source=SOURCENAME
|owner=OWNERNAME
|console=CONSOLENAME
|excerpt=yes
}}
Result
This image is an excerpt from the cover of the CONSOLENAME versions of SOURCENAME, the copyright for which is owned by OWNERNAME. It is believed that video game covers may be used on MediaWiki under the fair use provision of United States copyright law. See Copyrights.

