Difference between revisions of "Template:Arrow/core"

From blackwiki
Jump to navigation Jump to search
(other options)
m (7 revisions imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{#switch:{{{1|}}}
 
{{#switch:{{{1|}}}
| green
+
|green|purple|grey= {{#switch:{{lc:{{{2|right}}}}}
| purple
+
|right=[[File:Go-next{{#ifeq:{{{1}}}|green||-{{{1}}}}}.svg|15px|alt=→]]
| grey   = {{#switch:{{lc:{{{2|right}}}}}
+
|left=[[File:Go-previous{{#ifeq:{{{1}}}|green||-{{{1}}}}}.svg|15px|alt=←]]
            | right = [[File:Go-next{{#ifeq:{{{1}}}|green||-{{{1}}}}}.svg|{{{size|15}}}px|alt=→]]
+
|up=[[File:Go-up{{#ifeq:{{{1}}}|green||-{{{1}}}}}.svg|15px|alt=↑]]
            | left = [[File:Go-previous{{#ifeq:{{{1}}}|green||-{{{1}}}}}.svg|{{{size|15}}}px|alt=←]]
+
|down=[[File:Go-down{{#ifeq:{{{1}}}|green||-{{{1}}}}}.svg|15px|alt=↓]]
            | up   = [[File:Go-up{{#ifeq:{{{1}}}|green||-{{{1}}}}}.svg|{{{size|15}}}px|alt=↑]]
+
}}
            | down = [[File:Go-down{{#ifeq:{{{1}}}|green||-{{{1}}}}}.svg|{{{size|15}}}px|alt=↓]]
+
|red= {{#switch:{{lc:{{{2|right}}}}}
            }}
+
|right=[[File:Go-next-red.svg|15px|alt=→]]
| red   = {{#switch:{{lc:{{{2|right}}}}}
+
|left=<span style="color:red">←</span>
            | right = [[File:Go-next-red.svg|{{{size|15}}}px|alt=→]]
+
|up=[[File:Gnome-go-up.svg|15px|alt=↑]]
            | left = <span style="color:red">←</span>
+
|down=[[File:RedHut.svg|15px|alt=↓]]
            | up   = [[File:Gnome-go-up.svg|{{{size|15}}}px|alt=↑]]
+
}}
            | down = [[File:RedHut.svg|{{{size|15}}}px|alt=↓]]
+
|orange= {{#switch:{{lc:{{{2|right}}}}}
            }}
+
|right=[[File:Human-go-right.svg|15px|alt=→]]
| orange = {{#switch:{{lc:{{{2|right}}}}}
+
|left=[[File:Human-go-left.svg|15px|alt=←]]
            | right = [[File:Human-go-right.svg|{{{size|15}}}px|alt=→]]
+
|up=[[File:Human-go-up.svg|15px|alt=↑]]
            | left = [[File:Human-go-left.svg|{{{size|15}}}px|alt=←]]
+
|down=[[File:Human-go-down.svg|15px|alt=↓]]
            | up   = [[File:Human-go-up.svg|{{{size|15}}}px|alt=↑]]
+
}}
            | down = [[File:Human-go-down.svg|{{{size|15}}}px|alt=↓]]
+
|blue={{#switch:{{lc:{{{2|right}}}}}
            }}
+
|right=[[File:Gnome-go-next.svg|15px|alt=→]]
| blue   = {{#switch:{{lc:{{{2|right}}}}}
+
|left=[[File:Gnome-go-previous.svg|15px|alt=←]]
            | right = [[File:Gnome-go-next.svg|{{{size|15}}}px|alt=→]]
+
|up=[[File:Gnome-go-up.svg|15px|alt=↑]]
            | left = [[File:Gnome-go-previous.svg|{{{size|15}}}px|alt=←]]
+
|down=[[File:Gnome-go-down.svg|15px|alt=↓]]
            | up   = [[File:Gnome-go-up.svg|{{{size|15}}}px|alt=↑]]
+
}}
            | down = [[File:Gnome-go-down.svg|{{{size|15}}}px|alt=↓]]
+
|#default= {{#switch:{{lc:{{{type|{{{1|right}}}}}}}}
            }}
+
|r|right=→
| #default = <!-- 15px ≡ 100% size above, so each px ≡ 100%/15 = 6⅔% ≈ 6.667%.
+
  |l|left=←
                  Hence, given px-size, %-size ≈ [px-size * 6.667].
+
  |u|up=↑
  --><span style="font-size:{{#expr:{{{size|15}}}*6.667}}%"><!--
+
  |d|down=↓
  -->{{#switch:{{lc:{{{type|{{{1|right}}}}}}}}
+
|lightblue-right|lightblue|light-blue|light_blue=[[File:Flecha tesela.svg|15px|link=|alt=→]]
      | r |right = →  | l | left = ←  | u | up = ↑  | d | down = ↓
+
|turquoise-right|turquoise=[[File:Arrow green.svg|15px|link=|alt=→]]
      | right-left | right/left | r/l | r-l = ↔
+
|right-left|right/left|r/l|r-l=↔
      | lightblue-right | lightblue | light-blue | light_blue = [[File:Flecha tesela.svg|{{{size|15}}}px|link=|alt=→]]
+
|h|horizontal=<span class="error">Please specify right (→) or left (←)</span>
      | turquoise-right | turquoise = [[File:Arrow green.svg|{{{size|15}}}px|link=|alt=→]]
+
|v|vertical=<span class="error">Please specify up (↑) or down (↓)</span>
      | h | horizontal = <span class="error">Please specify right (→) or left (←)</span>
+
|#default=→
      | v | vertical = <span class="error">Please specify up (↑) or down (↓)</span>
+
}}
      | #default = →
 
    }}<!--
 
  --></span>
 
 
}}<noinclude>
 
}}<noinclude>
{{Documentation
+
{{Documentation}}
| content = Default output (i.e. no parameters included/set) shown above.
+
</noinclude>
* Takes the optional parameter ''size'' which is assumed to be a number of pixels (e.g. size=30). If the arrow icon used by the template is a character rather than an image, this number is converted into a font-size percentage, where 100% is equivalent to 15px (the default icon image size).
 
* The arrow imagery can be changed by including "green", "purple", "grey", "red", "orange" or "blue" as an unnamed parameter.
 
}}</noinclude>
 

Latest revision as of 14:03, 28 October 2020

50px Template documentation[create]