Difference between revisions of "Template:Tickcross"
From PCGamingWiki, the wiki about fixing PC games
(added namespace check) |
(added ratings support) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{1}}}}} | <includeonly>{{#switch:{{lc:{{{1}}}}} | ||
|yes | |yes | ||
− | |true = <div title="{{{3|Native support}}}" class="svg-icon svg-25 tickcross-true"></div> {{#if: {{{2|}}} | [[{{{2}}}::true| ]] }} | + | |true = <div title="{{{3|Native support}}}" class="svg-icon svg-25 tickcross-true"></div> {{#if: {{{2|}}} | [[{{{2}}}::true| ]] }}{{#if:{{{section|}}}|{{#vardefine:PCGWR {{{section}}}|{{#expr:{{#var:PCGWR {{{section}}}}}+1}}}}}} |
|no | |no | ||
|false = <div title="{{{3|No native support}}}" class="svg-icon svg-25 tickcross-false"></div> {{#if: {{{2|}}} | [[{{{2}}}::false| ]] }} | |false = <div title="{{{3|No native support}}}" class="svg-icon svg-25 tickcross-false"></div> {{#if: {{{2|}}} | [[{{{2}}}::false| ]] }} | ||
− | |hackable = <div title="{{{3|Hackable}}}" class="svg-icon svg-25 tickcross-hackable"></div> {{#if: {{{2|}}} | [[{{{2}}}::hackable| ]] }} | + | |hackable = <div title="{{{3|Hackable}}}" class="svg-icon svg-25 tickcross-hackable"></div> {{#if: {{{2|}}} | [[{{{2}}}::hackable| ]] }}{{#if:{{{section|}}}|{{#vardefine:PCGWR {{{section}}}|{{#expr:{{#var:PCGWR {{{section}}}}}+0.5}}}}}} |
|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> | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 03:27, 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}}
Visit Template:Tickcross/Documentation to edit this text. (How does this work?)