Difference between revisions of "Template:GamePlatformKey"
imported>Silver Edge (Undid revision 244627014 by Marcus2 (talk), this template is used in 1997 in video gaming to 2008 in video gaming) |
imported>Silver Edge (Made similar to Template:Vgclegend) |
||
| Line 1: | Line 1: | ||
| − | + | <includeonly><table style="background:none;font-size:85%;margin:1em 1em 1em 0;width:100%;" cellpadding="0" cellspacing="0"> | |
| − | + | <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;--> |
| − | + | <tr><th style="">Video game platforms</th></tr> | |
| − | | | + | </table></td> |
| − | | | + | </tr><tr> |
| − | | | + | <!--cellspacing was 2--> |
| − | | | + | <td><table style="background:none;width:100%;margin:0px;" cellpadding="0" cellspacing="0"> |
| − | | | + | <tr> |
| − | | | + | <td style="width:{{#expr:floor(100/{{{col|3}}})}}%;vertical-align:top;"><table class="wikitable" style="width:100%;margin:0px;" cellpadding="0" cellspacing="0"> |
| − | | | + | {{#if:{{{ 1|}}}|{{GamePlatformKey/sub|{{{ 1}}}| 1|{{{tot|0}}}|{{{col|3}}}}} |
| − | | | + | {{#if:{{{ 2|}}}|{{GamePlatformKey/sub|{{{ 2}}}| 2|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{ 3|}}}|{{GamePlatformKey/sub|{{{ 3}}}| 3|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{ 4|}}}|{{GamePlatformKey/sub|{{{ 4}}}| 4|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{ 5|}}}|{{GamePlatformKey/sub|{{{ 5}}}| 5|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{ 6|}}}|{{GamePlatformKey/sub|{{{ 6}}}| 6|{{{tot|0}}}|{{{col|3}}}}} |
| − | | | + | {{#if:{{{ 7|}}}|{{GamePlatformKey/sub|{{{ 7}}}| 7|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{ 8|}}}|{{GamePlatformKey/sub|{{{ 8}}}| 8|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{ 9|}}}|{{GamePlatformKey/sub|{{{ 9}}}| 9|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{10|}}}|{{GamePlatformKey/sub|{{{10}}}|10|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{11|}}}|{{GamePlatformKey/sub|{{{11}}}|11|{{{tot|0}}}|{{{col|3}}}}} |
| − | | | + | {{#if:{{{12|}}}|{{GamePlatformKey/sub|{{{12}}}|12|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{13|}}}|{{GamePlatformKey/sub|{{{13}}}|13|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{14|}}}|{{GamePlatformKey/sub|{{{14}}}|14|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{15|}}}|{{GamePlatformKey/sub|{{{15}}}|15|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{16|}}}|{{GamePlatformKey/sub|{{{16}}}|16|{{{tot|0}}}|{{{col|3}}}}} |
| − | | | + | {{#if:{{{17|}}}|{{GamePlatformKey/sub|{{{17}}}|17|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{18|}}}|{{GamePlatformKey/sub|{{{18}}}|18|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{19|}}}|{{GamePlatformKey/sub|{{{19}}}|19|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{20|}}}|{{GamePlatformKey/sub|{{{20}}}|20|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{21|}}}|{{GamePlatformKey/sub|{{{21}}}|21|{{{tot|0}}}|{{{col|3}}}}} |
| − | | | + | {{#if:{{{22|}}}|{{GamePlatformKey/sub|{{{22}}}|22|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{23|}}}|{{GamePlatformKey/sub|{{{23}}}|23|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{24|}}}|{{GamePlatformKey/sub|{{{24}}}|24|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{25|}}}|{{GamePlatformKey/sub|{{{25}}}|25|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{26|}}}|{{GamePlatformKey/sub|{{{26}}}|26|{{{tot|0}}}|{{{col|3}}}}} |
| − | | | + | {{#if:{{{27|}}}|{{GamePlatformKey/sub|{{{27}}}|27|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{28|}}}|{{GamePlatformKey/sub|{{{28}}}|28|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{29|}}}|{{GamePlatformKey/sub|{{{29}}}|29|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{30|}}}|{{GamePlatformKey/sub|{{{30}}}|30|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{31|}}}|{{GamePlatformKey/sub|{{{31}}}|31|{{{tot|0}}}|{{{col|3}}}}} |
| − | |- | + | {{#if:{{{32|}}}|{{GamePlatformKey/sub|{{{32}}}|32|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{33|}}}|{{GamePlatformKey/sub|{{{33}}}|33|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{34|}}}|{{GamePlatformKey/sub|{{{34}}}|34|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | |- | + | {{#if:{{{35|}}}|{{GamePlatformKey/sub|{{{35}}}|35|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{36|}}}|{{GamePlatformKey/sub|{{{36}}}|36|{{{tot|0}}}|{{{col|3}}}}} |
| − | | | + | {{#if:{{{37|}}}|{{GamePlatformKey/sub|{{{37}}}|37|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | |- | + | {{#if:{{{38|}}}|{{GamePlatformKey/sub|{{{38}}}|38|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{39|}}}|{{GamePlatformKey/sub|{{{39}}}|39|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | | | + | {{#if:{{{40|}}}|{{GamePlatformKey/sub|{{{40}}}|40|{{{tot|0}}}|{{{col|3}}}}}}} |
| − | |- | + | {{#if:{{{41|}}}|{{GamePlatformKey/sub|{{{41}}}|41|{{{tot|0}}}|{{{col|3}}}}} |
| − | + | {{#if:{{{42|}}}|{{GamePlatformKey/sub|{{{42}}}|42|{{{tot|0}}}|{{{col|3}}}}}}} | |
| − | + | {{#if:{{{43|}}}|{{GamePlatformKey/sub|{{{43}}}|43|{{{tot|0}}}|{{{col|3}}}}}}} | |
| − | |}<noinclude>{{documentation}}</noinclude> | + | {{#if:{{{44|}}}|{{GamePlatformKey/sub|{{{44}}}|44|{{{tot|0}}}|{{{col|3}}}}}}} |
| + | {{#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;"> </th><td> </td></tr>}}{{ | ||
| + | #ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>4|<tr><th width="width:4em;"> </th><td> </td></tr>}}{{ | ||
| + | #ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>3|<tr><th width="width:4em;"> </th><td> </td></tr>}}{{ | ||
| + | #ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>2|<tr><th width="width:4em;"> </th><td> </td></tr>}}{{ | ||
| + | #ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>1|<tr><th width="width:4em;"> </th><td> </td></tr>}}{{ | ||
| + | #ifexpr:({{{col|3}}}-({{{tot|0}}}mod{{{col|3}}}))>0|<tr><th width="width:4em;"> </th><td> </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:33, 17 January 2009
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}}