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:Scale row"

From DFO World Wiki
Jump to: navigation, search
Line 9: Line 9:
 
   ) * 99.100<!--IE can't handle 100%-->
 
   ) * 99.100<!--IE can't handle 100%-->
 
  }}
 
  }}
}}%;">&ensp;</div>{{for loop||0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30
+
}}%;">&ensp;</div>{{Horizontal scale loop|times=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30
  | pv=loop
+
  |from={{{from}}}
| pc1n=from|pc1v={{{from}}}
+
  |to={{{to}}}
  | pc2n=to|pc2v={{{to}}}
+
  |increment={{{increment|{{calculate increment|{{{from}}}|{{{to}}}}}}}}
  | pc3n=increment|pc3v={{{increment|{{calculate increment|{{{from}}}|{{{to}}}}}}}}
 
| call=horizontal scale
 
 
}}</div>
 
}}</div>
 
|<div>'''You need to specify <code>from=</code> and <code>to=</code> where you've used the template {{tl|Scale row}}.'''</div>
 
|<div>'''You need to specify <code>from=</code> and <code>to=</code> where you've used the template {{tl|Scale row}}.'''</div>

Revision as of 10:30, 15 August 2018

Template Documentation view

As used in {{Horizontal timeline}}.

Parameters

Set to and from to the start and end dates of your timeline; the increment will be calculated automatically. You can override this using increment, but be sure to test its appearance at small screen sizes!

Example

{{scale row|from=10|to=30}} gives:

|
10
|
12
|
14
|
16
|
18
|
20
|
22
|
24
|
26
|
28
|
30

while {{scale row|from=10|to=30|increment=6}} gives:

|
10
|
16
|
22
|
28