Template:Infobox game: Difference between revisions
(added second log + fix) |
m (Automated Formatting) |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
< | <noinclude> | ||
{{documentation/sandbox|doc= | |||
This is an infobox for video games. | |||
| | |||
==Usage== | |||
| | {{Infobox game | ||
|name=name | |||
|logo=image.png | |||
|logo_caption=logo_caption | |||
|image=image.png | |||
|image_caption=image_caption | |||
|developer=developer | |||
|publisher=publisher | |||
|engine=engine | |||
|written_in=written_in | |||
|platform=platform | |||
|release_date=release_date | |||
|version=version | |||
|genre=genre | |||
|theme=theme | |||
|modes=modes | |||
|producer=producer | |||
|designer=designer | |||
|programmer=programmer | |||
|artist=artist | |||
|writer=writer | |||
|composer=composer | |||
|license=license | |||
|website=website | |||
|notes=notes | |||
}} | |||
<pre> | |||
{{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= | |||
}} | |||
</pre> | |||
===Parameters=== | |||
;<code>name</code> | |||
:Name of the game. | |||
;<code>logo</code> | |||
:Log for the game. | |||
;<code>logo_size</code> | |||
:Optional display width of logo in pixels. If not specified, the size default is 200px. | |||
;<code>logo_caption</code> | |||
:Descriptive information for the logo, if necessary. | |||
;<code>image</code> | |||
:Image of the game. Insert an image link in the form: <code>Image.png</code>. | |||
;<code>image_caption</code> | |||
:Insert a caption for the image(s). | |||
;<code>developer</code> | |||
:Company that developed the game. | |||
;<code>publisher</code> | |||
:Company that published the game. | |||
;<code>engine</code> | |||
:Engine that the game was made with. | |||
;<code>written_in</code> | |||
:Programming language(s) the game was written in. | |||
;<code>platform</code> | |||
:Platforms the game can be played on. | |||
;<code>release_date</code> | |||
:Date the game was released. Separate into "beta" and "stable" releases. | |||
;<code>version</code> | |||
:Current version of the game. | |||
;<code>genre</code> | |||
:List of game genres. | |||
;<code>theme</code> | |||
:Theme of the game. | |||
;<code>modes</code> | |||
:Game modes of the game. | |||
;<code>producer</code> | |||
:List of prominent producers. | |||
;<code>designer</code> | |||
:List of prominent designers. | |||
| | ;<code>programmer</code> | ||
:List of prominent programmers. | |||
;<code>artist</code> | |||
:List of prominent artists. | |||
;<code>writer</code> | |||
:List of prominent writers. | |||
;<code>composer</code> | |||
:List of prominent composers. | |||
;<code>license</code> | |||
:Any associated licenses. | |||
;<code>website</code> | |||
:Website for the game. | |||
;<code>notes</code> | |||
:Other notes and footnotes. | |||
{{Translation guide|<syntaxhighlight lang="html">{{#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}} | |||
}} | |||
</syntaxhighlight>}} | |||
==See also== | |||
*{{ll|Template:Infobox company}} | |||
*{{ll|Template:Infobox person}} | |||
}} | |||
{{ll|Category:Infobox}} | |||
</noinclude><includeonly>{{Infobox/sandbox | |||
| title = {{{name|{{#getdisplaytitle:{{FULLPAGENAME}}}}}}} | |||
| color = var(--color-blue) | |||
| {{Infobox/image | |||
| p1 = {{#if:{{{logo|}}}|[[File:{{{logo}}}|{{{logo_name|{{{name|}}}}}}|{{{logo_size|200px}}}|link=]]}} | |||
| caption = {{#if: {{{logo_caption|}}}|''{{{logo_caption|}}}''}} | |||
}}{{Infobox/image | |||
| p2 = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_name|{{{name|}}}}}}|{{{image_width|200px}}}|link=]]}} | |||
| 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|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Developer|arg1=developer}}|{{{developer|}}}}} }}{{#if:{{{publisher|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Publisher|arg1=publisher}}|{{{publisher|}}}}} }}{{#if:{{{engine|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Engine|arg1=engine}}|{{{engine}}}}} }}{{#if:{{{written_in|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Written in|arg1=written_in}}|{{{written_in}}}}} }}{{#if:{{{platform|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Platform(s)|arg1=platform}}|{{{platform}}}}} }}{{#if:{{{release_date|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Release|arg1=release_date}}|{{{release_date}}}}} }}{{#if:{{{version|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Latest version|arg1=version}}|{{{version}}}}} }}{{#if:{{{genre|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Genre(s)|arg1=genre}}|{{{genre}}}}} }}{{#if:{{{theme|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Theme(s)|arg1=theme}}|{{{theme}}}}} }}{{#if:{{{modes|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Mode(s)|arg1=modes}}|{{{modes}}}}} }}{{#if:{{{producer|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Producer(s)|arg1=producer}}|{{{producer|}}}}} }}{{#if:{{{designer|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Designer(s)|arg1=designer}}|{{{designer|}}}}} }}{{#if:{{{programmer|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Programmer(s)|arg1=programmer}}|{{{programmer|}}}}} }}{{#if:{{{artist|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Artist(s)|arg1=artist}}|{{{artist|}}}}} }}{{#if:{{{writer|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Writer(s)|arg1=writer}}|{{{writer}}}}} }}{{#if:{{{composer|}}} | |||
|{{Infobox/sandbox/row|{{tt|name=Infobox game|default=Composer(s)|arg1=composer}}|{{{composer}}}}} }}{{#if:{{{license|}}} | |||
|{{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|}}}}}}}}}}} }} | |||
}}{{#if:{{{notes|}}}{{{footnotes|}}} | |||
|{{Infobox/section | |||
| {{tt|name=Infobox game|default=Notes|arg1=notes}} | |||
| color = var(--color-blue) | |||
| id = game-notes | |||
| collapsed = true | |||
| <div style{{=}}"padding:0em 0.5em 0.5em;">{{{notes|{{{footnotes|}}}}}}</div> | |||
}} | |||
}} | |||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 14:12, 14 April 2024
This is an infobox for video games.
Usage
name
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.