Template:Arrow: Difference between revisions
m
Add to category
Nikitaivanov (talk | contribs) No edit summary |
-u ndefined- (talk | contribs) m (Add to category) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#if:{{{101|}}}|<span style="color: red;"><em>ERROR! Array template supports only up to 100 arrows!</em></span>|<!-- | -->{{#if:{{{101|}}}|<span style="color: red;"><em>ERROR! Array template supports only up to 100 arrows!</em></span>|<!-- | ||
-->{{#if:{{{1|}}}|{{#switch:{{{1|}}}|1=↙|2=↓|3=↘|4=←|5=X|6=→|7=↖|8=↑|9=↗}} }}<!-- | |||
-->{{# | |||
-->}}<!-- | -->}}<!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
'''Arrow''' is a template designed for solutions in puzzle games that involve swiping and other types of motion such as dragging. | |||
== Example == | |||
<code><nowiki>{{Arrow|1|2|3|4|5|6|7|8|9|1|2|3|4|5|6|7|8|9}}</nowiki></code><br> | <code><nowiki>{{Arrow|1|2|3|4|5|6|7|8|9|1|2|3|4|5|6|7|8|9}}</nowiki></code><br> | ||
{{Arrow|1|2|3|4|5|6|7|8|9|1|2|3|4|5|6|7|8|9}} | {{Arrow|1|2|3|4|5|6|7|8|9|1|2|3|4|5|6|7|8|9}} | ||
== Parameters == | |||
Positional: | |||
* '''Number''': Takes n parameters, up to 100. An arrow corresponding to the direction relative to the center (5) in the numpad keyboard. 0 is unsupported. | |||
If more than 100 arrows are needed, two or more Arrow templates can be used. | |||
[[Category:Convenience templates]] | |||
</noinclude> | </noinclude> |