Difference between revisions of "Development:Infobox game"
From PCGamingWiki, the wiki about fixing PC games
(test VR only via Cargo) |
(Cargo GOG check) |
||
Line 69: | Line 69: | ||
|data=coopgameid=gameid,coopurl=urlSlug | |data=coopgameid=gameid,coopurl=urlSlug | ||
}} | <span class="error">Error: Invalid JSON.</span> ||<div title="{{PAGENAME}} on Co-Optimus" class="plainlinks template-infobox-icon svg-icon infobox-cooptimus">[https://www.co-optimus.com/game/{{#external_value:coopgameid}}/pc/{{#external_value:coopurl}}.html ]</div>}} }}--><!-- | }} | <span class="error">Error: Invalid JSON.</span> ||<div title="{{PAGENAME}} on Co-Optimus" class="plainlinks template-infobox-icon svg-icon infobox-cooptimus">[https://www.co-optimus.com/game/{{#external_value:coopgameid}}/pc/{{#external_value:coopurl}}.html ]</div>}} }}--><!-- | ||
− | -->{{#if: {{{gogcom id|}}} | {{#vardefine:cloud|needed}}<div title="{{PAGENAME}} in GOG Database" class="plainlinks template-infobox-icon svg-icon infobox-gogdb">[[File:Icon overlay.png|link=https://www.gogdb.org/product/{{{gogcom id|}}}]]</div> {{#if:{{#var:Windows DOSBox}}{{#var:OS X DOSBox}}{{#var:Linux DOSBox}}|{{#ifeq:{{# | + | -->{{#if: {{{gogcom id|}}} | {{#vardefine:cloud|needed}}<div title="{{PAGENAME}} in GOG Database" class="plainlinks template-infobox-icon svg-icon infobox-gogdb">[[File:Icon overlay.png|link=https://www.gogdb.org/product/{{{gogcom id|}}}]]</div> {{#if:{{#var:Windows DOSBox}}{{#var:OS X DOSBox}}{{#var:Linux DOSBox}}|{{#ifeq:{{#cargo_query:tables=Cloud|where=_pageName = '{{PAGENAME}}'|fields=GOG_Galaxy|default=}}|true|{{#vardefine:GOG.com DOSBox cloud|true}}}}}}}}<!-- |
-->{{#if: {{{hltb|{{#var:hltb|}}}}} | <div title="{{PAGENAME}} on HowLongToBeat" class="template-infobox-icon svg-icon infobox-hltb">[[File:Icon overlay.png|link=https://howlongtobeat.com/game?id={{{hltb|{{#var:hltb|}}}}}|{{PAGENAME}} on HowLongToBeat]]</div>}}<!-- | -->{{#if: {{{hltb|{{#var:hltb|}}}}} | <div title="{{PAGENAME}} on HowLongToBeat" class="template-infobox-icon svg-icon infobox-hltb">[[File:Icon overlay.png|link=https://howlongtobeat.com/game?id={{{hltb|{{#var:hltb|}}}}}|{{PAGENAME}} on HowLongToBeat]]</div>}}<!-- | ||
-->{{#if: {{#var:igdb|{{{igdb|}}}}} | <div title="{{PAGENAME}} on IGDB" class="template-infobox-icon svg-icon infobox-igdb">[[File:Icon overlay.png|link=https://www.igdb.com/games/{{#var:igdb|{{{igdb|}}}}}|{{PAGENAME}} on IGDB]]</div>}}<!-- | -->{{#if: {{#var:igdb|{{{igdb|}}}}} | <div title="{{PAGENAME}} on IGDB" class="template-infobox-icon svg-icon infobox-igdb">[[File:Icon overlay.png|link=https://www.igdb.com/games/{{#var:igdb|{{{igdb|}}}}}|{{PAGENAME}} on IGDB]]</div>}}<!-- | ||
Line 101: | Line 101: | ||
-->{{#vardefine:System requirements|needed}}<!-- | -->{{#vardefine:System requirements|needed}}<!-- | ||
-->}}<!-- end ONLY APPLY ON PAGES IN MAIN NAMESPACE end | -->}}<!-- end ONLY APPLY ON PAGES IN MAIN NAMESPACE end | ||
− | -->{{#vardefine:VR|{{#cargo_query:tables=VR_support|where=_pageName = '{{PAGENAME}}' | + | -->{{#vardefine:VR|{{#cargo_query:tables=VR_support|where=_pageName = '{{PAGENAME}}'|fields=VR_only|default=}}}}<!-- |
-->{{#ifeq: {{#var:PC booter}}{{#var:DOS}}{{#var:Windows 3.x}}{{#var:Windows}}{{#var:Mac OS}}{{#var:OS X}}{{#var:Linux}}|true||{{#vardefine:OS tabs|true}}}}<!-- | -->{{#ifeq: {{#var:PC booter}}{{#var:DOS}}{{#var:Windows 3.x}}{{#var:Windows}}{{#var:Mac OS}}{{#var:OS X}}{{#var:Linux}}|true||{{#vardefine:OS tabs|true}}}}<!-- | ||
-->{{#ifeq: {{#var:PC booter}} | ported | [[Category:Invalid template usage (Infobox game)]]}}<!-- | -->{{#ifeq: {{#var:PC booter}} | ported | [[Category:Invalid template usage (Infobox game)]]}}<!-- |
Revision as of 08:57, 17 September 2021
Error: #cargo_declare must be called from a template page.
Documentation for the above template (sometimes hidden from view).
Visit Development:Infobox game/Documentation to edit this text. (How does this work?)