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:Availability/row"

From PCGamingWiki, the wiki about fixing PC games
(migrated DRM, OS, and key to separate templates to catch invalid uses)
(added store DRM+key property support)
Line 1: Line 1:
 
<includeonly><tr class="template-infotable-body">
 
<includeonly><tr class="template-infotable-body">
 
<th scope="row">{{Availability/switch|{{{1|}}}|link={{{2|}}}}}</th>
 
<th scope="row">{{Availability/switch|{{{1|}}}|link={{{2|}}}}}</th>
<td>{{#if: {{{3}}} |{{#arraymaptemplate:{{{3}}}|Availability/DRM|,|}}|{{Availability/DRM}}}}</td>
+
<td>{{#if: {{{3}}}|{{#arraymap:{{{3|}}}|,|x|{{Availability/DRM|x|{{#switch: {{{1|}}}
 +
|Amazon = Amazon.com
 +
|GOG = GOG.com
 +
|Humble = Humble Store
 +
|MacApp = Mac App Store
 +
|Oculus = Oculus Store
 +
|#Default={{{1|}}}
 +
}}}}|}}|{{Availability/DRM}}}}</td>
 
<td>{{{4|}}}</td>
 
<td>{{{4|}}}</td>
<td>{{#if:{{{5|}}}|{{#arraymaptemplate:{{{5}}}|Availability/keys|,|}}}}</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>
 
<td data-sort-value="{{{6|}}}">{{#if:{{{6|}}}|{{#arraymaptemplate:{{{6|}}}|Availability/OS|,|}}|{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (availability)]]}}}}</td>
 
</tr>
 
</tr>
 
</includeonly>
 
</includeonly>

Revision as of 09:31, 8 March 2018