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}}} |{{# | + | <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 | + | <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> |