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:Tickcross-nohack"

From PCGamingWiki, the wiki about fixing PC games
(removed deprecated third parameter, added var support)
(reworded error to name supported values)
(3 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> {{#if: {{{2|}}} | [[{{{2}}}::true| ]] }}
 
  |true    = <div title="Native support" class="svg-icon svg-25 tickcross-true"></div> {{#if: {{{2|}}} | [[{{{2}}}::true| ]] }}
|no
 
 
  |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> {{#if: {{{2|}}} |  [[{{{2}}}::false| ]] }}
 
  |unknown  = <div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div> {{#if: {{{2|}}} | [[{{{2}}}::unknown| ]] }}{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}
 
  |unknown  = <div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div> {{#if: {{{2|}}} | [[{{{2}}}::unknown| ]] }}{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}
  |#default = {{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage {{#if:{{#var:section}}|({{#var:section}})}}]] }}{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}
+
  |#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 {{#if:{{#var:section}}|({{#var:section}})}}]] }}{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 23:21, 26 April 2019

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