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"

From PCGamingWiki, the wiki about fixing PC games
(updated true/false default titles)
(updated limited and hackable error tooltips)
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1}}}}}
+
<includeonly>{{#switch:{{{1}}}
|yes
+
  |limited = {{#if: {{{2|}}} | [[{{{2}}}::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}} | | [[Category:Invalid template usage {{#if:{{#var:section}}|({{#var:section}})}}]] }}}} |<div title="Limited native support" class="svg-icon svg-25 tickcross-limited"></div>}}
  |true    = <span title="{{{3|Native support}}}">[[File:True icon.svg|{{{size|25px}}}|link=|alt={{{3|Native support}}}]]</span> {{#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    = <span title="{{{3|No native support}}}">[[File:False icon.svg|{{{size|25px}}}|link=|alt={{{3|No native support}}}]]</span> {{#if: {{{2|}}} |  [[{{{2}}}::false| ]] }}
+
  |hackable = {{#if: {{{2|}}} | [[{{{2}}}::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}} | | [[Category:Invalid template usage {{#if:{{#var:section}}|({{#var:section}})}}]] }}}} |<div title="Hackable" class="svg-icon svg-25 tickcross-hackable"></div>}}
  |hackable = <span title="{{{3|Hackable}}}">[[File:Hackable icon.svg|{{{size|25px}}}|link=|alt={{{3|Hackable}}}]]</span> {{#if: {{{2|}}} | [[{{{2}}}::hackable| ]] }}
+
  |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  = <span title="{{{3|Unknown}}}">[[File:Unknown icon.svg|{{{size|25px}}}|link=|alt={{{3|Unknown}}}]]</span> {{#if: {{{2|}}} | [[{{{2}}}::unknown| ]] }}
+
  |#default = <div title="Error: '{{{1|}}}' not recognised. Supported values for this setting (case sensitive): limited, true, false, hackable, 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}}}}
|not applicable
 
  |notapplicable
 
|na
 
|n/a      = <span title="{{{3|Not applicable}}}">[[File:Not applicable icon.svg|{{{size|25px}}}|link=|alt={{{3|Not applicable}}}]]</span>
 
|#default = [[Category:Invalid template usage]]
 
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 05:48, 6 June 2019

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}}