Template:Infobox game: Difference between revisions

From PZwiki
(fixed `image`)
m (Automated Formatting)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{documentation/sandbox|doc=
{{documentation/sandbox|doc=
This is an infobox for video games.
This is an infobox for video games.
==Usage==
==Usage==
{{Infobox game
{{Infobox game
Line 31: Line 32:
<pre>
<pre>
{{Infobox game
{{Infobox game
|name=name
|name=
|logo=
|logo=
|developer=
|developer=
Line 57: Line 58:
===Parameters===
===Parameters===
;<code>name</code>
;<code>name</code>
:Name of the game.  
:Name of the game.


;<code>logo</code>
;<code>logo</code>
:Log for the game.  
:Log for the game.


;<code>logo_size</code>
;<code>logo_size</code>
Line 69: Line 70:


;<code>image</code>
;<code>image</code>
:Image of the game. Insert an image link in the form: <code>Image.png</code>.  
:Image of the game. Insert an image link in the form: <code>Image.png</code>.


;<code>image_caption</code>
;<code>image_caption</code>
Line 81: Line 82:


;<code>engine</code>
;<code>engine</code>
:Engine that the game was made with.  
:Engine that the game was made with.


;<code>written_in</code>
;<code>written_in</code>
:Programming language(s) the game was written in.  
:Programming language(s) the game was written in.


;<code>platform</code>
;<code>platform</code>
Line 90: Line 91:


;<code>release_date</code>
;<code>release_date</code>
:Date the game was released. Separate into "beta" and "stable" releases.  
:Date the game was released. Separate into "beta" and "stable" releases.


;<code>version</code>
;<code>version</code>
:Current version of the game.  
:Current version of the game.


;<code>genre</code>
;<code>genre</code>
Line 102: Line 103:


;<code>modes</code>
;<code>modes</code>
:Game modes of the game.  
:Game modes of the game.


;<code>producer</code>
;<code>producer</code>
Line 123: Line 124:


;<code>license</code>
;<code>license</code>
:Any associated licenses.  
:Any associated licenses.


;<code>website</code>
;<code>website</code>
:Website for the game.  
:Website for the game.


;<code>notes</code>
;<code>notes</code>
Line 151: Line 152:
| website = Website
| website = Website
| notes = Notes
| notes = Notes
| #default = [[Category:Incorrect template usage]]
| #default = {{Error|translation}}
}}
}}
</syntaxhighlight>}}
</syntaxhighlight>}}
Line 170: Line 171:
     | p2 = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_name|{{{name|}}}}}}|{{{image_width|200px}}}|link=]]}}
     | p2 = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_name|{{{name|}}}}}}|{{{image_width|200px}}}|link=]]}}
     | caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}}
     | caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}}
   }}{{#if:{{{developer|{{{publisher|{{{producer|{{{designer|{{{programmer|{{{artist|{{{writer|{{{composer|{{{platform|{{{genre|{{{theme|{{{modes|{{{release_date|{{{written_in|}}}{{{version|}}}{{{license|}}}{{{size|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
   }}{{#if:{{{developer|}}}{{{publisher|}}}{{{producer|}}}{{{designer|}}}{{{programmer|}}}{{{artist|}}}{{{writer|}}}{{{composer|}}}{{{platform|}}}{{{genre|}}}{{{theme|}}}{{{modes|}}}{{{release_date|}}}{{{written_in|}}}{{{version|}}}{{{license|}}}{{{size|}}}
   | {{#if:{{{developer|}}}
   | {{#if:{{{developer|}}}
     |{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Developer|arg1=developer}}|{{{developer|}}}}} }}{{#if:{{{publisher|}}}
     |{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Developer|arg1=developer}}|{{{developer|}}}}} }}{{#if:{{{publisher|}}}
Line 190: Line 191:
     |{{Infobox/sandbox/row|{{tt|name=Infobox game|default=License|arg1=license}}|{{{license}}}}} }}{{#if:{{{website|{{{homepage|{{{url|}}}}}}}}}
     |{{Infobox/sandbox/row|{{tt|name=Infobox game|default=License|arg1=license}}|{{{license}}}}} }}{{#if:{{{website|{{{homepage|{{{url|}}}}}}}}}
     |{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Website|arg1=website}}|{{{website|{{{homepage|{{{url|}}}}}}}}}}} }}
     |{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Website|arg1=website}}|{{{website|{{{homepage|{{{url|}}}}}}}}}}} }}
   }}{{#if:{{{notes|{{{footnotes|}}}}}}
   }}{{#if:{{{notes|}}}{{{footnotes|}}}
|{{Infobox/section
|{{Infobox/section
  | {{tt|name=Infobox game|default=Notes|arg1=notes}}
  | {{tt|name=Infobox game|default=Notes|arg1=notes}}

Latest revision as of 14:12, 14 April 2024

Notebook.pngTemplate Documentation

This is an infobox for video games.

Usage

name
name
logo_caption
name
image_caption
Developer
developer
Publisher
publisher
Engine
engine
Written in
written_in
Platform(s)
platform
Release
release_date
Latest version
version
Genre(s)
genre
Theme(s)
theme
Mode(s)
modes
Producer(s)
producer
Designer(s)
designer
Programmer(s)
programmer
Artist(s)
artist
Writer(s)
writer
Composer(s)
composer
License
license
Website
website
Notes
notes
{{Infobox game
|name=
|logo=
|developer=
|publisher=
|engine=
|written_in=
|platform=
|release_date=
|version=
|genre=
|theme=
|modes=
|producer=
|designer=
|programmer=
|artist=
|writer=
|composer=
|license=
|website=
|notes=
}}

Parameters

name
Name of the game.
logo
Log for the game.
logo_size
Optional display width of logo in pixels. If not specified, the size default is 200px.
logo_caption
Descriptive information for the logo, if necessary.
image
Image of the game. Insert an image link in the form: Image.png.
image_caption
Insert a caption for the image(s).
developer
Company that developed the game.
publisher
Company that published the game.
engine
Engine that the game was made with.
written_in
Programming language(s) the game was written in.
platform
Platforms the game can be played on.
release_date
Date the game was released. Separate into "beta" and "stable" releases.
version
Current version of the game.
genre
List of game genres.
theme
Theme of the game.
modes
Game modes of the game.
producer
List of prominent producers.
designer
List of prominent designers.
programmer
List of prominent programmers.
artist
List of prominent artists.
writer
List of prominent writers.
composer
List of prominent composers.
license
Any associated licenses.
website
Website for the game.
notes
Other notes and footnotes.

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| developer = Developer
| publisher = Publisher
| engine = Engine
| written_in = Written in
| platform = Platform(s)
| release_date = Release
| version = Latest version
| genre = Genre(s)
| theme = Theme(s)
| modes = Mode(s)
| producer = Producer(s)
| designer = Designer(s)
| programmer = Programmer(s)
| artist = Artist(s)
| writer = Writer(s)
| composer = Composer(s)
| license = License
| website = Website
| notes = Notes
| #default = {{Error|translation}}
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.