Template:Infobox game: Difference between revisions

From Modding Haven
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<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"
<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;" {{!}} {{{image}}}
{{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}}
{{!}}-
| }}
{{#if: {{{image2|}}} |
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image2}}}|{{{imagewidth2|210}}}px]]
{{!}}-
| }}
{{#if: {{{image3|}}} |
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image3}}}|{{{imagewidth3|210}}}px]]
{{!}}-
| }}
{{#if: {{{image4|}}} |
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image4}}}|{{{imagewidth4|210}}}px]]
{{!}}-
| }}
{{#if: {{{image5|}}} |
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image5}}}|{{{imagewidth5|210}}}px]]
{{!}}-
| }}
{{#if: {{{image6|}}} |
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image6}}}|{{{imagewidth6|210}}}px]]
{{!}}-
| }}
{{#if: {{{image7|}}} |
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image7}}}|{{{imagewidth7|210}}}px]]
{{!}}-
| }}
{{#if: {{{image8|}}} |
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image8}}}|{{{imagewidth8|210}}}px]]
{{!}}-
| }}
{{#if: {{{image9|}}} |
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image9}}}|{{{imagewidth9|210}}}px]]
{{!}}-
| }}
{{#if: {{{image10|}}} |
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image10}}}|{{{imagewidth10|210}}}px]]
{{!}}-
{{!}}-
| }}
| }}
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>image2</code>, <code>image3</code>, <code>image4</code>, <code>image5</code>, <code>image6</code>, <code>image7</code>, <code>image8</code>, <code>image9</code>, and <code>image10</code>
;<code>image</code></code>
:Used to put game boxart in. The extra numbered parameters exist for cases where there are more than one image. The extras can also be used without the presence of the first <code>image</code> parameter, but this isn't recommended. Optional but recommended.
: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>imagewidth</code>, <code>imagewidth2</code>, <code>imagewidth3</code>, <code>imagewidth4</code>, <code>imagewidth5</code>, <code>imagewidth6</code>, <code>imagewidth7</code>, <code>imagewidth8</code>, <code>imagewidth9</code>, and <code>imagewidth10</code>
:Used to set the width of the images. Optional.
;<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)


[[Category:General wiki templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 23:47, 19 January 2024

Infobox game


Infobox game

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)