Template:Arrow: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(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.)
 
(10 intermediate revisions by 2 users not shown)
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=
| #default    = <span style="color:{{#if:{{{1|}}}|{{{1}}}|white}}">
|d|down=
|right-left|right/left|r/l|r-l=↔
|h|horizontal=<span class="error">Please specify right (→) or left (←)</span>
|v|vertical=<span class="error">Please specify up (↑) or down (↓)</span>
|#default=→
}}
}}
{{#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;
| #default    =
}}</span><noinclude>
== Usage ==
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;
colour=red/blue/green
Example: {{Arrow|type=2|colour=green}) <span style="color:{{#if:{{{1|}}}|{{{1}}}|green}}">&#9654;</span>
</noinclude>

Latest revision as of 16:02, 9 July 2024