Template:Infobox game: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<onlyinclude>{| style="float:{{{align|right}}}; width:{{{width|300px}}}; font-size:{{{font-size|96.25%}}}; text-align:left; border:1px solid #a2a9b1; background-color:#f8f9fa; margin:0.5em 0 0.5em 1em; padding:0.2em;" cellspacing="0" cellpadding="3" |+ style="font-size:125%; font-weight:bold; padding:0.2em;" |{{{title|{{PAGENAME}}}}} |- {{#if: {{{image|}}} | {{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px]] {{!}}- | }} {{#if:...") |
mNo edit summary |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{| style="float:{{{align|right}}}; width:{{{width| | <onlyinclude>{| style="float:{{{align|right}}}; width:{{{width|320px}}}; font-size:{{{font-size|96.25%}}}; text-align:left; border:1px solid #a2a9b1; background-color:#f8f9fa; margin:0.5em 0 0.5em 1em; padding:0.2em;" cellspacing="0" cellpadding="3" | ||
|+ style="font-size:125%; font-weight:bold; padding:0.2em;" |{{{title|{{PAGENAME}}}}} | |+ style="font-size:125%; font-weight:bold; padding:0.2em;" |{{{title|{{PAGENAME}}}}} | ||
|- | |- | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
{{!}} colspan="2" style="text-align:center;" {{!}} | {{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}} | ||
{{!}}- | {{!}}- | ||
| }} | | }} | ||
Line 84: | Line 48: | ||
;<code>title</code> | ;<code>title</code> | ||
:The name of the game. If no value is given, it will default to the name of the page instead, so it's highly recommended to set the parameter yourself. | :The name of the game. If no value is given, it will default to the name of the page instead, so it's highly recommended to set the parameter yourself. | ||
;<code>image</code> | ;<code>image</code></code> | ||
:Used to put game boxart in. | :Used to put game boxart in. Link to boxart from wikipedia or pcgamingwiki (this wiki can automatically grab images from them with just the filename) and set size limit to 320x320. Example: <code><nowiki>[[File:The Sims Coverart.png|320x320px]]</nowiki></code>. Optional but recommended. | ||
;<code>imagecaption</code> | ;<code>imagecaption</code> | ||
:Used to put a caption in. Describe both images if you use both parameters. Optional. | :Used to put a caption in. Describe both images if you use both parameters. Optional. | ||
Line 101: | Line 63: | ||
:A spacer to put between parameters Optional. <br> start by adding "blank = " and then use the code " < span style= "color: #ECECEC" >blank < /span > " (remember to remove the spaces in the code or it wont work) | :A spacer to put between parameters Optional. <br> start by adding "blank = " and then use the code " < span style= "color: #ECECEC" >blank < /span > " (remember to remove the spaces in the code or it wont work) | ||
</noinclude> | </noinclude> |
Latest revision as of 23:47, 19 January 2024
An infobox for game pages. Based on the improved Infobox gametemplate, using a design closely modelled from Wikipedia with our own tweaks. Most parameters are optional but are explained below.
Parameters[edit source]
The order of this list of parameters is meant to match the order they are displayed in the box. You can technically place each parameter in any order you want (as opposed to first
, second
, third
, etc.) in the markup, but it can get confusing as the template is designed to have the values show up only one way.
title
- The name of the game. If no value is given, it will default to the name of the page instead, so it's highly recommended to set the parameter yourself.
image
- Used to put game boxart in. Link to boxart from wikipedia or pcgamingwiki (this wiki can automatically grab images from them with just the filename) and set size limit to 320x320. Example:
[[File:The Sims Coverart.png|320x320px]]
. Optional but recommended. imagecaption
- Used to put a caption in. Describe both images if you use both parameters. Optional.
developer
- Who's made the game? Optional but recommended.
publisher
- Who published the game. Optional but recommended.
platform
- What platform was this game released on?
release
- The release date of the game. Optional but recommended.
blank
- A spacer to put between parameters Optional.
start by adding "blank = " and then use the code " < span style= "color: #ECECEC" >blank < /span > " (remember to remove the spaces in the code or it wont work)