Template:V: Difference between revisions

From Wikifang, a definitive guide to Telefang, Dino Device and Bugsite
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#ifeq: {{{1}}}|Speed|&nbsp;[[Image:BlankVersion.gif|Not available in Power version]]|{{#ifeq: {{{1}}}|Beta|&nbsp;[[Image:BlankVersion.gif|Not available in Alpha version]]}}}}<!--       For list pages
{{#ifeq: {{{1}}}|Speed|&nbsp;[[Image:BlankVersion.gif|Not available in Power version]]|{{#ifeq: {{{1}}}|Beta|&nbsp;[[Image:BlankVersion.gif|Not available in Alpha version]]}}}}<!--   For list pages
-->[[Image:{{{1}}}_icon.gif|Available in {{{1}}}<!--
-->{{click|image={{{1}}}_icon.gif|link={{{1}}}<!--
-->{{#ifeq: {{{1}}}|Power|_version}}<!--                            So the game names and others don't go in, same below
-->{{#ifeq: {{{1}}}|Speed|_version}}<!--
-->{{#ifeq: {{{1}}}|Alpha|_version}}<!--
-->{{#ifeq: {{{1}}}|Beta|_version}}<!--
-->{{#ifeq: {{{1}}}|Red|_version}}<!--
-->{{#ifeq: {{{1}}}|Blue|_version}}|caption=Available in {{{1}}}<!--
-->{{#ifeq: {{{1}}}|Power|&nbsp;version}}<!--
-->{{#ifeq: {{{1}}}|Power|&nbsp;version}}<!--
-->{{#ifeq: {{{1}}}|Speed|&nbsp;version}}<!--
-->{{#ifeq: {{{1}}}|Speed|&nbsp;version}}<!--
Line 7: Line 13:
-->{{#ifeq: {{{1}}}|Red|&nbsp;version}}<!--
-->{{#ifeq: {{{1}}}|Red|&nbsp;version}}<!--
-->{{#ifeq: {{{1}}}|Blue|&nbsp;version}}]]<!--
-->{{#ifeq: {{{1}}}|Blue|&nbsp;version}}]]<!--
-->{{#if: {{{2|}}} | [[Image:{{{2}}}_icon.gif|Available in {{{2}}}<!--
-->{{#if: {{{2|}}} | {{click|image={{{2}}}_icon.gif|link={{{2}}}<!--
-->{{#ifeq: {{{2}}}|Power|_version}}<!--                            So the game names and others don't go in, same below
-->{{#ifeq: {{{2}}}|Speed|_version}}<!--
-->{{#ifeq: {{{2}}}|Alpha|_version}}<!--
-->{{#ifeq: {{{2}}}|Beta|_version}}<!--
-->{{#ifeq: {{{2}}|Red|_version}}<!--
-->{{#ifeq: {{{2}}}|Blue|&nbsp;version}}|caption=Available in {{{2}}}<!--
-->{{#ifeq: {{{2}}}|Power|&nbsp;version}}<!--
-->{{#ifeq: {{{2}}}|Power|&nbsp;version}}<!--
-->{{#ifeq: {{{2}}}|Speed|&nbsp;version}}<!--
-->{{#ifeq: {{{2}}}|Speed|&nbsp;version}}<!--
Line 15: Line 27:
-->{{#ifeq: {{{2}}}|Blue|&nbsp;version}}]]<!--
-->{{#ifeq: {{{2}}}|Blue|&nbsp;version}}]]<!--
-->|{{#ifeq:{{{1}}}|Power|&nbsp;[[Image:BlankVersion.gif|Not available in Speed version]]}}}} <!--
-->|{{#ifeq:{{{1}}}|Power|&nbsp;[[Image:BlankVersion.gif|Not available in Speed version]]}}}} <!--
-->{{#if: {{{3|}}} | [[Image:{{{3}}}_icon.gif|Available in {{{3}}}<!--
-->{{#if: {{{3|}}} | {{click|image={{{3}}}_icon.gif|link={{{3}}}<!--
-->{{#ifeq: {{{3}}}|Power|_version}}<!--                            So the game names and others don't go in, same below
-->{{#ifeq: {{{3}}}|Speed|_version}}<!--
-->{{#ifeq: {{{3}}}|Alpha|_version}}<!--
-->{{#ifeq: {{{3}}}|Beta|_version}}<!--
-->{{#ifeq: {{{3}}|Red|_version}}<!--
-->{{#ifeq: {{{3}}}|Blue|&nbsp;version}}|caption=Available in {{{3}}}<!--
-->{{#ifeq: {{{3}}}|Power|&nbsp;version}}<!--
-->{{#ifeq: {{{3}}}|Power|&nbsp;version}}<!--
-->{{#ifeq: {{{3}}}|Speed|&nbsp;version}}<!--
-->{{#ifeq: {{{3}}}|Speed|&nbsp;version}}<!--
Line 22: Line 40:
-->{{#ifeq: {{{2}}}|Red|&nbsp;version}}<!--
-->{{#ifeq: {{{2}}}|Red|&nbsp;version}}<!--
-->{{#ifeq: {{{2}}}|Blue|&nbsp;version}}]]}}<!--
-->{{#ifeq: {{{2}}}|Blue|&nbsp;version}}]]}}<!--
-->{{#if: {{{4|}}} | [[Image:{{{4}}}_icon.gif|Available in {{{4}}}<!--
-->{{#if: {{{4|}}} | {{click|image={{{4}}}_icon.gif|link={{{4}}}<!--
-->{{#ifeq: {{{4}}}|Power|_version}}<!--                            So the game names and others don't go in, same below
-->{{#ifeq: {{{4}}}|Speed|_version}}<!--
-->{{#ifeq: {{{4}}}|Alpha|_version}}<!--
-->{{#ifeq: {{{4}}}|Beta|_version}}<!--
-->{{#ifeq: {{{4}}|Red|_version}}<!--
-->{{#ifeq: {{{4}}}|Blue|&nbsp;version}}|caption=Available in {{{4}}}<!--
-->{{#ifeq: {{{4}}}|Power|&nbsp;version}}<!--
-->{{#ifeq: {{{4}}}|Power|&nbsp;version}}<!--
-->{{#ifeq: {{{4}}}|Speed|&nbsp;version}}<!--
-->{{#ifeq: {{{4}}}|Speed|&nbsp;version}}<!--

Revision as of 00:16, 8 August 2008

{{click|image={{{1}}}_icon.gif|link={{{1}}}|caption=Available in {{{1}}}]]{{#if: | Template:Click {{#if: | Template:Click{{#if: | Template:Click

How to use this template

This template shows the version a Denjuu/Dino/Bug can be found in with images.

For example, on Denjuu list pages, it would show like this:

image=Power_icon.gif|link=Power_version|caption=Available in Power version]]{{#if: | Template:Click {{#if: | Template:Click{{#if: | Template:Click {{v|Power}}
 Not available in Power version{{click|image=Speed_icon.gif|link=Speed_version|caption=Available in Speed version]]{{#if: | Template:Click {{#if: | Template:Click{{#if: | Template:Click {{v|Speed}}
image=Power_icon.gif|link=Power_version|caption=Available in Power version]]{{#if: Speed | Template:Click {{#if: | Template:Click{{#if: | Template:Click {{v|Power|Speed}}

This spaces them out so as to provide better viewing. The spaces also have a tooltip showing that it is not found in that version.

However, when this is used with infoboxes and others, it would not have the space as the first parameter would usually be like "Telefang 1" or "Bugsite". Thus there would be no space, as shown below:

image=Telefang 1_icon.gif|link=Telefang 1|caption=Available in Telefang 1]]{{#if: | Template:Click {{#if: | Template:Click{{#if: | Template:Click {{v|Telefang 1}}
image=Telefang 1_icon.gif|link=Telefang 1|caption=Available in Telefang 1]]{{#if: Power | Template:Click {{#if: | Template:Click{{#if: | Template:Click {{v|Telefang 1|Power}}
image=Telefang 1_icon.gif|link=Telefang 1|caption=Available in Telefang 1]]{{#if: Power | Template:Click {{#if: Speed | Template:Click{{#if: | Template:Click {{v|Telefang 1|Power|Speed}}

This template supports up to four parameters. If more are required, you can request this on the talk page.