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 13: Line 13:
-->{{#ifeq: {{{4}}}|Power|&nbsp;version}}<!--
-->{{#ifeq: {{{4}}}|Power|&nbsp;version}}<!--
-->{{#ifeq: {{{4}}}|Speed|&nbsp;version}}]]}}<noinclude>
-->{{#ifeq: {{{4}}}|Speed|&nbsp;version}}]]}}<noinclude>
==How to use this template==
This template shows the version a Denjuu can be found in with images. For example, on Denjuu list pages, it would show like this:
{|
| {{v|Power}}
| <code><nowiki>{{v|Power}}</nowiki></code>
|-
| {{v|Speed}}
| <code><nowiki>{{v|Speed}}</nowiki></code>
|-
| {{v|Power|Speed}}
| <code><nowiki>{{v|Power|Speed}}</nowiki></code>
|}
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:
{|
| {{v|Telefang 1}}
| <code><nowiki>{{v|Telefang 1}}</nowiki></code>
|-
| {{v|Telefang 1|Power}}
| <code><nowiki>{{v|Telefang 1|Power}}</nowiki></code>
|-
| {{v|Telefang 1|Power|Speed}}
| <code><nowiki>{{v|Telefang 1|Power|Speed}}</nowiki></code>
|}
This template supports up to four parameters. If more are required, you can request this on the [[Template talk:{{PAGENAME}}|talk page]].
[[Category:Shortcut templates]]</noinclude>
[[Category:Shortcut templates]]</noinclude>

Revision as of 06:54, 7 April 2008

[[Image:{{{1}}}_icon.gif|Available in {{{1}}}]]

How to use this template

This template shows the version a Denjuu can be found in with images. For example, on Denjuu list pages, it would show like this:

Available in Power version  Not available in Speed version {{v|Power}}
 Not available in Power versionAvailable in Speed version {{v|Speed}}
Available in Power version Available in Speed version {{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:

Available in Telefang 1 {{v|Telefang 1}}
Available in Telefang 1 Available in Power version {{v|Telefang 1|Power}}
Available in Telefang 1 Available in Power version Available in Speed version {{v|Telefang 1|Power|Speed}}

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