Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.

Difference between revisions of "Template:Tickcross"

From PCGamingWiki, the wiki about fixing PC games
(added namespace check)
(updated ratings support)
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
  |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 = {{#ifeq: {{NAMESPACE}} | |[[Category:Invalid template usage]]}}
 
  |#default = {{#ifeq: {{NAMESPACE}} | |[[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}}}}
 +
|hackable = {{#if:{{{section|}}}|{{#vardefine:PCGWR {{{section}}}|{{#expr:{{#var:PCGWR {{{section}}}}}+0.5}}}}}}{{#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:30, 22 February 2018

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

This template is used within the settings templates to show an icon stating the presence of certain features or settings.

Arguments
  • 1 - Can only be one of the following: true, limited, false, hackable, unknown;
Syntax

{{Tickcross|1}}