Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Difference between revisions of "Template:Horizontal scale loop"

From DFO World Wiki
Jump to: navigation, search
m (Dfoplayer moved page Template:For to Template:Horizontal scale loop without leaving a redirect: The loop only calls Horizontal scale and is not a generic loop)
m (Protected "Template:Horizontal scale loop": Don't change the algorithm ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
|from={{{from}}}
 
|from={{{from}}}
 
|to={{{to}}}
 
|to={{{to}}}
|increment={{{increment|{{calculate increment|{{{from}}}|{{{to}}} }} }}} <!--If increment is not defined, call calculate increment-->
+
|increment={{{increment}}}
 
|loop=@@@@
 
|loop=@@@@
 
}}
 
}}
 
}}
 
}}
 
<noinclude>{{documentation}}
 
<noinclude>{{documentation}}

Latest revision as of 10:53, 15 August 2018


Please delete the line increment=. It's preventing the template from working.

Template Documentation view

Uses Extension:Arrays to perform the for loop.

Description

The template calls {{Horizontal scale}}

Usage

{{Horizontal scale loop
  |times=how many you want to loop to go using a comma separated list
  |from=starting number
  |to=ending number
  |increment=what the increment is.
}}

Examples

Code Result
{{Horizontal scale loop
|times=1
|from=1
|to=100
|increment=5
}}
|
6
{{Horizontal scale loop
|times=1,2,3,4,5
|from=1
|to=100
|increment=5
}}
|
6
|
11
|
16
|
21
|
26