Difference between revisions of "Template:Availability/row"

From PCGamingWiki, the wiki about fixing PC games
m (updated error message to be more descriptive when OS parameter is left empty)
m (added handling unavailable states of a release)
Line 1: Line 1:
<includeonly><tr class="template-infotable-body table-availability-body-row">
+
<includeonly><tr class="template-infotable-body table-availability-body-row" style="{{#ifeq: {{{7|}}} | unavailable | opacity: 70%; {{#vardefine:store unavailable|true}} }}">
<th scope="row" class="table-availability-body-source">{{Availability/store|{{{1|}}}|link={{{2|}}}}}{{#ifeq:{{lc:{{{1|}}}}}|retail||{{#vardefine:digital|true}}}}</th>
+
<th scope="row" class="table-availability-body-source">{{Availability/store|{{{1|}}}|link={{{2|}}}}}{{#ifeq:{{lc:{{{1|}}}}}|retail||{{#vardefine:digital|true}}}} {{#if: {{#var:store unavailable}} | ({{Abbr|''unavailable''|The product is unavailable for purchase on this platform, but the row is retained for historical reference.}})}}</th>
 
<td class="table-availability-body-DRM">{{#if: {{{3}}} |{{#arraymaptemplate:{{{3}}}|Availability/DRM|,|}}|{{Availability/DRM}}}}</td>
 
<td class="table-availability-body-DRM">{{#if: {{{3}}} |{{#arraymaptemplate:{{{3}}}|Availability/DRM|,|}}|{{Availability/DRM}}}}</td>
 
<td class="table-availability-body-notes">{{{4|}}}</td>
 
<td class="table-availability-body-notes">{{{4|}}}</td>
 
<td class="table-availability-body-keys">{{#if:{{{5}}}|{{#arraymaptemplate:{{{5}}}|Availability/keys|,|}}}}</td>
 
<td class="table-availability-body-keys">{{#if:{{{5}}}|{{#arraymaptemplate:{{{5}}}|Availability/keys|,|}}}}</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>
 
<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>{{#vardefine:store unavailable|}}
 
</includeonly>
 
</includeonly>

Revision as of 19:17, 27 July 2020