Difference between revisions of "Template:Tickcross-nohack"

From PCGamingWiki, the wiki about fixing PC games
(updated ratings support)
(removed Semantic MediaWiki tagging (migrated to Cargo))
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1}}}}}
+
<includeonly>{{#switch:{{{1}}}
|yes
+
  |true    = <div title="Native support" class="svg-icon svg-25 tickcross-true"></div>
  |true    = <div title="{{{3|Native support}}}" class="svg-icon svg-25 tickcross-true"></div> {{#if: {{{2|}}} | [[{{{2}}}::true| ]] }}
+
  |false    = <div title="No native support" class="svg-icon svg-25 tickcross-false"></div>
|no
+
  |unknown  = <div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div>{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}
  |false    = <div title="{{{3|No native support}}}" class="svg-icon svg-25 tickcross-false"></div> {{#if: {{{2|}}} |  [[{{{2}}}::false| ]] }}
+
|#default = <div title="Error: '{{{1|}}}' not recognised. Supported values for this setting (case sensitive): true, false, unknown" class="svg-icon svg-25 tickcross-error"></div>{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]]}}{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}
  |unknown  = <div title="{{{3|Unknown}}}" class="svg-icon svg-25 tickcross-unknown"></div> {{#if: {{{2|}}} | [[{{{2}}}::unknown| ]] }}
+
}}</includeonly><noinclude>{{Documentation}}</noinclude>
|#default = [[Category:Invalid template usage]]
 
}}{{#if:{{{section|}}}|{{#switch:{{lc:{{{1}}}}}
 
|yes
 
|true    = {{#if:{{{section|}}}|{{#vardefine:PCGWR {{{section}}}|{{#expr:{{#var:PCGWR {{{section}}}}}+1}}}}}}{{#vardefine:PCGWR {{{section}}} known|{{#expr:{{#var:PCGWR {{{section}}} known}}+1}}}}
 
|no
 
|false   = {{#vardefine:PCGWR {{{section}}} known|{{#expr:{{#var:PCGWR {{{section}}} known}}+1}}}}
 
|unknown  = {{#vardefine:PCGWR {{{section}}} unknown|{{#expr:{{#var:PCGWR {{{section}}} unknown}}+1}}}}
 
}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
 

Latest revision as of 10:36, 18 October 2021

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