Template:Arrow: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo 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.)
 
(12 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          = >
| #default    =
}}</span><noinclude>
== Usage ==
type=1 - &larr;
type=2 - &#9654;
type=3 - <
type=3 - >
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