Template:Game: Difference between revisions

From Firrhna Project Wiki
Jump to navigationJump to search
m (1 revision imported)
m (Add a bottom image)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox>
<includeonly><table class="infobox"><tr><th colspan="2" class="infobox-title">{{{name|{{PAGENAME}}}}}</th></tr>
  <title source="title1"/>
{{#if:{{{image|}}}|<tr><td colspan="2" class="infobox-image">[[File:{{{image}}}|260px]]
  <image source="image1">
{{#if:{{{imagecaption|}}}|''{{{imagecaption}}}''}}</td>
     <caption source="caption1"/>
</tr>}}
  </image>
{{#if:{{{developer|}}}|<tr>
  <data source="developed_by">
    <th class="infobox-label">Developed by</th>
     <label>Developed by</label>
     <td class="infobox-data">{{{developer}}}</td>
  </data>
</tr>}}
  <data source="engine">
{{#if:{{{engine|}}}|<tr>
     <label>Engine</label>
    <th class="infobox-label">Engine</th>
  </data>
     <td class="infobox-data">{{{engine}}}</td>
  <data source="platform(s)">
</tr>}}
     <label>Platform(s)</label>
{{#if:{{{platform|}}}|<tr>
  </data>
    <th class="infobox-label">Platform(s)</th>
  <data source="release">
     <td class="infobox-data">{{{platform}}}</td>
     <label>Release</label>
</tr>}}
  </data>
{{#if:{{{release|}}}|<tr>
  <data source="genre">
    <th class="infobox-label">Release</th>
    <label>Genre</label>
     <td class="infobox-data">{{{release}}}</td>
  </data>
</tr>}}
</infobox>
{{#if:{{{genre|}}}|<tr>
    <th class="infobox-label">Genre</th>
     <td class="infobox-data">{{{genre}}}</td>
</tr>}}
{{#if:{{{image2|}}}|<tr><td colspan="2" class="infobox-image">[[File:{{{image2}}}|260px]]
{{#if:{{{imagecaption2|}}}|''{{{imagecaption2}}}''}}</td>
</tr>}}
</table></includeonly>
<includeonly>{{Namespace|main=[[Category:Games]]}}</includeonly>
<noinclude>
<noinclude>
Example usage:<pre>
{{Game
{{Game
|title1=Example
| name        = The Dating Pool
|image1=Example
| image        = datingpool.png
|caption1=Example
| imagecaption = Cover art
|developed_by=Example
| engine       = Sierra Creative Interpreter 1.1, enhanced
|engine=Example
| platform     = MS-DOS or compatible, ScummVM
|platform(s)=Example
| release     =  
|release=Example
| genre       = Adventure
|genre=Example
}}
}}
</pre>
<templatedata>
</noinclude>
{
"params": {
"name": {
"example": "The Dating Pool",
"type": "string",
"label": "Name",
"required": true,
"autovalue": "{{PAGENAME}}"
},
"image": {
"type": "wiki-file-name",
"label": "Image"
},
"imagecaption": {
"type": "string",
"label": "Image caption"
},
"engine": {
"type": "string",
"example": "Sierra Creative Interpreter 1.1",
"label": "Engine"
},
"platform": {
"type": "string",
"example": "MS-DOS",
"label": "Platform(s)"
},
"release": {
"type": "string",
"label": "Release"
},
"genre": {
"example": "Adventure",
"type": "string",
"label": "Genre"
        },
"image2": {
"type": "wiki-file-name",
"label": "Bottom image"
},
"imagecaption2": {
"type": "string",
"label": "Bottom image caption"
        }
},
"description": "An infobox for games."
}
</templatedata></noinclude>

Latest revision as of 20:33, 30 September 2023


The Dating Pool
Cover art
Engine Sierra Creative Interpreter 1.1, enhanced
Platform(s) MS-DOS or compatible, ScummVM
Genre Adventure


An infobox for games.

Template parameters

ParameterDescriptionTypeStatus
Namename

no description

Example
The Dating Pool
Auto value
{{PAGENAME}}
Stringrequired
Imageimage

no description

Fileoptional
Image captionimagecaption

no description

Stringoptional
Engineengine

no description

Example
Sierra Creative Interpreter 1.1
Stringoptional
Platform(s)platform

no description

Example
MS-DOS
Stringoptional
Releaserelease

no description

Stringoptional
Genregenre

no description

Example
Adventure
Stringoptional
Bottom imageimage2

no description

Fileoptional
Bottom image captionimagecaption2

no description

Stringoptional