|
|
(105 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | <table class="vertical-navbox template-infobox" id="infobox-game">
| + | {{#vardefine:WSGF Link|{{#cargo_query:tables=Video|where=_pageName='Jazz Jackrabbit 2' AND WSGF_Link IS NOT NULL|fields=WSGF_Link|default=}}}} |
− | <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>
| |
− | }} | |
| | | |
− | {{#if: {{{developers|}}} | | + | [{{#var:WSGF Link}} elephants] |
− | <tr>
| |
− | <th class="template-infobox-header" colspan="2">Developers</th>
| |
− | </tr>
| |
− | {{{developers}}}|<includeonly>[[Category:Invalid template usage (infobox game)]]</includeonly>
| |
− | }}
| |
| | | |
− | <!-- Publishers -->
| + | {{User:Garrett/Sandbox|{{#var:WSGF Link}}}} |
− | {{#if: {{{publishers|}}} | | |
− | <tr>
| |
− | <th class="template-infobox-header" colspan="2">Publishers</th>
| |
− | </tr>
| |
− | {{{publishers}}}
| |
− | }} | |
| | | |
− | <!-- Engines -->
| + | {{User:Garrett/Sandbox|{{#cargo_query:tables=Video|where=_pageName='Jazz Jackrabbit 2' AND WSGF_Link IS NOT NULL|fields=WSGF_Link|default=}}}} |
− | {{#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 -->
| + | <div title="{{PAGENAME}} on WSGF" class="plainlinks template-infobox-icon svg-icon infobox-wsgf">[[File:Icon overlay.png|link={{#var:WSGF Link}}]]</div> |
− | {{#if: {{{wikipedia|}}}{{{steam appid main|{{{steam appid|}}}}}}{{{winehq|}}}|
| + | |
− | <tr>
| + | ==Direct== |
− | <td class="template-infobox-icons" colspan="2"><!--
| + | {{#cargo_query:tables=Video|where=_pageName='Jazz Jackrabbit 2' AND WSGF_Link IS NOT NULL|fields=WSGF_Link|format=template|template=User:Garrett/Sandbox|default=}} |
− | -->{{#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>
| |