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: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>

Revision as of 07:12, 28 April 2020