Difference between revisions of "Template:Tickcross-a-nr"

From PCGamingWiki, the wiki about fixing PC games
(simplified handling for third parameter and cleanup category variable)
(removed Semantic MediaWiki tagging (migrated to Cargo))
 
Line 1: Line 1:
 
<includeonly>{{#switch:{{{1}}}
 
<includeonly>{{#switch:{{{1}}}
  |limited = {{#if:{{{3|}}}|<div title="Limited native support" class="svg-icon svg-25 tickcross-limited"></div>|<div title="Error: Note required for 'limited' state" class="svg-icon svg-25 tickcross-true-error"></div>}}{{#ifeq: {{NAMESPACE}}{{{3|}}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]] }}{{#if: {{{2|}}} | [[{{{2}}}::limited| ]]}}
+
  |limited = {{#if:{{{3|}}}|<div title="Limited native support" class="svg-icon svg-25 tickcross-limited"></div>|<div title="Error: Note required for 'limited' state" class="svg-icon svg-25 tickcross-true-error"></div>}}{{#ifeq: {{NAMESPACE}}{{{3|}}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]]}}
  |true    = <div title="Native support" class="svg-icon svg-25 tickcross-true"></div> {{#if: {{{2|}}} | [[{{{2}}}::true| ]] }}
+
  |true    = <div title="Native support" class="svg-icon svg-25 tickcross-true"></div>  
  |always on = {{#if:{{{3|}}}|<div title="Always on (no native option)" class="svg-icon svg-25 tickcross-always-on"></div>|<div title="Error: Note required for 'always on' state" class="svg-icon svg-25 tickcross-always-on-error"></div>}}{{#ifeq: {{NAMESPACE}}{{{3|}}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]] }}{{#if: {{{2|}}} | [[{{{2}}}::always on| ]]}}
+
  |always on = {{#if:{{{3|}}}|<div title="Always on (no native option)" class="svg-icon svg-25 tickcross-always-on"></div>|<div title="Error: Note required for 'always on' state" class="svg-icon svg-25 tickcross-always-on-error"></div>}}{{#ifeq: {{NAMESPACE}}{{{3|}}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]]}}
  |false    = <div title="No native support" class="svg-icon svg-25 tickcross-false"></div> {{#if: {{{2|}}} |  [[{{{2}}}::false| ]] }}
+
  |false    = <div title="No native support" class="svg-icon svg-25 tickcross-false"></div>
  |hackable = {{#if:{{{3|}}}|<div title="Hackable" class="svg-icon svg-25 tickcross-hackable"></div>|<div title="Error: Note required for 'hackable' state" class="svg-icon svg-25 tickcross-hackable-error"></div>}}{{#ifeq: {{NAMESPACE}}{{{3|}}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]] }}{{#if: {{{2|}}} | [[{{{2}}}::hackable| ]]}}
+
  |hackable = {{#if:{{{3|}}}|<div title="Hackable" class="svg-icon svg-25 tickcross-hackable"></div>|<div title="Error: Note required for 'hackable' state" class="svg-icon svg-25 tickcross-hackable-error"></div>}}{{#ifeq: {{NAMESPACE}}{{{3|}}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]]}}
  |unknown  = <div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div> {{#if: {{{2|}}} | [[{{{2}}}::unknown| ]] }}
+
  |unknown  = <div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div>  
  |#default = <div title="Error: '{{{1|}}}' not recognised. Supported values for this setting (case sensitive): limited, true, always on, false, hackable, unknown" class="svg-icon svg-25 tickcross-error"></div>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]] }}
+
  |#default = <div title="Error: '{{{1|}}}' not recognised. Supported values for this setting (case sensitive): limited, true, always on, false, hackable, unknown" class="svg-icon svg-25 tickcross-error"></div>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]]}}
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 10:33, 18 October 2021

Documentation for the above template (sometimes hidden from view).