Template:Arrow: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (nothing changed other than preparing for high-DPI.)
(Made consistent with the base arrows from Wikipedia, this page has been dormant for a long time and isn't in use so hopefully I'm okay overwriting the old arrows.)
 
Line 1: Line 1:
{{#switch:{{lc:{{{colour}}}}}
{{#switch:{{lc:{{{type|{{{1|right}}}}}}}}
| red        = <span style="color:{{#if:{{{1|}}}|{{{1}}}|red}}">
|r|right=
| blue        = <span style="color:{{#if:{{{1|}}}|{{{1}}}|blue}}">
|l|left=←
| green      = <span style="color:{{#if:{{{1|}}}|{{{1}}}|green}}">
|u|up=
| yellow      = <span style="color:{{#if:{{{1|}}}|{{{1}}}|yellow}}">
|d|down=↓
| orange      = <span style="color:{{#if:{{{1|}}}|{{{1}}}|orange}}">
|right-left|right/left|r/l|r-l=
| purple      = <span style="color:{{#if:{{{1|}}}|{{{1}}}|purple}}">
|h|horizontal=<span class="error">Please specify right (→) or left (←)</span>
| pink        = <span style="color:{{#if:{{{1|}}}|{{{1}}}|pink}}">
|v|vertical=<span class="error">Please specify up (↑) or down (↓)</span>
| white      = <span style="color:{{#if:{{{1|}}}|{{{1}}}|white}}">
|#default=
| gray        = <span style="color:{{#if:{{{1|}}}|{{{1}}}|gray}}">
| black      = <span style="color:{{#if:{{{1|}}}|{{{1}}}|black}}">
| lime        = <span style="color:{{#if:{{{1|}}}|{{{1}}}|lime}}">
| #default   = <span style="color:{{#if:{{{1|}}}|{{{1}}}|white}}">
}}
}}
{{#switch:{{lc:{{{type}}}}}
| 1          = &larr;
| 2          = &#9654;
| 3          = <
| 4          = >
| 5          = &rarr;
| 6          = &#9655;
| 7          = &#9656;
| 8          = &#9657;
| 9          = &#9658;
| 10          = &#9659;
| 11          = &#9660;
| 12          = &#9661;
| 13          = &#9662;
| 14          = &#9663;
| 15          = &#9664;
| 16          = &#9665;
| 17          = &#9666;
| 18          = &#9667;
| 19          = &#9668;
| 20          = &#9669;
| 21          = &#9650;
| 22          = &#9651;
| 23          = &#9652;
| 24          = &#9653;
| 25          = ↼
| 26          = ↽
| 27          = ↾
| 28          = ↿
| 29          = ⇀
| 30          = ⇁
| 31          = ⇂
| 32          = ⇃
| 33          = &#8606;
| 34          = &#8605;
| 35          = &#8604;
| 36          = [[File:Doublearrow_white.png|17px|link=]]
| #default    =
}}</span><noinclude>
type=1 - &larr;
type=2 - &#9654;
type=3 - <
type=4 - >
type=5 - &rarr;
type=6 - &#9655;
type=7 - &#9656;
type=8 - &#9657;
type=9 - &#9658;
type=10 - &#9659;
type=11 - &#9660;
type=12 - &#9661;
type=13 - &#9662;
type=14 - &#9663;
type=15 - &#9664;
type=16 - &#9665;
type=17 - &#9666;
type=18 - &#9667;
type=19 - &#9668;
type=20 - &#9669;
type=21 - &#9650;
type=22 - &#9651;
type=23 - &#9652;
type=24 - &#9653;
type=25 - ↼
type=26 - ↽
type=27 - ↾
type=28 - ↿
type=29 - ⇀
type=30 - ⇁
type=31 - ⇂
type=32 - ⇃
type=33 - &#8606;
type=34 - &#8605;
type=35 - &#8604;
type=36 - [[File:Doublearrow_white.png|17px|link=]]
colour=red/blue/green/yellow/orange/purple/pink/gray/black/lime
Example: <nowiki>{{Arrow|type=2|colour=lime}}</nowiki> {{Arrow|type=2|colour=lime}}
</noinclude>

Latest revision as of 16:02, 9 July 2024