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

Difference between revisions of "Template:Infobox game"

From AppleGamingWiki, the wiki about gaming on M1 Apple silicon Macs
(Infobox game imported from PCGW)
 
m (cleaned up SMW leftovers causing random empty Wikipedia links)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{Assignment/checkAvailable}}<!--
+
<includeonly><!--{{Assignment/checkAvailable}}--><!--
--><table class="vertical-navbox template-infobox" id="infobox-game">
+
--><table class="vertical-navbox template-infobox" id="infobox-game">{{#vardefine:pageType|Game}}
 
<caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}</caption>
 
<caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}</caption>
 
{{#if: {{{cover|}}} |
 
{{#if: {{{cover|}}} |
 
<tr>
 
<tr>
<td class="template-infobox-cover" colspan="2">{{#ifexist: File:{{{cover}}} | [[File:{{{cover}}}{{!}}{{{cover size|300px}}}{{!}}alt={{{title|{{PAGENAME}}}}} cover]]{{#set:|Cover={{filepath:{{{cover}}}}}|Cover filename=File:{{{cover}}}}} |''Cover image missing, please <span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{cover}}}|WIKI}}}} upload it]</span>''[[Category:Pages needing cover images]]}}</td>
+
<td class="template-infobox-cover" colspan="2">{{#ifexist: File:{{{cover}}} | [[File:{{{cover}}}{{!}}{{{cover size|300px}}}{{!}}alt={{{title|{{PAGENAME}}}}} cover]] |''Cover image missing, please <span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{cover}}}|WIKI}}}} upload it]</span>''[[Category:Pages needing cover images]]}}</td>
 
</tr>
 
</tr>
 
|[[Category:Pages needing cover images]]}}
 
|[[Category:Pages needing cover images]]}}
Line 53: Line 53:
 
</tr>
 
</tr>
 
{{{taxonomy|}}}
 
{{{taxonomy|}}}
 +
}}<!--
 +
 +
-- Important links -->
 +
{{#if: {{{pcgamingwiki|}}}{{{asg|}}}{{{codeweavers|}}}|
 +
<tr>
 +
<th class="template-infobox-header" colspan="2">Resources</th>
 +
</tr>{{#if: {{{pcgamingwiki|}}}|
 +
<tr>{{#vardefine:PCGamingWiki|{{{pcgamingwiki}}}}}
 +
<td class="template-infobox-type"></td>
 +
<td class="template-infobox-info"><span class="plainlinks">[https://www.pcgamingwiki.com/wiki/{{{pcgamingwiki}}} PCGamingWiki]</span></td>
 +
</tr>}}{{#if: {{{asg|}}}|
 +
<tr>
 +
<td class="template-infobox-type"></td>
 +
<td class="template-infobox-info"><span class="plainlinks">[https://applesilicongames.com/games/{{{asg}}} Apple Silicon Games]</span></td>
 +
</tr>}}{{#if: {{{codeweavers|}}}|
 +
<tr>
 +
<td class="template-infobox-type"></td>
 +
<td class="template-infobox-info"><span class="plainlinks">[https://www.codeweavers.com/compatibility/crossover/{{{codeweavers}}} Codeweavers]</span></td>
 +
</tr>}}{{#if: {{{winehq|}}}|
 +
<tr>
 +
<td class="template-infobox-type"></td>
 +
<td class="template-infobox-info"><span class="plainlinks">[https://appdb.winehq.org/objectManager.php?sClass=application&iId={{{winehq}}} WineHQ]</span></td>
 +
</tr>}}
 
}}<!-- checking DOSBox-only status -->{{#if: {{#var:Windows DOSBox}}{{#var:OS X DOSBox}}{{#var:Linux DOSBox}}|<!--
 
}}<!-- checking DOSBox-only status -->{{#if: {{#var:Windows DOSBox}}{{#var:OS X DOSBox}}{{#var:Linux DOSBox}}|<!--
 
-->{{#if: {{#var:Windows native}}|{{#vardefine:Windows DOSBox|}}}}<!--
 
-->{{#if: {{#var:Windows native}}|{{#vardefine:Windows DOSBox|}}}}<!--
Line 83: Line 106:
 
}}<!-- Hidden properties
 
}}<!-- Hidden properties
 
-->{{#ifeq: {{NAMESPACE}} | | <!-- begin ONLY APPLY ON PAGES IN MAIN NAMESPACE begin (fixes PCGW Steam/GOG Redirect API endpoints among other things)
 
-->{{#ifeq: {{NAMESPACE}} | | <!-- begin ONLY APPLY ON PAGES IN MAIN NAMESPACE begin (fixes PCGW Steam/GOG Redirect API endpoints among other things)
-->{{#if: {{{steam appid|}}}| [[Steam AppID::{{{steam appid}}}| ]] {{#vardefine:steam appid|{{{steam appid}}}}} }}<!--
+
-->{{#if: {{{steam appid|}}}| {{#vardefine:steam appid|{{{steam appid}}}}} }}<!--
-->{{#if: {{{steam appid side|}}}| {{#ifeq: {{{steam appid|}}}||[[Category:Invalid template usage (infobox game)]]}}{{#arraymap:{{{steam appid side|}}}|,|var|[[Steam AppID::var| ]]|&#32;}} }}<!--
+
-->{{#if: {{{steam appid side|}}}| {{#ifeq: {{{steam appid|}}}||[[Category:Invalid template usage (infobox game)]]}}{{#arraymap:{{{steam appid side|}}}|,|var||&#32;}} }}<!--
-->{{#if: {{{winehq|}}}| [[WineHQ AppID::{{{winehq}}}| ]] }}<!--
+
-->{{#if: {{{winehq|}}}| }}<!--
-->{{#if: {{{gogcom id|}}}| [[GOGcom page::{{{gogcom id}}}| ]][[GOGcom ID::{{{gogcom id}}}| ]] {{#vardefine:gogcom id|{{{gogcom id}}}}} }}<!--
+
-->{{#if: {{{gogcom id|}}}| {{#vardefine:gogcom id|{{{gogcom id}}}}} }}<!--
-->{{#if: {{{gogcom id side|}}}| {{#arraymap:{{{gogcom id side|}}}|,|var|[[GOGcom page::var| ]][[GOGcom ID::var| ]]|&#32;}} }}<!--
+
-->{{#if: {{{gogcom id side|}}}| {{#arraymap:{{{gogcom id side|}}}|,|var||&#32;}} }}<!--
-->{{#if: {{{strategywiki|}}}| [[StrategyWiki::{{{strategywiki}}}| ]] }}<!--
+
-->{{#if: {{{strategywiki|}}}| }}<!--
-->{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}<!--
+
-->{{#if: {{{wikipedia|}}}| }}<!--
 
-->{{#if: {{{license|}}}| {{Infobox game/license|{{lc:{{{license|}}}}}}} }}<!--
 
-->{{#if: {{{license|}}}| {{Infobox game/license|{{lc:{{{license|}}}}}}} }}<!--
 
-->}}<!-- end ONLY APPLY ON PAGES IN MAIN NAMESPACE end
 
-->}}<!-- end ONLY APPLY ON PAGES IN MAIN NAMESPACE end
 
-->{{#vardefine:VR|{{#show: {{PAGENAME}} | ?VR only}}}}<!--
 
-->{{#vardefine:VR|{{#show: {{PAGENAME}} | ?VR only}}}}<!--
-->{{#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:DOS}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:Windows 3.x}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:Windows}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:Mac OS}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:OS X}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
-->{{#ifeq: {{#var:Linux}} | ported | [[Category:Invalid template usage (infobox game)]]}}<!--
 
 
-->{{#if: {{{gogcom page|}}} | [[Category:Invalid template usage (infobox game)]]}}</table><!--
 
-->{{#if: {{{gogcom page|}}} | [[Category:Invalid template usage (infobox game)]]}}</table><!--
-->{{#if:{{#var:Windows 3.x}}|{{#if:{{#var:Windows native}}||{{#vardefine:Warnings|true}} }}}}<!--
 
 
-->{{#arraymap:{{#var:sidebarSeries}}|,|€€€€€|{{#if:{{#var:sidebarSeriesShown}}||</dd>{{Series|€€€€€}}{{#vardefine:sidebarSeriesShown|true}}}}|}}<!--
 
-->{{#arraymap:{{#var:sidebarSeries}}|,|€€€€€|{{#if:{{#var:sidebarSeriesShown}}||</dd>{{Series|€€€€€}}{{#vardefine:sidebarSeriesShown|true}}}}|}}<!--
 
-->{{Tocbox}}<!--
 
-->{{Tocbox}}<!--
 
-->{{#if:{{#show: {{PAGENAME}} | ?Warnings}}|{{#vardefine:Top warnings|true}}{{#vardefine:Top last|Infobox}}{{#vardefine:Top|{{#show: {{PAGENAME}} | ?Top}}}}{{#vardefine:DRM|{{#show: {{PAGENAME}} | ?Uses DRM}}}}{{#ifeq:{{#var:Top}}|Infobox|{{Warnings}}}}}}</includeonly><noinclude>{{#cargo_declare:
 
-->{{#if:{{#show: {{PAGENAME}} | ?Warnings}}|{{#vardefine:Top warnings|true}}{{#vardefine:Top last|Infobox}}{{#vardefine:Top|{{#show: {{PAGENAME}} | ?Top}}}}{{#vardefine:DRM|{{#show: {{PAGENAME}} | ?Uses DRM}}}}{{#ifeq:{{#var:Top}}|Infobox|{{Warnings}}}}}}</includeonly><noinclude>{{#cargo_declare:
_table=Infobox_game
+
_table=Game
 
|Cover=File
 
|Cover=File
 
|Cover_URL=URL
 
|Cover_URL=URL
Line 115: Line 129:
 
|Wikipedia=String
 
|Wikipedia=String
 
|License=String
 
|License=String
}}</noinclude><includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Games]]{{#vardefine:Game|true}}{{#cargo_store:
+
}}</noinclude><includeonly>{{#ifeq: {{NAMESPACE}} | | [[Category:Games]]{{#vardefine:Game|true}}<!--{{#cargo_store:
_table=Infobox_game
+
_table=Game
 
|Cover={{#ifexist: File:{{{cover}}}|{{{cover|}}}|}}
 
|Cover={{#ifexist: File:{{{cover}}}|{{{cover|}}}|}}
 
|Cover_URL={{filepath:{{{cover|}}}}}
 
|Cover_URL={{filepath:{{{cover|}}}}}
Line 127: Line 141:
 
|Wikipedia={{{wikipedia|}}}
 
|Wikipedia={{{wikipedia|}}}
 
|License={{{license|}}}
 
|License={{{license|}}}
}}|}}</includeonly><noinclude>{{Documentation}} </noinclude>
+
}}-->|}}</includeonly><noinclude>{{Documentation}} </noinclude>

Latest revision as of 19:32, 29 September 2022

This template defines the table "Game". This table has not been created yet.

Documentation for the above template (sometimes hidden from view).