Difference between revisions of "Template:Infobox game"
From AppleGamingWiki, the wiki about gaming on M1 Apple silicon Macs
m ({{#vardefine:PCGamingWiki|{{{pcgamingwiki}}}}}) |
m (cleaned up SMW leftovers causing random empty Wikipedia links) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
{{#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]] | + | <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 56: | Line 56: | ||
-- Important links --> | -- Important links --> | ||
− | {{#if: {{{pcgamingwiki|}}}{{{asg|}}}{{{ | + | {{#if: {{{pcgamingwiki|}}}{{{asg|}}}{{{codeweavers|}}}| |
<tr> | <tr> | ||
<th class="template-infobox-header" colspan="2">Resources</th> | <th class="template-infobox-header" colspan="2">Resources</th> | ||
Line 67: | Line 67: | ||
<td class="template-infobox-type"></td> | <td class="template-infobox-type"></td> | ||
<td class="template-infobox-info"><span class="plainlinks">[https://applesilicongames.com/games/{{{asg}}} Apple Silicon Games]</span></td> | <td class="template-infobox-info"><span class="plainlinks">[https://applesilicongames.com/games/{{{asg}}} Apple Silicon Games]</span></td> | ||
− | </tr>}}{{#if: {{{ | + | </tr>}}{{#if: {{{codeweavers|}}}| |
<tr> | <tr> | ||
<td class="template-infobox-type"></td> | <td class="template-infobox-type"></td> | ||
− | <td class="template-infobox-info"><span class="plainlinks">[https://www.codeweavers.com/compatibility/crossover/{{{ | + | <td class="template-infobox-info"><span class="plainlinks">[https://www.codeweavers.com/compatibility/crossover/{{{codeweavers}}} Codeweavers]</span></td> |
</tr>}}{{#if: {{{winehq|}}}| | </tr>}}{{#if: {{{winehq|}}}| | ||
<tr> | <tr> | ||
Line 106: | 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|}}}| | + | -->{{#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| | + | -->{{#if: {{{steam appid side|}}}| {{#ifeq: {{{steam appid|}}}||[[Category:Invalid template usage (infobox game)]]}}{{#arraymap:{{{steam appid side|}}}|,|var|| }} }}<!-- |
− | -->{{#if: {{{winehq|}}}| | + | -->{{#if: {{{winehq|}}}| }}<!-- |
− | -->{{#if: {{{gogcom id|}}}| | + | -->{{#if: {{{gogcom id|}}}| {{#vardefine:gogcom id|{{{gogcom id}}}}} }}<!-- |
− | -->{{#if: {{{gogcom id side|}}}| {{#arraymap:{{{gogcom id side|}}}|,|var| | + | -->{{#if: {{{gogcom id side|}}}| {{#arraymap:{{{gogcom id side|}}}|,|var|| }} }}<!-- |
− | -->{{#if: {{{strategywiki|}}}| | + | -->{{#if: {{{strategywiki|}}}| }}<!-- |
− | -->{{#if: {{{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 |
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).
Visit Template:Infobox game/Documentation to edit this text. (How does this work?)