Content deleted Content added
mNo edit summary |
add in missing text from Meta original |
||
Line 1:
{{hh}}
The EasyTimeline feature produces an embedded [[Help:Images and other uploaded files|image]] from wikitext. The image can be a one-dimensional diagram (horizontally or vertically), or a two-dimensional one. The name "EasyTimeline" refers to the possibility to apply the feature with a time scale horizontally or vertically, possibly with another parameter in the other direction, but there are also various other possiblities.
See also [[EasyTimeline]], [[EasyTimeline/Index]].▼
At the moment two presets are available:▼
*Preset = TimeVertical_OneBar_UnitYear▼
*Preset = TimeHorizontal_AutoPlaceBars_UnitYear▼
Not clear if whether there is documentation about them.▼
==Introduction==
Line 33 ⟶ 29:
'''Case''': Commands and their attributes can be specified in lower, upper or mixed case. Please try to be consistent in applying case as this will further readability, e.g. use mixed case for all commands and lowercase for all attributes.
==General syntax rules==
Line 104 ⟶ 99:
<small>Example:</small>
<!-- all data start with space here to keep source formatting
Line 140 ⟶ 134:
*'''$''' (dollar sign) precedes any user defined constant
==Command Reference==
For each command the valid attributes are listed. Some commands and/or
Line 160 ⟶ 153:
<small>Examples:</small>
{{EasyTimeline_Examples_AlignBars}}
===BackgroundColors===
Line 178 ⟶ 169:
</pre></div>
===BarData===
This is an optional command which if present determines which bars will be drawn on the chart and in which order.
Line 210 ⟶ 200:
bar:United_States link:http://www.wikipedia.org/wiki/United_States
</pre></div>
===Colors===
This command allows colors to be defined and coupled to an id (identification tag).
Line 233 ⟶ 223:
id:darkgrey value:gray(0.1)
</pre></div>
===DateFormat===
Line 251 ⟶ 241:
DateFormat = mm/dd/yyy
</pre></div>
===Define===
Line 266 ⟶ 254:
Define $bardefaults = $broad fontsize:S
</pre></div>
===DrawLines===
Line 287 ⟶ 273:
at:07/12/1941 color:red
</pre></div>
===ImageSize (mandatory)===
Line 300 ⟶ 284:
ImageSize = width:800 height:600
</pre></div>
===Legend===
Line 333 ⟶ 315:
Legend = left:100 top:120 columns:3
</pre></div>
===Period (mandatory)===
Line 345 ⟶ 325:
Period = from:01/09/1939 till:02/09/1945
</pre></div>
===PlotArea (mandatory)===
Line 360 ⟶ 338:
PlotArea = width:80% height:70% left:20% bottom:20%
</pre></div>
===PlotData===
Line 485 ⟶ 461:
</timeline>
===ScaleMajor===
This command divides the timeline into smaller periods, either
Line 509 ⟶ 484:
</pre></div>
===ScaleMinor===
This command defines a further subdivision of the timescale. See ScaleMajor for syntax .
Line 519 ⟶ 493:
</pre></div>
===TextData===
Used to define a text block that can be positioned anywhere on the chart.
Line 560 ⟶ 533:
text:^^^^^IMF and World Bank
</timeline>
===TimeAxis===
Line 574 ⟶ 545:
</pre></div>
==Presets==
▲At the moment two presets are available:
▲*Preset = TimeVertical_OneBar_UnitYear
▲*Preset = TimeHorizontal_AutoPlaceBars_UnitYear
▲Not clear if whether there is documentation about them.
==Input rules==
Line 646 ⟶ 623:
# IMF and World Bank
</pre></div>
==Clickable maps==
Line 757 ⟶ 732:
The third one to Meta-Wikipedia works properly, except from Meta itself, the other links work like [[Main_Page]] (internal page, the prefix is ignored) or e.g. {{SERVER}}/w/Main_Page (gives File not found), depending on the URL of the referring page (e.g. different for a preview page and a diff page).
==Font Support==
Line 784 ⟶ 757:
This documentation is originally a wikified version of the [http://members.chello.nl/epzachte/Wikipedia/EasyTimeline/Syntax.htm original EasyTimeline documentation].
==EasyTimeline code with a template parameter is not allowed==
{{Template talk:Etl}}
{{hc}}
|