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"
(Created page with "<includeonly>{{#if:{{{from|}}}{{{to|}}}| <div name="line" style="clear:both;width:99.3%;max-width:99.1%;border-top:0.1em solid black;height:1em"></div> <div id="Scale" style="...") |
m (Protected "Template:Scale row": Don't change the algorithm ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
) * 99.100<!--IE can't handle 100%--> | ) * 99.100<!--IE can't handle 100%--> | ||
}} | }} | ||
− | }}%;"> </div>{{ | + | }}%;"> </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 |
− | | | + | |from={{{from}}} |
− | + | |to={{{to}}} | |
− | | | + | |increment={{{increment|{{calculate increment|{{{from}}}|{{{to}}}}}}}} |
− | | | ||
− | |||
}}</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> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | {{ | + | {{documentation}} |
</noinclude> | </noinclude> |
Latest revision as of 10:53, 15 August 2018
Template Documentation view
As used in {{Horizontal timeline}}.
Contents
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