Difference between revisions of "Template:Availability/row"
From PCGamingWiki, the wiki about fixing PC games
(added section presence vardefine (used in Template:Absent properties to detect pages with no availability rows)) |
(set store property clear here) |
||
Line 5: | Line 5: | ||
<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>{{#vardefine:store unavailable|}}{{#vardefine:Availability|present}} | + | </tr>{{#vardefine:store unavailable|}}{{#vardefine:Availability|present}}{{#vardefine:store property value|}} |
</includeonly> | </includeonly> |