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/OS"

From PCGamingWiki, the wiki about fixing PC games
(fixed category name for DLC use)
(added visible error state)
Line 1: Line 1:
{{#switch:{{{1}}}
+
<includeonly>{{#if: {{#var:{{{1}}}}}|{{#switch:{{{1}}}
 
  |Windows = <div class="svg-icon svg-25 os-windows">[[File:Icon overlay.png|link=Windows|Windows]]</div>
 
  |Windows = <div class="svg-icon svg-25 os-windows">[[File:Icon overlay.png|link=Windows|Windows]]</div>
 
  |OS X    = <div class="svg-icon svg-25 os-osx">[[File:Icon overlay.png|link=OS X|macOS (OS X)]]</div>
 
  |OS X    = <div class="svg-icon svg-25 os-osx">[[File:Icon overlay.png|link=OS X|macOS (OS X)]]</div>
Line 6: Line 6:
 
  |DOS    = <div class="svg-icon svg-25 os-dos">[[File:Icon overlay.png|link=DOS|DOS]]</div>
 
  |DOS    = <div class="svg-icon svg-25 os-dos">[[File:Icon overlay.png|link=DOS|DOS]]</div>
 
  |Booter  = <div class="svg-icon svg-25 os-booter">[[File:Icon overlay.png|link=PC booter|PC booter]]</div>
 
  |Booter  = <div class="svg-icon svg-25 os-booter">[[File:Icon overlay.png|link=PC booter|PC booter]]</div>
}}
+
}}|<div class="svg-icon svg-25 os-error">[[File:Icon overlay.png|link=|Error: OS '{{{1|}}}' not found in infobox]]</div>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage ({{#var:section}})]]}}}}</includeonly>
 
 
{{#ifeq: {{NAMESPACE}} | | {{#if: {{#var:{{{1}}}}}||[[Category:Invalid template usage ({{#var:section}})]]}}}}
 

Revision as of 22:04, 10 April 2019