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
(Created page with "{{#switch:{{lc:{{{1}}}}} |true=<span title="Native">link=|alt=Native</span>{{#if: {{{2|}}} | [[{{{2}}}::true]] }} |false=<span title="Impossible">[[File:Cros...")
 
(simplified handling for third parameter and cleanup category variable)
(30 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#switch:{{lc:{{{1}}}}}
+
<includeonly>{{#switch:{{{1}}}
|true=<span title="Native">[[File:Tick.png|link=|alt=Native]]</span>{{#if: {{{2|}}} | [[{{{2}}}::true]] }}
+
|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}}{{{3|}}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]] }}{{#if: {{{2|}}} | [[{{{2}}}::limited| ]]}}
|false=<span title="Impossible">[[File:Cross.png|link=|alt=Impossible]]</span>{{#if: {{{2|}}} | [[{{{2}}}::false]] }}
+
|true    = <div title="Native support" class="svg-icon svg-25 tickcross-true"></div> {{#if: {{{2|}}} | [[{{{2}}}::true| ]] }}
|hackable=<span title="Hackable">[[File:Wrench.png|link=|alt=Hackable]]</span>{{#if: {{{2|}}} | [[{{{2}}}::hackable]] }}
+
|false   = <div title="No native support" class="svg-icon svg-25 tickcross-false"></div> {{#if: {{{2|}}} | [[{{{2}}}::false| ]] }}
|unknown=<span title="Unknown">[[File:Unknown.png|link=|alt=Unknown]]</span>{{#if: {{{2|}}} | [[{{{2}}}::unknown]] }}
+
|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}}{{{3|}}} | | [[Category:Invalid template usage ({{#var:section|Tickcross}})]] }}{{#if: {{{2|}}} | [[{{{2}}}::hackable| ]]}}
|#default=
+
|unknown = <div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div> {{#if: {{{2|}}} | [[{{{2}}}::unknown| ]] }}{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}
}}<noinclude>{{Documentation}}</noinclude>
+
|#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 ({{#var:section|Tickcross}})]] }}{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}
 +
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 07:30, 13 September 2021

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