Template:Infobox game: Difference between revisions

From PZwiki
(added second log + fix)
m (Automated Formatting)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{Infobox|child={{{child|}}}
<noinclude>
|bodystyle  = width:350px; -moz-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; -webkit-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}};
{{documentation/sandbox|doc=
| above      = <div style="background: #{{Infobox nc|{{{name_colour|}}}}}; padding: 5px; font-weight: bold; text-align: center; font-size: 120%; color:#{{Infobox nc|{{{name_text_colour|}}}|text}};"><span class="fn">{{{name|{{{display_name|{{PAGENAME}}}}}}}}</span></div>
This is an infobox for video games.
| image      = {{#if:{{{logo|}}}|[[File:{{{logo}}}|{{px|{{{logo size|{{{logo_size|{{{logosize|}}}}}}}}}|frameless}}|alt={{{alt|}}}]]}}
| caption    = {{{logo caption|{{{caption|{{{logo_caption|}}}}}}}}}


| image2    = {{#if:{{{logo2|}}}|[[File:{{{logo2}}}|{{px|{{{logo size2|{{{logo_size2|{{{logo2size|}}}}}}}}}|frameless}}|alt={{{alt|}}}]]}}
==Usage==
| caption2  = {{{logo caption2|{{{caption2|{{{logo_caption2|}}}}}}}}}
{{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>


| imagestyle = padding:10px;
===Parameters===
| headerstyle = background-color: #{{Infobox nc|{{{name_colour|}}}}}; color: #{{Infobox nc|{{{name_text_colour|}}}|text}};
;<code>name</code>
| labelstyle = background-color:#eee; width:50%;
:Name of the game.
| datastyle  = width:50%;


| label1    = Developer(s)
;<code>logo</code>
| data1      = {{{developer|}}}
:Log for the game.


| label2    = Publisher(s)
;<code>logo_size</code>
| data2      = {{{publisher|}}}
:Optional display width of logo in pixels. If not specified, the size default is 200px.


| label3    = Producer(s)
;<code>logo_caption</code>
| data3      = {{{producer|}}}
:Descriptive information for the logo, if necessary.


| label4    = Designer(s)
;<code>image</code>
| data4      = {{{designer|}}}
:Image of the game. Insert an image link in the form: <code>Image.png</code>.


| label5    = Programmer(s)
;<code>image_caption</code>
| data5      = {{{programmer|}}}
:Insert a caption for the image(s).


| label6    = Artist(s)
;<code>developer</code>
| data6      = {{{artist|}}}
:Company that developed the game.


| label7    = Writers(s)
;<code>publisher</code>
| data7      = {{{writer|}}}
:Company that published the game.


| label8    = Composer(s)
;<code>engine</code>
| data8      = {{{composer|}}}
:Engine that the game was made with.


| label9    = Platform(s)
;<code>written_in</code>
| data9      = {{{platform|}}}
:Programming language(s) the game was written in.


| label10    = Genre(s)
;<code>platform</code>
| data10      = {{{genre|}}}
:Platforms the game can be played on.


| label11    = Theme(s)
;<code>release_date</code>
| data11      = {{{theme|}}}
:Date the game was released. Separate into "beta" and "stable" releases.


| label12    = Release
;<code>version</code>
| data12      = {{{release_date|}}}
:Current version of the game.


| label13    = Written in
;<code>genre</code>
| data13      = {{{written_in|}}}
:List of game genres.


| label14    = Latest version
;<code>theme</code>
| data14      = {{{version|}}}
:Theme of the game.


| label15    = License
;<code>modes</code>
| data15      = {{{license|}}}
:Game modes of the game.


| label16    = Size
;<code>producer</code>
| data16      = {{{size|}}}
:List of prominent producers.


| label17    = Website
;<code>designer</code>
| data17      = {{{website|}}}
:List of prominent designers.


| below      = {{#if:{{{footnotes|}}}|<center>'''Notes'''</center><div style="line-height:1.2em;">{{{footnotes}}}</div>}}
;<code>programmer</code>
| belowstyle = border-top:1px solid #aaaaaa; text-align:left
: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>
<noinclude>[[Category:Infobox]]{{documentation}}</noinclude>

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.