Difference between revisions of "User:Arrow/Sandbox"

From Magickapedia
Jump to: navigation, search
(Removed test values)
(Working on something else now; check history for the element template work)
Line 1: Line 1:
{{#if:{{{1|}}}|
 
{{#switch:{{lc:{{{1}}}}}
 
|f
 
|fire = [[File:Element_fire.png|Fire|link=Fire|alt=Fire (F)|x32px]]
 
|q
 
|water = [[File:Element_water.png|Water|link=Water|alt=Water(Q)|x32px]]
 
|cure
 
|heal
 
|w
 
|life = [[File:Element_life.png|Life|link=Life|alt=Life (W)|x32px]]
 
|arcane
 
|arcan
 
|s = [[File:Element_arcane.png|Arcane|link=Arcane|alt=Arcane (S)|x32px]]
 
|e
 
|deflect
 
|wall
 
|shield = [[File:Element_shield.png|Shield|link=Shield|alt=Shield (E)|x32px]]
 
|d
 
|quake
 
|rock
 
|stone
 
|earth = [[File:Element_earth.png|Earth|link=Earth|alt=Earth (D)|x32px]]
 
|snow
 
|r
 
|cold = [[File:Element_cold.png|Cold|link=Cold|alt=Cold (R)|x32px]]
 
|thunder
 
|bolt
 
|lightning
 
|a = [[File:Element_lightning.png|Lightning|link=Lightning|alt=Lightning (A)|x32px]]
 
|steam
 
|qf
 
|gas = [[File:Element_steam.png|Steam|link=Steam|alt=Steam|x32px]]
 
|ice
 
|frost
 
|qr = [[File:Element_ice.png|Ice|link=Ice|alt=Ice|x32px]]
 
|#default = <span style="color:#FF0000">{{uc:ERROR: No Element Specified}}</span>
 
}} | }}
 
{{#if:{{{2|}}}|
 
{{#switch:{{lc:{{{2}}}}}
 
|f
 
|fire = [[File:Element_fire.png|Fire|link=Fire|alt=Fire (F)|x32px]]
 
|q
 
|water = [[File:Element_water.png|Water|link=Water|alt=Water(Q)|x32px]]
 
|cure
 
|heal
 
|w
 
|life = [[File:Element_life.png|Life|link=Life|alt=Life (W)|x32px]]
 
|arcane
 
|arcan
 
|s = [[File:Element_arcane.png|Arcane|link=Arcane|alt=Arcane (S)|x32px]]
 
|e
 
|deflect
 
|wall
 
|shield = [[File:Element_shield.png|Shield|link=Shield|alt=Shield (E)|x32px]]
 
|d
 
|quake
 
|rock
 
|stone
 
|earth = [[File:Element_earth.png|Earth|link=Earth|alt=Earth (D)|x32px]]
 
|snow
 
|r
 
|cold = [[File:Element_cold.png|Cold|link=Cold|alt=Cold (R)|x32px]]
 
|thunder
 
|bolt
 
|lightning
 
|a = [[File:Element_lightning.png|Lightning|link=Lightning|alt=Lightning (A)|x32px]]
 
|steam
 
|qf
 
|gas = [[File:Element_steam.png|Steam|link=Steam|alt=Steam|x32px]]
 
|ice
 
|frost
 
|qr = [[File:Element_ice.png|Ice|link=Ice|alt=Ice|x32px]]
 
| =
 
|#default = <span style="color:#FF0000">{{uc:ERROR: No Element Specified}}</span>
 
}} | }}
 
{{#if:{{{3|}}}|
 
{{#switch:{{lc:{{{3}}}}}
 
|f
 
|fire = [[File:Element_fire.png|Fire|link=Fire|alt=Fire (F)|x32px]]
 
|q
 
|water = [[File:Element_water.png|Water|link=Water|alt=Water(Q)|x32px]]
 
|cure
 
|heal
 
|w
 
|life = [[File:Element_life.png|Life|link=Life|alt=Life (W)|x32px]]
 
|arcane
 
|arcan
 
|s = [[File:Element_arcane.png|Arcane|link=Arcane|alt=Arcane (S)|x32px]]
 
|e
 
|deflect
 
|wall
 
|shield = [[File:Element_shield.png|Shield|link=Shield|alt=Shield (E)|x32px]]
 
|d
 
|quake
 
|rock
 
|stone
 
|earth = [[File:Element_earth.png|Earth|link=Earth|alt=Earth (D)|x32px]]
 
|snow
 
|r
 
|cold = [[File:Element_cold.png|Cold|link=Cold|alt=Cold (R)|x32px]]
 
|thunder
 
|bolt
 
|lightning
 
|a = [[File:Element_lightning.png|Lightning|link=Lightning|alt=Lightning (A)|x32px]]
 
|steam
 
|qf
 
|gas = [[File:Element_steam.png|Steam|link=Steam|alt=Steam|x32px]]
 
|ice
 
|frost
 
|qr = [[File:Element_ice.png|Ice|link=Ice|alt=Ice|x32px]]
 
|#default = <span style="color:#FF0000">{{uc:ERROR: No Element Specified}}</span>
 
}} | }}
 
