Difference between revisions of "Template:GamePlatformKey"

From blackwiki
Jump to navigation Jump to search
imported>Silver Edge
imported>Silver Edge
(Revert to revision 247522464 dated 2008-10-25 03:18:05 by Silver Edge using popups)
Line 1: Line 1:
<includeonly><table style="background:none;font-size:85%;margin:1em 1em 1em 0;width:100%;" cellpadding="0" cellspacing="0">
+
{| class="infobox" style="width: 20em; font-family: verdana, sans-serif; font-size: 10px; background-color: #f7f8ff; border: 1px solid #8888aa;"
<tr>
+
|- style=background:#ccccff
<td style="padding-left:2px;padding-right:2px;"><table style="background:none;width:100%;margin:0px;" cellpadding="0" cellspacing="0">
+
| align=center colspan=2|<font size="2">'''Platform key'''</font>
<!--style was: background:#d1dbdf;font-weight:bold;border:1px #aaa solid;font-size:120%;padding:0.2em;-->
+
|-
<tr><th style="">Video game platforms</th></tr>
+
| style=width:45px|DC
</table></td>
+
|[[Dreamcast]]
</tr><tr>
+
|- style=background:#ccccff
<!--cellspacing was 2-->
+
|GB
<td><table style="background:none;width:100%;margin:0px;" cellpadding="0" cellspacing="0">
+
|[[Game Boy]]
<tr>
+
|-
<td style="width:{{#expr:floor(100/{{{col|3}}})}}%;vertical-align:top;"><table class="wikitable" style="width:100%;margin:0px;" cellpadding="0" cellspacing="0">
+
|GBA
{{#if:{{{ 1|}}}|{{GamePlatformKey/sub|{{{ 1}}}| 1|{{{tot|0}}}|{{{col|3}}}}}
+
|[[Game Boy Advance]]
{{#if:{{{ 2|}}}|{{GamePlatformKey/sub|{{{ 2}}}| 2|{{{tot|0}}}|{{{col|3}}}}}}}
+
|- style=background:#ccccff
{{#if:{{{ 3|}}}|{{GamePlatformKey/sub|{{{ 3}}}| 3|{{{tot|0}}}|{{{col|3}}}}}}}
+
|GBC
{{#if:{{{ 4|}}}|{{GamePlatformKey/sub|{{{ 4}}}| 4|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[Game Boy Color]]
{{#if:{{{ 5|}}}|{{GamePlatformKey/sub|{{{ 5}}}| 5|{{{tot|0}}}|{{{col|3}}}}}}}
+
|-
{{#if:{{{ 6|}}}|{{GamePlatformKey/sub|{{{ 6}}}| 6|{{{tot|0}}}|{{{col|3}}}}}
+
|GCN
{{#if:{{{ 7|}}}|{{GamePlatformKey/sub|{{{ 7}}}| 7|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[Nintendo GameCube]]
{{#if:{{{ 8|}}}|{{GamePlatformKey/sub|{{{ 8}}}| 8|{{{tot|0}}}|{{{col|3}}}}}}}
+
|- style=background:#ccccff
{{#if:{{{ 9|}}}|{{GamePlatformKey/sub|{{{ 9}}}| 9|{{{tot|0}}}|{{{col|3}}}}}}}
+
|iPod
{{#if:{{{10|}}}|{{GamePlatformKey/sub|{{{10}}}|10|{{{tot|0}}}|{{{col|3}}}}}}}
+
|<!--NOT Apple iPod-->[[iPod]]
{{#if:{{{11|}}}|{{GamePlatformKey/sub|{{{11}}}|11|{{{tot|0}}}|{{{col|3}}}}}
+
|-
{{#if:{{{12|}}}|{{GamePlatformKey/sub|{{{12}}}|12|{{{tot|0}}}|{{{col|3}}}}}}}
+
|Lin
{{#if:{{{13|}}}|{{GamePlatformKey/sub|{{{13}}}|13|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[Linux]]
{{#if:{{{14|}}}|{{GamePlatformKey/sub|{{{14}}}|14|{{{tot|0}}}|{{{col|3}}}}}}}
+
|- style=background:#ccccff
{{#if:{{{15|}}}|{{GamePlatformKey/sub|{{{15}}}|15|{{{tot|0}}}|{{{col|3}}}}}}}
+
|Mac
{{#if:{{{16|}}}|{{GamePlatformKey/sub|{{{16}}}|16|{{{tot|0}}}|{{{col|3}}}}}
+
|<!--NOT Apple Macintosh-->[[Macintosh]] [[personal computer]]
{{#if:{{{17|}}}|{{GamePlatformKey/sub|{{{17}}}|17|{{{tot|0}}}|{{{col|3}}}}}}}
+
|-
{{#if:{{{18|}}}|{{GamePlatformKey/sub|{{{18}}}|18|{{{tot|0}}}|{{{col|3}}}}}}}
+
|NDS
{{#if:{{{19|}}}|{{GamePlatformKey/sub|{{{19}}}|19|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[Nintendo DS]]
{{#if:{{{20|}}}|{{GamePlatformKey/sub|{{{20}}}|20|{{{tot|0}}}|{{{col|3}}}}}}}
+
|- style=background:#ccccff
{{#if:{{{21|}}}|{{GamePlatformKey/sub|{{{21}}}|21|{{{tot|0}}}|{{{col|3}}}}}
+
|PS1
{{#if:{{{22|}}}|{{GamePlatformKey/sub|{{{22}}}|22|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[PlayStation]]
{{#if:{{{23|}}}|{{GamePlatformKey/sub|{{{23}}}|23|{{{tot|0}}}|{{{col|3}}}}}}}
+
|-
{{#if:{{{24|}}}|{{GamePlatformKey/sub|{{{24}}}|24|{{{tot|0}}}|{{{col|3}}}}}}}
+
|PS2
{{#if:{{{25|}}}|{{GamePlatformKey/sub|{{{25}}}|25|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[PlayStation 2]]
{{#if:{{{26|}}}|{{GamePlatformKey/sub|{{{26}}}|26|{{{tot|0}}}|{{{col|3}}}}}
+
|- style=background:#ccccff
{{#if:{{{27|}}}|{{GamePlatformKey/sub|{{{27}}}|27|{{{tot|0}}}|{{{col|3}}}}}}}
+
|PS3
{{#if:{{{28|}}}|{{GamePlatformKey/sub|{{{28}}}|28|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[PlayStation 3]]
{{#if:{{{29|}}}|{{GamePlatformKey/sub|{{{29}}}|29|{{{tot|0}}}|{{{col|3}}}}}}}
+
|-
{{#if:{{{30|}}}|{{GamePlatformKey/sub|{{{30}}}|30|{{{tot|0}}}|{{{col|3}}}}}}}
+
|PSP
{{#if:{{{31|}}}|{{GamePlatformKey/sub|{{{31}}}|31|{{{tot|0}}}|{{{col|3}}}}}
+
|[[PlayStation Portable]]
{{#if:{{{32|}}}|{{GamePlatformKey/sub|{{{32}}}|32|{{{tot|0}}}|{{{col|3}}}}}}}
+
|- style=background:#ccccff
{{#if:{{{33|}}}|{{GamePlatformKey/sub|{{{33}}}|33|{{{tot|0}}}|{{{col|3}}}}}}}
+
|Wii<!--NOT NINTENDO Wii-->  
{{#if:{{{34|}}}|{{GamePlatformKey/sub|{{{34}}}|34|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[Wii]]
{{#if:{{{35|}}}|{{GamePlatformKey/sub|{{{35}}}|35|{{{tot|0}}}|{{{col|3}}}}}}}
+
|-  
{{#if:{{{36|}}}|{{GamePlatformKey/sub|{{{36}}}|36|{{{tot|0}}}|{{{col|3}}}}}
+
|Win
{{#if:{{{37|}}}|{{GamePlatformKey/sub|{{{37}}}|37|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[Microsoft Windows|Windows]]-based personal computer
{{#if:{{{38|}}}|{{GamePlatformKey/sub|{{{38}}}|38|{{{tot|0}}}|{{{col|3}}}}}}}
+
|- style=background:#ccccff
{{#if:{{{39|}}}|{{GamePlatformKey/sub|{{{39}}}|39|{{{tot|0}}}|{{{col|3}}}}}}}
+
|XB
{{#if:{{{40|}}}|{{GamePlatformKey/sub|{{{40}}}|40|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[Xbox]]
{{#if:{{{41|}}}|{{GamePlatformKey/sub|{{{41}}}|41|{{{tot|0}}}|{{{col|3}}}}}
+
|-  
{{#if:{{{42|}}}|{{GamePlatformKey/sub|{{{42}}}|42|{{{tot|0}}}|{{{col|3}}}}}}}
+
|X360
{{#if:{{{43|}}}|{{GamePlatformKey/sub|{{{43}}}|43|{{{tot|0}}}|{{{col|3}}}}}}}
+
|[[Xbox 360]]
{{#if:{{{44|}}}|{{GamePlatformKey/sub|{{{44}}}|44|{{{tot|0}}}|{{{col|3}}}}}}}
+
|}<noinclude>{{documentation}}</noinclude>
{{#if:{{{45|}}}|{{GamePlatformKey/sub|{{{45}}}|45|{{{tot|0}}}|{{{col|3}}}}}}}
 
{{#if:{{{46|}}}|{{GamePlatformKey/sub|{{{46}}}|46|{{{tot|0}}}|{{{col|3}}}}}
 
{{#if:{{{47|}}}|{{GamePlatformKey/sub|{{{47}}}|47|{{{tot|0}}}|{{{col|3}}}}}}}
 
{{#if:{{{48|}}}|{{GamePlatformKey/sub|{{{48}}}|48|{{{tot|0}}}|{{{col|3}}}}}}}
 
{{#if:{{{49|}}}|{{GamePlatformKey/sub|{{{49}}}|49|{{{tot|0}}}|{{{col|3}}}}}}}
 
{{#if:{{{50|}}}|{{GamePlatformKey/sub|{{{50}}}|50|{{{tot|0}}}|{{{col|3}}}}}}}}}}}}}}}}}}}}}}}}}}}{{
 
#ifexpr:{{{tot|0}}}mod{{{col|3}}}|{{
 
#ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>5|<tr><th width="width:4em;">&nbsp;</th><td>&nbsp;</td></tr>}}{{
 
#ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>4|<tr><th width="width:4em;">&nbsp;</th><td>&nbsp;</td></tr>}}{{
 
#ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>3|<tr><th width="width:4em;">&nbsp;</th><td>&nbsp;</td></tr>}}{{
 
#ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>2|<tr><th width="width:4em;">&nbsp;</th><td>&nbsp;</td></tr>}}{{
 
#ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>1|<tr><th width="width:4em;">&nbsp;</th><td>&nbsp;</td></tr>}}{{
 
#ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>0|<tr><th width="width:4em;">&nbsp;</th><td>&nbsp;</td></tr>}}}}
 
</table></td>
 
</tr>
 
</table></td>
 
</tr>
 
{{#ifeq:{{{notes|}}}|no||
 
<tr>
 
<td style="padding-left:2px;padding-right:2px;"><table style="background:none;width:100%;margin:0px;" cellpadding="0" cellspacing="0">
 
<!--style was: background:#d1dbdf;font-weight:bold;border:1px #aaa solid;font-size:120%;padding:0.2em;-->
 
}}}}
 
</table></includeonly><noinclude>{{documentation}}</noinclude>
 

Revision as of 21:41, 17 January 2009

Platform key
DC Dreamcast
GB Game Boy
GBA Game Boy Advance
GBC Game Boy Color
GCN Nintendo GameCube
iPod iPod
Lin Linux
Mac Macintosh personal computer
NDS Nintendo DS
PS1 PlayStation
PS2 PlayStation 2
PS3 PlayStation 3
PSP PlayStation Portable
Wii Wii
Win Windows-based personal computer
XB Xbox
X360 Xbox 360
50px Template documentation[view] [edit] [history] [purge]

This template creates a table of video game platforms. You can specify which platforms appear in the table, and how many columns the table is sorted into.

Usage

The template takes three named parameters and up to a maximum of 60 unnamed parameters. The named parameters col and tot represent the number of columns in the table and the total number of platforms to display, respectively. The unnamed parameters determine which platforms get displayed.

If you specify too many columns (or a reader's browser width is too small), problems with table alignment can occur. More than six columns will cause errors in the template. If you wish to achieve an alphabetical listing, you must enter the platforms in alphabetical order.

It also might be a good idea to list platforms in alphabetical order within the articles themselves. This is in order to resolve issues where one platform is given preference over another, or where accurate release info is unavailable. This would also make further sorting (i.e. within a spreadsheet) easier.

Example

This code: {{GamePlatformKey|tot=18|DC|GBA|GBC|GCN|JavaME|N64|NDS|NGE|PS1|PS2|PS3|PS4|PSP|Wii|WS|WSC|X360|Xbox}}

Results in this:

Platform key
DC Dreamcast
GB Game Boy
GBA Game Boy Advance
GBC Game Boy Color
GCN Nintendo GameCube
iPod iPod
Lin Linux
Mac Macintosh personal computer
NDS Nintendo DS
PS1 PlayStation
PS2 PlayStation 2
PS3 PlayStation 3
PSP PlayStation Portable
Wii Wii
Win Windows-based personal computer
XB Xbox
X360 Xbox 360

Supported platforms

A full list of supported platforms is as follows. Platforms are mostly limited to those having categories of their own somewhere beneath the Category:Video games by platform super-category. If a game was released on too many platforms to list, use Various in place of a code.

Platform key
DC Dreamcast
GB Game Boy
GBA Game Boy Advance
GBC Game Boy Color
GCN Nintendo GameCube
iPod iPod
Lin Linux
Mac Macintosh personal computer
NDS Nintendo DS
PS1 PlayStation
PS2 PlayStation 2
PS3 PlayStation 3
PSP PlayStation Portable
Wii Wii
Win Windows-based personal computer
XB Xbox
X360 Xbox 360