Help:EasyTimeline syntax: Difference between revisions

Content deleted Content added
fix example showing rendering of TextData
CmdrObot (talk | contribs)
m Wikipedia URL→wikilink (2); sp (4): Januari→January, comand→command, possiblities→possibilities; capitalisation (2): cyrillic, europe
Line 1:
{{H:h|editor toc}}
 
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 possiblitiespossibilities.
 
See also [[m:EasyTimeline]], [[m:Help:EasyTimeline examples]] (obsolete), [[m:Help:EasyTimeline activation|EasyTimeline activation on other MediaWiki installations]]
Line 347:
The following lines produce the same output (only reference in [[#PlotData|PlotData]] changes):
<pre>
bar:US text:[[United_StatesUnited States]]
 
bar:US text:"United States" link:http://www.wikipedia.org/wiki/United_States
Line 362:
;value : Actual color definition. Color values can be either be specified as:
;* predefined color constant, for which 32 predefined color names are recognized (see the [http://ploticus.sourceforge.net/doc/color.html Ploticus color page] where all these constants are defined).
;* rgb (red, green, blue): specify 3 numbers between 0 (minimal) and 1 (maximal)
;* hsv (hue, saturation, value): specify 3 numbers between 0 and 1
;* gray (value): specify a number between 0 (black) and 1 (white)
Line 380:
===DateFormat===
 
This comandcommand defines how dates, specified in other commands, should be
interpreted.
 
Line 657:
 
====Marker attribute====
;mark : Places a marker in a bar at the specified position. Specify as mark: (symbol, color). The only value for ''symbol'' supported to date is ''line''. The ''color'' id specified should be defined first with command [[#Colors|Colors]]. When not specified color black will be assumed.
 
<small>Example:</small>
Line 664:
bar:test width:15 color:red
from:1900 till:2000
at:1990 mark:(line, white)
</pre>
 
Line 682:
width:15 color:red
bar:test from:1900 till:2000
bar:test at:1990 mark:(line, white)
</timeline>
 
Line 724:
Used to define a text block that can be positioned anywhere on the chart.
;text : The actual text. See also [[#Text Input|Text Input]] for rules. The text may include embedded links (see '''Notes 1 & 2''').
;pos : Defines the top-left corner of the text block in absolute or relative [[#Input_rules|measurements]]. Define as ''pos:(x, y)''.
;link (O) : Specify a web link (see '''Note 1''') (URL) for use in clickable maps. The label along the axis will be shown as a blue clickable link.
;textcolor (O) : Defines the color of the text. The color id specified should be defined first using [[#Colors|Colors]]. When not specified, the color is black.
Line 741:
pos:(20,67) textcolor:black fontsize:S
tabs:(10-right,14-left,50-left,90-left,230-left)
text:^1^1940^27/9^Germany, Italy and Japan sign [[Tripartite Pact]]
text:^10^1944^1-22/7^Bretton Woods 44 nations establish
text:^^^^^IMF and World Bank
Line 757:
pos:(20,67) textcolor:black fontsize:S
tabs:(10-right,14-left,50-left,90-left,230-left)
text:^1^1940^27/9^Germany, Italy and Japan sign [[Tripartite Pact]]
text:^10^1944^1-22/7^Bretton Woods 44 nations establish
text:^^^^^IMF and World Bank
Line 833:
<pre>
TextData =
.. text:Generated for Wikipedia~Version 1.1 - 2 JanuariJanuary 2004
 
# will be shown as:
#
# Generated for Wikipedia
# Version 1.1 - 2 JanuariJanuary 2004
</pre>
 
Line 845:
TextData =
tabs:(4-right,12-right,14-left,34-left)
text:^1^1940^27/9^Berlin Ger, It, Jap sign Tripartite Pact
text:^10^1944^1-22/7^Bretton Woods 44 nations establish
text:^^^^^IMF and World Bank
Line 851:
# will be shown as:
#
# 1 27/9 Berlin Ger, It, Jap sign Tripartite Pact
# 10 1-22/7 Bretton Woods 44 nations establish
# IMF and World Bank
Line 910:
 
<pre>
<nowiki>text:[http://en.wikipedia.org/wiki/[Rembrandt|Rembrandt |van Rijn]] paints Night Watch</nowiki>
</pre>
will be shown as:
Line 922:
BackgroundColors = canvas:canvas
TextData =
pos:(10,10) fontsize:XL text:"[http://en.wikipedia.org/wiki/[Rembrandt|Rembrandt |van Rijn]] paints Night Watch"
</timeline>
 
Line 928:
 
<pre>
<nowiki>text:[[en:Main_PageMain Page]]</nowiki>
</pre>
and similar with nl: and m: give:
Line 940:
BackgroundColors = canvas:canvas
TextData =
pos:(10,10) fontsize:XL text:"[[en:Main_PageMain Page]]"
</timeline>
 
Line 952:
BackgroundColors = canvas:canvas
TextData =
pos:(10,10) fontsize:XL text:"[[nl:Main_PageMain Page]]"
</timeline>
 
Line 964:
BackgroundColors = canvas:canvas
TextData =
pos:(10,10) fontsize:XL text:"[[m:Main_PageMain Page]]"
</timeline>
 
The third one to Meta-Wikipedia works properly, except from Meta itself, the other links work like [[Main_PageMain 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).
 
'''Special characters:'''
Line 988:
 
==Font Support==
Timeline has somewhat limited unicode support. It uses FreeSans.ttf font, which supports a subset of all the possible glyphs (it supports cyrillicCyrillic alphabet, east-europeEurope diactrics and kana for instance, but lacks kanji). No other fonts are available at this time.
 
<timeline>