Jump to content

Template:Arrow: Difference between revisions

m
Add to category
(TEST: do nest if statements in each other)
m (Add to category)
 
(4 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=&LowerLeftArrow;|2=&DownArrow;|3=&LowerRightArrow;|4=&LeftArrow;|5=X|6=&RightArrow;|7=&UpperLeftArrow;|8=&UpArrow;|9=&UpperRightArrow;}} }}<!--
-->{{#if:{{{1|}}}|{{#switch:{{{1|}}}|1=&LowerLeftArrow;|2=&DownArrow;|3=&LowerRightArrow;|4=&LeftArrow;|5=X|6=&RightArrow;|7=&UpperLeftArrow;|8=&UpArrow;|9=&UpperRightArrow;}}&ensp;}}<!--
-->{{#if:{
-->{{#
-->}}<!--
-->}}<!--
--></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>