Difference between revisions of "Template:TPVersionBox"

From ZeldaChaos
Jump to: navigation, search
m
m (While I'm at it...)
Line 6: Line 6:
 
| GCN
 
| GCN
 
| Wii
 
| Wii
 +
| HD
 
|- style="background:lightgrey"
 
|- style="background:lightgrey"
 
| [[Image:{{switch|{{{1}}}|case: 1=Tick|case: 0=Cross|case: ?=Question|default=Cross}}.png]]
 
| [[Image:{{switch|{{{1}}}|case: 1=Tick|case: 0=Cross|case: ?=Question|default=Cross}}.png]]
 +
| [[Image:{{switch|{{{2}}}|case: 1=Tick|case: 0=Cross|case: ?=Question|default=Cross}}.png]]
 
| [[Image:{{switch|{{{2}}}|case: 1=Tick|case: 0=Cross|case: ?=Question|default=Cross}}.png]]
 
| [[Image:{{switch|{{{2}}}|case: 1=Tick|case: 0=Cross|case: ?=Question|default=Cross}}.png]]
 
|}</includeonly><noinclude>This is a templated version of the version support chart for TP glitches.
 
|}</includeonly><noinclude>This is a templated version of the version support chart for TP glitches.

Revision as of 03:00, 15 November 2015

This is a templated version of the version support chart for TP glitches.

I'm in the process of adding it to TP glitch pages.

Usage

Code Result
{{TPVersionBox|1|?}}
Compatible Versions
? GCN Wii HD
Tick.png Question.png Question.png

This template takes two numbers -- one for each version of the game. A value of 1 becomes a tick (Tick.png), a value of ? becomes a question mark (Question.png), and a value of 0 becomes a cross (Cross.png). Please note that blank/unspecified values (and values that aren't zeroes, ?s, or ones) become crosses. This can lead to useful shortcuts, but it can also cause issues if you accidentally omit parameters.

Additional Examples

Parameters Code Result
1 2
11 {{TPVersionBox|1|1}}
Compatible Versions
? GCN Wii HD
Tick.png Tick.png Question.png
10 {{TPVersionBox|1|0}}
Compatible Versions
? GCN Wii HD
Tick.png Cross.png Question.png
1  {{TPVersionBox|1||}}
Compatible Versions
? GCN Wii HD
Tick.png Question.png Question.png
1 {{TPVersionBox|1}}
Compatible Versions
? GCN Wii HD
Tick.png Question.png Question.png
1X {{TPVersionBox|1|X}}
Compatible Versions
? GCN Wii HD
Tick.png Question.png Question.png
2=1 {{TPVersionBox|2=1}}
Compatible Versions
? GCN Wii HD
Question.png Tick.png Question.png

Dependencies

This template depends on the switch template -- it uses programming logic that only the switch template and ParserFunctions can provide, and the latter is not installed on this wiki.

Personal tools
Namespaces

Variants
Actions
Glitches
Navigation
Affiliates
Toolbox
Google AdSense