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

Difference between revisions of "Template:Availability/row"

From PCGamingWiki, the wiki about fixing PC games
(added overrides for invalid property names)
m (rephrased unavailable tooltip to: "Although the product is or has been listed on this source, it is currently not available for purchase. The row is retained for historical reference.")
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><tr class="template-infotable-body">
+
<includeonly><tr class="template-infotable-body table-availability-body-row" style="{{#ifeq: {{lc:{{{7|}}}}} | unavailable | opacity: 70%; {{#vardefine:store unavailable|true}} }}">
<th scope="row">{{Availability/switch|{{{1|}}}|link={{{2|}}}}}</th>
+
<th scope="row" class="table-availability-body-source" data-sort-value="{{#if:{{#var:store unavailable}}|zzz-unavailable-}}{{#ifeq:{{lc:{{{1|}}}}}|retail|aaa-}}{{{1|}}}">{{Availability/store|{{{1|}}}|link={{{2|}}}}}{{#ifeq:{{lc:{{{1|}}}}}|retail||{{#vardefine:digital|true}}}} {{#if: {{#var:store unavailable}} | ({{Abbr|''unavailable''|Although the product is or has been listed on this source, it is currently not available for purchase. The row is retained for historical reference.}})}}</th>
<td>{{#if: {{{3}}}|{{#arraymap:{{{3|}}}|,|x|{{Availability/DRM|x|{{#switch: {{{1|}}}
+
<td class="table-availability-body-DRM">{{#if: {{{3}}} |{{#arraymaptemplate:{{{3}}}|Availability/DRM|,|}}|{{Availability/DRM}}}}</td>
|Amazon
+
<td class="table-availability-body-notes">{{{4|}}}</td>
|Amazon.com = Amazon
+
<td class="table-availability-body-keys">{{#if:{{{5}}}|{{#arraymaptemplate:{{{5}}}|Availability/keys|,|}}}}</td>
|Amazon.co.uk = Amazon UK
+
<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>
|Battle.net = Battlenet
+
</tr>{{#vardefine:store unavailable|}}
|GOG
 
|GOG.com = GOGcom
 
|Humble = Humble Store
 
|MacApp = Mac App Store
 
|Oculus = Oculus Store
 
|Steam-sub = Steam
 
|#Default={{{1|}}}
 
}}}}|}}|{{Availability/DRM}}}}</td>
 
<td>{{{4|}}}</td>
 
<td>{{#if: {{{5}}}|{{#arraymap:{{{5|}}}|,|x|{{Availability/keys|x|{{{1|}}}}}|}}}}</td>
 
<td data-sort-value="{{{6|}}}">{{#if:{{{6|}}}|{{#arraymaptemplate:{{{6|}}}|Availability/OS|,|}}|{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (availability)]]}}}}</td>
 
</tr>
 
 
</includeonly>
 
</includeonly>

Revision as of 20:13, 15 August 2020