{{#if:{{{4|}}}|
 
{{#switch:{{lc:{{{4}}}}}
 
|f
 
|fire = [[File:Element_fire.png|Fire|link=Fire|alt=Fire (F)|x32px]]
 
|q
 
|water = [[File:Element_water.png|Water|link=Water|alt=Water(Q)|x32px]]
 
|cure
 
|heal
 
|w
 
|life = [[File:Element_life.png|Life|link=Life|alt=Life (W)|x32px]]
 
|arcane
 
|arcan
 
|s = [[File:Element_arcane.png|Arcane|link=Arcane|alt=Arcane (S)|x32px]]
 
|e
 
|deflect
 
|wall
 
|shield = [[File:Element_shield.png|Shield|link=Shield|alt=Shield (E)|x32px]]
 
|d
 
|quake
 
|rock
 
|stone
 
|earth = [[File:Element_earth.png|Earth|link=Earth|alt=Earth (D)|x32px]]
 
|snow
 
|r
 
|cold = [[File:Element_cold.png|Cold|link=Cold|alt=Cold (R)|x32px]]
 
|thunder
 
|bolt
 
|lightning
 
|a = [[File:Element_lightning.png|Lightning|link=Lightning|alt=Lightning (A)|x32px]]
 
|steam
 
|qf
 
|gas = [[File:Element_steam.png|Steam|link=Steam|alt=Steam|x32px]]
 
|ice
 
|frost
 
|qr = [[File:Element_ice.png|Ice|link=Ice|alt=Ice|x32px]]
 
|#default = <span style="color:#FF0000">{{uc:ERROR: No Element Specified}}</span>
 
}} | }}
 
{{#if:{{{5|}}}|
 
{{#switch:{{lc:{{{5}}}}}
 
|f
 
|fire = [[File:Element_fire.png|Fire|link=Fire|alt=Fire (F)|x32px]]
 
|q
 
|water = [[File:Element_water.png|Water|link=Water|alt=Water(Q)|x32px]]
 
|cure
 
|heal
 
|w
 
|life = [[File:Element_life.png|Life|link=Life|alt=Life (W)|x32px]]
 
|arcane
 
|arcan
 
|s = [[File:Element_arcane.png|Arcane|link=Arcane|alt=Arcane (S)|x32px]]
 
|e
 
|deflect
 
|wall
 
|shield = [[File:Element_shield.png|Shield|link=Shield|alt=Shield (E)|x32px]]
 
|d
 
|quake
 
|rock
 
|stone
 
|earth = [[File:Element_earth.png|Earth|link=Earth|alt=Earth (D)|x32px]]
 
|snow
 
|r
 
|cold = [[File:Element_cold.png|Cold|link=Cold|alt=Cold (R)|x32px]]
 
|thunder
 
|bolt
 
|lightning
 
|a = [[File:Element_lightning.png|Lightning|link=Lightning|alt=Lightning (A)|x32px]]
 
|steam
 
|qf
 
|gas = [[File:Element_steam.png|Steam|link=Steam|alt=Steam|x32px]]
 
|ice
 
|frost
 
|qr = [[File:Element_ice.png|Ice|link=Ice|alt=Ice|x32px]]
 
|#default = <span style="color:#FF0000">{{uc:ERROR: No Element Specified}}</span>
 
}} | }}
 
<noinclude>
 
==Usage==
 
This template is a simple switch-case that enables easy access to element icons. This template also accepts key presses as well as the element name; "d" is the same as "earth". The template also accepts some synonyms, such as "frost" and "cold". The table below is for comparing icons as they are rendered by the template.
 
<div style="text-align:center">
 
{| border="3"
 
|-
 
! Life || Arcane || Fire || Water || Cold || Earth || Lteing || Shield || Steam || Ice
 
|-
 
| {{Element|life}} || {{Element|arcane}} || {{Element|fire}} || {{Element|water}} || {{element|cold}} || {{element|earth}} || {{element|lightning}} || {{element|shield}} || {{element|steam}} || {{element|ice}}
 
|-
 
|}
 
</div>
 
[[Category:Templates]]</noinclude>
 

Revision as of 15:37, 12 February 2011