Difference between revisions of "Template:DLC/row"
From PCGamingWiki, the wiki about fixing PC games
(added visible error state for empty OS, added category namespace check) |
(added vardefine for DLC check) |
||
Line 1: | Line 1: | ||
− | <includeonly><tr class="template-infotable-body table-dlc-body-row"> | + | <includeonly><tr class="template-infotable-body table-dlc-body-row">{{#vardefine:DLC|present}} |
<th scope="row" class="table-dlc-body-name">{{{1|}}}</th> | <th scope="row" class="table-dlc-body-name">{{{1|}}}</th> | ||
<td class="table-dlc-body-notes">{{{2|}}}</td> | <td class="table-dlc-body-notes">{{{2|}}}</td> | ||
<td class="table-dlc-body-OS">{{#if:{{{3|}}}|{{#arraymaptemplate:{{{3|}}}|Availability/OS|,|}}|<div class="svg-icon svg-25 os-error">[[File:Icon overlay.png|link=|Error: OS '{{{3|}}}' not found in infobox]]</div>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (DLC)]]}}}}</td> | <td class="table-dlc-body-OS">{{#if:{{{3|}}}|{{#arraymaptemplate:{{{3|}}}|Availability/OS|,|}}|<div class="svg-icon svg-25 os-error">[[File:Icon overlay.png|link=|Error: OS '{{{3|}}}' not found in infobox]]</div>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (DLC)]]}}}}</td> | ||
</tr></includeonly> | </tr></includeonly> |