Difference between revisions of "Template:TPVersionBox"

From ZeldaChaos
Jump to: navigation, search
m (While I'm at it...)
m
Line 1: Line 1:
 
<includeonly>{|style="background:white;text-align:center"
 
<includeonly>{|style="background:white;text-align:center"
 
|- style="background:lightgrey"
 
|- style="background:lightgrey"
!colSpan="3" style="padding:0.1em 0.2em 0.12em 0.2em"|Compatible Versions
+
!colSpan="4" style="padding:0.1em 0.2em 0.12em 0.2em"|Compatible Versions
 
|- style="background:lightgrey"
 
|- style="background:lightgrey"
 
|rowSpan="2" style="width:1em;font-size:3em;font-weight:bold"|[[Twilight Princess Glitches - Version Guide|?]]
 
|rowSpan="2" style="width:1em;font-size:3em;font-weight:bold"|[[Twilight Princess Glitches - Version Guide|?]]
Line 10: Line 10:
 
| [[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]]
+
| [[Image:{{switch|{{{3}}}|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:01, 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