Difference between revisions of "Template:Infobox console"

From Emulation General Wiki
Jump to navigation Jump to search
(11 intermediate revisions by 4 users not shown)
Line 6: Line 6:
 
{{!}}-
 
{{!}}-
 
| }}
 
| }}
<!-- won't be used until screenshot images are implemented {{#if: {{{imagecaption|}}} |
+
{{#if: {{{image|}}} |
 +
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px]]
 +
{{!}}-
 +
| }}
 +
{{#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]]
 +
{{!}}-
 +
| }}
 +
{{#if: {{{imagecaption|}}} |
 
{{!}} colspan="2" style="text-align:center;" {{!}} {{{imagecaption}}}
 
{{!}} colspan="2" style="text-align:center;" {{!}} {{{imagecaption}}}
 
{{!}}- style="border-top:1px dashed #ccc;"
 
{{!}}- style="border-top:1px dashed #ccc;"
| }} -->
+
| }}
| {{#if: {{{developer|}}} |
+
{{#if: {{{developer|}}} |
 
! Developer
 
! Developer
 
{{!}} {{{developer}}}
 
{{!}} {{{developer}}}
Line 40: Line 80:
 
! Predecessor
 
! Predecessor
 
{{!}} {{{predecessor}}}
 
{{!}} {{{predecessor}}}
 +
{{!}}-
 +
| }}
 +
{{#if: {{{successor|}}} |
 +
! Successor
 +
{{!}} {{{successor}}}
 
{{!}}-
 
{{!}}-
 
| }}
 
| }}
Line 47: Line 92:
 
| style="width:50%; padding:0" |
 
| style="width:50%; padding:0" |
 
| style="width:50%; padding:0" |
 
| style="width:50%; padding:0" |
|}</onlyinclude><noinclude>
+
|}</onlyinclude><noinclude><br style="clear:both;"/>
 +
<center><big>'''Infobox console'''</big></center>
 +
An infobox for console pages. Based on the improved [[Template:Infobox emulator|Infobox emulator template]], using a design closely modelled from Wikipedia with our own tweaks. Most parameters are optional but are explained below.
 +
__NOTOC__
 +
==Parameters==
 +
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 <code>first</code>, <code>second</code>, <code>third</code>, etc.) in the markup, but it can get confusing as the template is designed to have the values show up only one way.
 +
;<code>title</code>
 +
:The name of the console. 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>logo</code>
 +
:Optional. Should be used for the logo of the console (if it exists).
 +
;<code>logowidth</code>
 +
:Also optional. Set the width of the logo. Might be useful for logos that either exceed the size of the infobox, or have a more vertical (and thus uncomfortable) aspect ratio.
 +
;<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>
 +
:Optional but recommended. Used to put console images in. The extra numbered parameters exist for cases where there are more than one image, possibly to represent different forms (like [[Nintendo Switch emulators]]) or different models (like [[PC Engine (TurboGrafx-16) emulators]]). The extras can also be used without the presence of the first <code>image</code> parameter, but this isn't 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>
 +
:Optional. Used to put a caption in. Describe both images if you use both parameters.
 +
;<code>developer</code>
 +
:Optional but recommended. Who's making the console? If the console was discontinued, then who ''made'' the console?
 +
;<code>type</code>
 +
:Optional but recommended. What type of console is it? "Home video game console" or "Handheld game console" are the two biggest examples though you may find <code>"Handheld" game console</code> on pages like [[Virtual Boy emulators]].
 +
;<code>generation</code>
 +
:What generation was this console released in? Wikipedia has a comprehensive list, but you can also see [[:Category:Consoles|our category for consoles]]. Optional but recommended.
 +
;<code>release</code>
 +
:The release year of the console. Optional but recommended.
 +
;<code>discontinued</code>
 +
:When was the console discontinued? Optional.
 +
;<code>predecessor</code>
 +
:What console came before this one? Optional.
 +
;<code>successor</code>
 +
:What console came after this one? Optional.
 +
;<code>emulated</code>
 +
:Is this console emulated? Required.
 
[[Category:General wiki templates]]
 
[[Category:General wiki templates]]
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Revision as of 11:20, 15 December 2018

Infobox console
Emulated {{{emulated}}}


Infobox console

An infobox for console pages. Based on the improved Infobox emulator template, using a design closely modelled from Wikipedia with our own tweaks. Most parameters are optional but are explained below.

Parameters

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 console. 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.
logo
Optional. Should be used for the logo of the console (if it exists).
logowidth
Also optional. Set the width of the logo. Might be useful for logos that either exceed the size of the infobox, or have a more vertical (and thus uncomfortable) aspect ratio.
image, image2, image3, image4, image5, image6, image7, image8, image9, and image10
Optional but recommended. Used to put console images in. The extra numbered parameters exist for cases where there are more than one image, possibly to represent different forms (like Nintendo Switch emulators) or different models (like PC Engine (TurboGrafx-16) emulators). The extras can also be used without the presence of the first image parameter, but this isn't recommended.
imagewidth, imagewidth2, imagewidth3, imagewidth4, imagewidth5, imagewidth6, imagewidth7, imagewidth8, imagewidth9, and imagewidth10
Used to set the width of the images. Optional.
imagecaption
Optional. Used to put a caption in. Describe both images if you use both parameters.
developer
Optional but recommended. Who's making the console? If the console was discontinued, then who made the console?
type
Optional but recommended. What type of console is it? "Home video game console" or "Handheld game console" are the two biggest examples though you may find "Handheld" game console on pages like Virtual Boy emulators.
generation
What generation was this console released in? Wikipedia has a comprehensive list, but you can also see our category for consoles. Optional but recommended.
release
The release year of the console. Optional but recommended.
discontinued
When was the console discontinued? Optional.
predecessor
What console came before this one? Optional.
successor
What console came after this one? Optional.
emulated
Is this console emulated? Required.