Template:V: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#ifeq: {{{1}}}|Speed| [[Image:BlankVersion.gif|Not available in Power version]]|{{#ifeq: {{{1}}}|Beta| [[Image:BlankVersion.gif|Not available in Alpha version]]}}}}<!-- | {{#ifeq: {{{1}}}|Speed| [[Image:BlankVersion.gif|Not available in Power version]]|{{#ifeq: {{{1}}}|Beta| [[Image:BlankVersion.gif|Not available in Alpha version]]}}}}<!-- For list pages | ||
--> | -->{{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| version}}<!-- | -->{{#ifeq: {{{1}}}|Power| version}}<!-- | ||
-->{{#ifeq: {{{1}}}|Speed| version}}<!-- | -->{{#ifeq: {{{1}}}|Speed| version}}<!-- | ||
Line 7: | Line 13: | ||
-->{{#ifeq: {{{1}}}|Red| version}}<!-- | -->{{#ifeq: {{{1}}}|Red| version}}<!-- | ||
-->{{#ifeq: {{{1}}}|Blue| version}}]]<!-- | -->{{#ifeq: {{{1}}}|Blue| version}}]]<!-- | ||
-->{{#if: {{{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| version}}|caption=Available in {{{2}}}<!-- | |||
-->{{#ifeq: {{{2}}}|Power| version}}<!-- | -->{{#ifeq: {{{2}}}|Power| version}}<!-- | ||
-->{{#ifeq: {{{2}}}|Speed| version}}<!-- | -->{{#ifeq: {{{2}}}|Speed| version}}<!-- | ||
Line 15: | Line 27: | ||
-->{{#ifeq: {{{2}}}|Blue| version}}]]<!-- | -->{{#ifeq: {{{2}}}|Blue| version}}]]<!-- | ||
-->|{{#ifeq:{{{1}}}|Power| [[Image:BlankVersion.gif|Not available in Speed version]]}}}} <!-- | -->|{{#ifeq:{{{1}}}|Power| [[Image:BlankVersion.gif|Not available in Speed version]]}}}} <!-- | ||
-->{{#if: {{{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| version}}|caption=Available in {{{3}}}<!-- | |||
-->{{#ifeq: {{{3}}}|Power| version}}<!-- | -->{{#ifeq: {{{3}}}|Power| version}}<!-- | ||
-->{{#ifeq: {{{3}}}|Speed| version}}<!-- | -->{{#ifeq: {{{3}}}|Speed| version}}<!-- | ||
Line 22: | Line 40: | ||
-->{{#ifeq: {{{2}}}|Red| version}}<!-- | -->{{#ifeq: {{{2}}}|Red| version}}<!-- | ||
-->{{#ifeq: {{{2}}}|Blue| version}}]]}}<!-- | -->{{#ifeq: {{{2}}}|Blue| version}}]]}}<!-- | ||
-->{{#if: {{{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| version}}|caption=Available in {{{4}}}<!-- | |||
-->{{#ifeq: {{{4}}}|Power| version}}<!-- | -->{{#ifeq: {{{4}}}|Power| version}}<!-- | ||
-->{{#ifeq: {{{4}}}|Speed| version}}<!-- | -->{{#ifeq: {{{4}}}|Speed| 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}}
|
{{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.