Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "User:Garrett/Sandbox3"

From PCGamingWiki, the wiki about fixing PC games
m (?)
(prev test)
Line 1: Line 1:
<table class="vertical-navbox template-infobox" id="infobox-game">
+
{| class="vertical-navbox" cellspacing="1" cellpadding="0" style="float: right; clear: right; color: black; background: #f9f9f9; border: 1px solid #aaa; width: 300px; margin:0em 0 1.0em 1.0em; padding: 0.2em 0 0 0; border-spacing: 0.1em 0.1em 0.1em 0.1em; text-align: center; line-height: 1.4em; font-size: 93%;"
<caption class="template-infobox-title">{{{title|{{PAGENAME}}}}} <includeonly>[[Category:Games]]</includeonly></caption>
+
|+ style="padding-bottom: 2px; font-size: 125%; line-height: 1.2em; font-weight: bold;" |{{{title|{{PAGENAME}}}}} <includeonly>[[Category:Games]]</includeonly>
{{#ogpdescription:{{PAGENAME}} at PCGamingWiki - bugs, fixes, crashes, mods, guides and improvements for every PC game.}}
+
|-
{{#if: {{{cover|}}} |
+
{{#if:{{{cover|}}}|
<tr>
+
{{!}} style="font-size: 110%; align: center; padding-top:5px; padding-bottom:5px" {{!}} [[File:{{{cover}}}{{!}}282px]]
<td class="template-infobox-cover" colspan="2">[[File:{{#ogpimage:{{{cover}}}}}{{!}}{{{cover size|300px}}}{{!}}alt={{{title|{{PAGENAME}}}}} cover]]</td>
 
</tr>
 
 
}}
 
}}
 +
|-
 +
{{Alternating rows table section
 +
|es=background:#f0f0f0;
  
{{#if: {{{developers|}}} |
+
<!-- Developers -->
<tr>
+
|{{#if: {{{developers|}}}|
<th class="template-infobox-header" colspan="2">Developers</th>
+
{{!}} style="text-align: left; vertical-align: top; padding: 2px 4px 2px 6px;" {{!}} '''Developers'''
</tr>
+
<div style="position: relative; display: block;">
{{{developers}}}
+
{{{developers}}}
 +
</div>
 +
{{!-}}
 
}}
 
}}
  
 
<!-- Publishers -->
 
<!-- Publishers -->
{{#if: {{{publishers|}}} |
+
|{{#if: {{{publishers|}}}|
<tr>
+
{{!}} style="text-align: left; vertical-align: top; padding: 2px 4px 2px 6px;" {{!}} '''Publishers'''
<th class="template-infobox-header" colspan="2">Publishers</th>
+
<div style="position: relative; display: block;">
</tr>
+
{{{publishers}}}
{{{publishers}}}
+
</div>
 +
{{!-}}
 
}}
 
}}
  
 
<!-- Engines -->
 
<!-- Engines -->
{{#if: {{{engines|}}} |
+
|{{#if: {{{engines|}}}|
<tr>
+
{{!}} style="text-align: left; vertical-align: top; padding: 2px 4px 2px 6px;" {{!}} '''Engines'''
<th class="template-infobox-header" colspan="2">Engines</th>
+
<div style="position: relative; display: block;">
</tr>
+
{{{engines}}}
{{{engines}}}
+
</div>
 +
{{!-}}
 
}}
 
}}
  
 
<!-- Release dates -->
 
<!-- Release dates -->
{{#if: {{{release dates|}}}|
+
|{{#if: {{{release dates|}}}|
<tr>
+
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Release dates'''
<th class="template-infobox-header" colspan="2">Release dates</th>
+
<div style="position: relative; display: block;">
</tr>
+
{{{release dates|}}}
{{{release dates|}}}|<includeonly>[[Category:Pages with no release dates]]</includeonly>
+
</div>
}}{{#if: {{{wikipedia|}}}{{{steam appid main|{{{steam appid|}}}}}}{{{winehq|}}}|
+
{{!-}}|<includeonly>[[Category:Pages with no release dates]]</includeonly>
<tr>
+
}}
<td class="template-infobox-icons" colspan="2"><!--
+
 
-->{{#if: {{{winehq|}}} | <div title="{{PAGENAME}} at WineHQ" class="plainlinks template-infobox-icon svg-icon svg-18 infobox-winehq">[http://appdb.winehq.org/objectManager.php?sClass=application&iId={{{winehq}}} &nbsp;]</div>}}<!--
+
<!-- Icons -->
 +
|{{#if: {{{wikipedia|}}}{{{steam appid main|{{{steam appid|}}}}}}{{{winehq|}}}|
 +
{{!}} style="text-align: right; vertical-align: top; padding: 5px 4px 4px 6px;" {{!}} <!--
 +
-->{{#if: {{{winehq|}}} | <div style="padding:0 2px; display:inline">[[File:WineHQ Icon.svg|18px|link=http://appdb.winehq.org/objectManager.php?sClass=application&iId={{{winehq}}}|alt={{PAGENAME}} at WineHQ|{{PAGENAME}} at WineHQ]]</div>}}<!--
 
-->{{#if: {{{steam appid main|{{{steam appid|}}}}}} | {{#ifeq: {{#get_web_data:
 
-->{{#if: {{{steam appid main|{{{steam appid|}}}}}} | {{#ifeq: {{#get_web_data:
 
url=http://m.co-optimus.com/api/games.php?search=true&steamid={{{steam appid main|{{{steam appid|}}}}}}&json=true
 
url=http://m.co-optimus.com/api/games.php?search=true&steamid={{{steam appid main|{{{steam appid|}}}}}}&json=true
 
|format=JSON
 
|format=JSON
 
|data=coopgameid=gameid,coopurl=urlSlug
 
|data=coopgameid=gameid,coopurl=urlSlug
}} | <span class="error">Error: Invalid JSON.</span> ||<div title="{{PAGENAME}} at Co-Optimus" class="plainlinks template-infobox-icon svg-icon svg-18 infobox-cooptimus">[http://www.co-optimus.com/game/{{#external_value:coopgameid}}/pc/{{#external_value:coopurl}}.html &nbsp;]</div>}}<div title="{{PAGENAME}} at SteamDB" class="plainlinks template-infobox-icon svg-icon svg-18 infobox-steamdb">[https://steamdb.info/app/{{{steam appid main|{{{steam appid|}}}}}} &nbsp;]</div> }}<!--
+
}} | Error: Invalid JSON. ||<div style="padding:0 2px; display:inline">[[File:Co-Optimus Icon.png|18px|link=http://www.co-optimus.com/game/{{#external_value:coopgameid}}/pc/{{#external_value:coopurl}}.html|alt={{PAGENAME}} at Co-Optimus|{{PAGENAME}} at Co-Optimus]]{{#vardefine:coopt|http://www.co-optimus.com/game/{{#external_value:coopgameid}}/pc/{{#external_value:coopurl}}.html}}</div>}}<div style="padding:0 2px; display:inline">[[File:SteamDB Icon.svg|18px|link=https://steamdb.info/app/{{{steam appid main|{{{steam appid|}}}}}}/|alt={{PAGENAME}} at SteamDB|{{PAGENAME}} at SteamDB]]</div> }}<!--
-->{{#if: {{{wikipedia|}}} | <div title="{{PAGENAME}} at Wikipedia" class="template-infobox-icon svg-icon svg-18 infobox-wikipedia">[[Wikipedia:{{{wikipedia}}}|&nbsp;]]</div> }}</td>
+
-->{{#if: {{{wikipedia|}}} | &nbsp;[[File:Wikipedia Icon.svg|18px|link=Wikipedia:{{{wikipedia}}}|alt={{PAGENAME}} at Wikipedia|{{PAGENAME}} at Wikipedia]] }}
</tr>
+
{{!-}}
 
}}
 
}}
  
Line 54: Line 62:
 
{{#if: {{{steam appid side|}}}| {{#arraymap:{{{steam appid side|}}}|,|var|[[Steam AppID::var| ]]|&#32;}} }}
 
{{#if: {{{steam appid side|}}}| {{#arraymap:{{{steam appid side|}}}|,|var|[[Steam AppID::var| ]]|&#32;}} }}
 
{{#if: {{{winehq|}}}| [[WineHQ AppID::{{{winehq}}}| ]] }}
 
{{#if: {{{winehq|}}}| [[WineHQ AppID::{{{winehq}}}| ]] }}
{{#if: {{{gogcom page|}}}| [[GOGcom page::{{{gogcom page}}}| ]] }}
+
{{#if: {{{gogcom page|}}}| {{#arraymap:{{{gogcom page|}}}|,|var|[[GOGcom page::var| ]]|&#32;}} }}
 
{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}
 
{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}
</table><noinclude>{{Documentation}}</noinclude>
+
}}
 +
|}<noinclude>{{Documentation}}</noinclude>

Revision as of 21:50, 20 September 2015

Template:Alternating rows table section
Garrett/Sandbox3
Documentation for the above template (sometimes hidden from view).