Difference between revisions of "Template:DRM/switch"

From PCGamingWiki, the wiki about fixing PC games
(added vardefines for Cargo)
(updated Cargo vardefine to prevent storing empty comma separation)
Line 78: Line 78:
 
|physical = [[Digital rights management (DRM)#Physical |Physical]][[Uses DRM::Physical| ]][[{{#var:store|Uses}} DRM::Physical| ]]{{#vardefine:DRM|Physical}}
 
|physical = [[Digital rights management (DRM)#Physical |Physical]][[Uses DRM::Physical| ]][[{{#var:store|Uses}} DRM::Physical| ]]{{#vardefine:DRM|Physical}}
 
|#Default  = {{{1|}}}[[Category:Invalid template usage (DRM)]]
 
|#Default  = {{{1|}}}[[Category:Invalid template usage (DRM)]]
}}{{#if: {{{2}}} |&nbsp;{{{2}}}}}{{#vardefine:uses DRM|{{#var:uses DRM}},{{#var:DRM}}}}{{#vardefine:DRM|}}</includeonly>
+
}}{{#if: {{{2}}} |&nbsp;{{{2}}}}}{{#vardefine:uses DRM|{{#if:{{#var:uses DRM}}|{{#var:uses DRM}},{{#var:DRM}}|{{#var:DRM}}}}}}{{#vardefine:DRM|}}</includeonly>

Revision as of 09:11, 22 September 2021