Difference between revisions of "Development:Infobox game"
From PCGamingWiki, the wiki about fixing PC games
(1:1 with live) |
|||
Line 59: | Line 59: | ||
-->}}<!-- | -->}}<!-- | ||
Icons --><!-- | Icons --><!-- | ||
− | storing WSGF Link state -->{{# | + | storing WSGF Link state -->{{#vardefine:WSGF Link|{{#cargo_query:tables=Video|where=_pageID = {{PAGEID}} AND WSGF_Link IS NOT NULL|fields=WSGF_Link|default=}}}}<!-- |
− | |||
− | |||
− | }}<!-- | ||
storing digital state -->{{#vardefine:available digitally|{{#cargo_query:tables=Tags|where=_pageID = {{PAGEID}}|fields=Available_digitally|no html|default=}}}}{{#if: {{{wikipedia|}}}{{{gogcom id|}}}{{{steam appid|}}}{{{winehq|}}}{{{strategywiki|}}}{{{mobygames|}}}{{{igdb|}}}{{#var:WSGF Link}}{{{official site|}}}| | storing digital state -->{{#vardefine:available digitally|{{#cargo_query:tables=Tags|where=_pageID = {{PAGEID}}|fields=Available_digitally|no html|default=}}}}{{#if: {{{wikipedia|}}}{{{gogcom id|}}}{{{steam appid|}}}{{{winehq|}}}{{{strategywiki|}}}{{{mobygames|}}}{{{igdb|}}}{{#var:WSGF Link}}{{{official site|}}}| | ||
<tr> | <tr> | ||
Line 82: | Line 79: | ||
-->{{#if: {{{wikipedia|}}} | <div title="{{PAGENAME}} on Wikipedia" class="template-infobox-icon svg-icon infobox-wikipedia">[[File:Icon overlay.png|link=Wikipedia:{{{wikipedia}}}|{{PAGENAME}} on Wikipedia]]</div>}}<!-- | -->{{#if: {{{wikipedia|}}} | <div title="{{PAGENAME}} on Wikipedia" class="template-infobox-icon svg-icon infobox-wikipedia">[[File:Icon overlay.png|link=Wikipedia:{{{wikipedia}}}|{{PAGENAME}} on Wikipedia]]</div>}}<!-- | ||
-->{{#if: {{{winehq|}}} | <div title="{{PAGENAME}} on WineHQ" class="plainlinks template-infobox-icon svg-icon infobox-winehq">[[File:Icon overlay.png|link=https://appdb.winehq.org/objectManager.php?sClass=application&iId={{{winehq}}}]]</div>}}<!-- | -->{{#if: {{{winehq|}}} | <div title="{{PAGENAME}} on WineHQ" class="plainlinks template-infobox-icon svg-icon infobox-winehq">[[File:Icon overlay.png|link=https://appdb.winehq.org/objectManager.php?sClass=application&iId={{{winehq}}}]]</div>}}<!-- | ||
− | -->{{#if: {{#var:WSGF Link}} | | + | -->{{#if: {{#var:WSGF Link}} | {{#cargo_query:tables=Video|where=_pageID = {{PAGEID}} AND WSGF_Link IS NOT NULL|fields=WSGF_Link|format=template|template=Infobox game/WSGF|default=}} }}</td> |
</tr> | </tr> | ||
}}<!-- Hidden properties | }}<!-- Hidden properties |
Revision as of 00:59, 30 October 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?)