Template:Arrow: Difference between revisions

m
m (Add to category)
m (Migrate to Template:Documentation)
 
Line 102: Line 102:
-->{{#if:{{{100|}}}|{{#switch:{{{100|}}}|1=&LowerLeftArrow;|2=&DownArrow;|3=&LowerRightArrow;|4=&LeftArrow;|5=X|6=&RightArrow;|7=&UpperLeftArrow;|8=&UpArrow;|9=&UpperRightArrow;}}&ensp;}}<!--
-->{{#if:{{{100|}}}|{{#switch:{{{100|}}}|1=&LowerLeftArrow;|2=&DownArrow;|3=&LowerRightArrow;|4=&LeftArrow;|5=X|6=&RightArrow;|7=&UpperLeftArrow;|8=&UpArrow;|9=&UpperRightArrow;}}&ensp;}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>
--></includeonly><noinclude>{{documentation}}</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>
{{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>