Difference between revisions of "User:Garrett/Sandbox5"
From PCGamingWiki, the wiki about fixing PC games
(no arraymap) |
(1:1) |
||
Line 1: | Line 1: | ||
− | + | <table class="vertical-navbox template-infobox" id="infobox-game"> | |
− | + | <caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}<includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Games]] }}</includeonly></caption> | |
− | + | {{#ogpdescription:{{PAGENAME}} at PCGamingWiki - bugs, fixes, crashes, mods, guides and improvements for every PC game.}} | |
− | + | {{#if: {{{cover|}}} | | |
− | + | <tr> | |
− | + | <td class="template-infobox-cover" colspan="2">[[File:{{#ogpimage:{{{cover}}}}}{{!}}{{{cover size|300px}}}{{!}}alt={{{title|{{PAGENAME}}}}} cover]]</td> | |
</tr> | </tr> | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{developers|}}} | | ||
+ | <tr> | ||
+ | <th class="template-infobox-header" colspan="2">Developers</th> | ||
+ | </tr> | ||
+ | {{{developers}}}|<includeonly>[[Category:Invalid template usage (infobox game)]]</includeonly> | ||
+ | }} | ||
+ | |||
+ | <!-- Publishers --> | ||
+ | {{#if: {{{publishers|}}} | | ||
+ | <tr> | ||
+ | <th class="template-infobox-header" colspan="2">Publishers</th> | ||
+ | </tr> | ||
+ | {{{publishers}}} | ||
+ | }} | ||
+ | |||
+ | <!-- Engines --> | ||
+ | {{#if: {{{engines|}}} | | ||
+ | <tr> | ||
+ | <th class="template-infobox-header" colspan="2">Engines</th> | ||
+ | </tr> | ||
+ | {{{engines}}} | ||
+ | }} | ||
+ | |||
+ | <!-- Release dates --> | ||
+ | {{#if: {{{release dates|}}}| | ||
+ | <tr> | ||
+ | <th class="template-infobox-header" colspan="2">Release dates</th> | ||
+ | </tr> | ||
+ | {{{release dates|}}}|<includeonly>[[Category:Pages with no release dates]]</includeonly> | ||
+ | }} | ||
+ | |||
+ | <!-- Icons --> | ||
+ | {{#if: {{{wikipedia|}}}{{{steam appid main|{{{steam appid|}}}}}}{{{winehq|}}}| | ||
+ | <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">[https://appdb.winehq.org/objectManager.php?sClass=application&iId={{{winehq}}} ]</div>}}<!-- | ||
+ | -->{{#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 | ||
+ | |format=JSON | ||
+ | |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 ]</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|}}}}}} ]</div> }}<!-- | ||
+ | -->{{#if: {{{wikipedia|}}} | <div title="{{PAGENAME}} at Wikipedia" class="template-infobox-icon svg-icon svg-18 infobox-wikipedia">[[Wikipedia:{{{wikipedia}}}| ]]</div> }}</td> | ||
+ | </tr> | ||
+ | }}<!-- Hidden properties | ||
+ | -->{{#if: {{{steam appid main|{{{steam appid|}}}}}}| [[Steam AppID::{{{steam appid main|{{{steam appid}}}}}}| ]] }}<!-- | ||
+ | -->{{#if: {{{steam appid side|}}}| {{#arraymap:{{{steam appid side|}}}|,|var|[[Steam AppID::var| ]]| }} }}<!-- | ||
+ | -->{{#if: {{{winehq|}}}| [[WineHQ AppID::{{{winehq}}}| ]] }}<!-- | ||
+ | -->{{#if: {{{gogcom page|}}}| [[GOGcom page::{{{gogcom page}}}| ]] }}<!-- | ||
+ | -->{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}<!-- | ||
+ | --></table><noinclude>{{Documentation}}</noinclude> |
Revision as of 01:08, 4 November 2015
{{#ogpdescription:Garrett/Sandbox5 at PCGamingWiki - bugs, fixes, crashes, mods, guides and improvements for every PC game.}}
Documentation for the above template (sometimes hidden from view).
Visit User:Garrett/Sandbox5/Documentation to edit this text. (How does this work?)