Difference between revisions of "Template:Tickcross-nohack"

From PCGamingWiki, the wiki about fixing PC games
(added ratings support)
(updated ratings support)
Line 1: Line 1:
 
<includeonly>{{#switch:{{lc:{{{1}}}}}
 
<includeonly>{{#switch:{{lc:{{{1}}}}}
 
  |yes
 
  |yes
  |true    = <div title="{{{3|Native support}}}" class="svg-icon svg-25 tickcross-true"></div> {{#if: {{{2|}}} | [[{{{2}}}::true| ]] }}{{#if:{{{section|}}}|{{#vardefine:PCGWR {{{section}}}|{{#expr:{{#var:PCGWR {{{section}}}}}+1}}}}}}
+
  |true    = <div title="{{{3|Native support}}}" class="svg-icon svg-25 tickcross-true"></div> {{#if: {{{2|}}} | [[{{{2}}}::true| ]] }}
 
  |no
 
  |no
 
  |false    = <div title="{{{3|No native support}}}" class="svg-icon svg-25 tickcross-false"></div> {{#if: {{{2|}}} |  [[{{{2}}}::false| ]] }}
 
  |false    = <div title="{{{3|No native support}}}" class="svg-icon svg-25 tickcross-false"></div> {{#if: {{{2|}}} |  [[{{{2}}}::false| ]] }}
 
  |unknown  = <div title="{{{3|Unknown}}}" class="svg-icon svg-25 tickcross-unknown"></div> {{#if: {{{2|}}} | [[{{{2}}}::unknown| ]] }}
 
  |unknown  = <div title="{{{3|Unknown}}}" class="svg-icon svg-25 tickcross-unknown"></div> {{#if: {{{2|}}} | [[{{{2}}}::unknown| ]] }}
 
  |#default = [[Category:Invalid template usage]]
 
  |#default = [[Category:Invalid template usage]]
}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
}}{{#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>

Revision as of 06:31, 22 February 2018

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