Difference between revisions of "Template:Tickcross-na"
From PCGamingWiki, the wiki about fixing PC games
(added error states) |
(split limited from true, updated error tooltip) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{1}}}}} | <includeonly>{{#switch:{{lc:{{{1}}}}} | ||
+ | |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" 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>}} | ||
|yes | |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| ]] }} | ||
Line 8: | Line 9: | ||
|na | |na | ||
|n/a = <div title="Not applicable" class="svg-icon svg-25 tickcross tickcross-not-applicable"></div> | |n/a = <div title="Not applicable" class="svg-icon svg-25 tickcross tickcross-not-applicable"></div> | ||
− | |#default = <div title="Error: Value not supported for this setting" 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}}}} | + | |#default = <div title="Error: Value '{{{1|}}}' not supported for this setting" 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 08:44, 8 April 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. It can optionally take a second argument to automatically set the value of a property.
- Arguments
1
- Can only be one of the following: true, false, hackable, unknown, n/a;2
- Name of the relevant property;
- Syntax
{{Tickcross-na|1|2}}
Visit Template:Tickcross-na/Documentation to edit this text. (How does this work?)