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


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:Availability/row"

From PCGamingWiki, the wiki about fixing PC games
m (added per cell CSS classes for more in-depth styling)
m (updated error message to be more descriptive when OS parameter is left empty)
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<includeonly><tr class="template-infotable-body table-availability-body-row">
 
<includeonly><tr class="template-infotable-body table-availability-body-row">
<th scope="row" class="table-availability-body-source">{{Availability/switch|{{{1|}}}|link={{{2|}}}}}</th>
+
<th scope="row" class="table-availability-body-source">{{Availability/store|{{{1|}}}|link={{{2|}}}}}{{#ifeq:{{lc:{{{1|}}}}}|retail||{{#vardefine:digital|true}}}}</th>
<td style="text-align: center;" class="table-availability-body-DRM">{{#if: {{{3}}}|{{#arraymap:{{{3|}}}|,|x|{{Availability/DRM|x|{{#switch: {{lc:{{{1|}}}}}
+
<td class="table-availability-body-DRM">{{#if: {{{3}}} |{{#arraymaptemplate:{{{3}}}|Availability/DRM|,|}}|{{Availability/DRM}}}}</td>
|amazon
 
|amazon.com = Amazon
 
|amazon.co.uk = Amazon UK
 
|battle.net = Battlenet
 
|bethesda
 
|bethesda.net = Bethesdanet
 
|epic games store = Epic Games Store
 
|gog
 
|gog.com = GOGcom
 
|gmg = Green Man Gaming
 
|humble = Humble Store
 
|itch.io = itchio
 
|macapp = Mac App Store
 
|oculus = Oculus Store
 
|steam-sub = Steam
 
|#Default={{{1|}}}
 
}}}}|}}|{{Availability/DRM}}}}</td>
 
 
<td class="table-availability-body-notes">{{{4|}}}</td>
 
<td class="table-availability-body-notes">{{{4|}}}</td>
<td style="text-align: center;" class="table-availability-body-keys">{{#if: {{{5}}}|{{#arraymap:{{{5|}}}|,|x|{{Availability/keys|x|{{{1|}}}}}|}}}}</td>
+
<td class="table-availability-body-keys">{{#if:{{{5}}}|{{#arraymaptemplate:{{{5}}}|Availability/keys|,|}}}}</td>
<td style="text-align: center;" class="table-availability-body-OS" data-sort-value="{{{6|}}}">{{#if:{{{6|}}}|{{#arraymap:{{{6|}}}|,|x|{{Availability/OS|x|{{{1|}}}}}|}}|{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (availability)]]}}}}</td>
+
<td class="table-availability-body-OS" data-sort-value="{{{6|}}}">{{#if:{{{6|}}}|{{#arraymaptemplate:{{{6|}}}|Availability/OS|,|}}|<div class="svg-icon svg-25 os-error">[[File:Icon overlay.png|link=|Error: OS parameter cannot be empty]]</div>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (Availability)]]}}}}{{#vardefine:store|}}</td>
 
</tr>
 
</tr>
 
</includeonly>
 
</includeonly>

Revision as of 01:38, 29 March 2020