Help:简易时间线语ほう

维基百科ひゃっか自由じゆうてき百科ひゃっかぜん
维基百科ひゃっか使用しようしゅさつ

简易时间线的特性とくせい就是从wikiぶん本中ほんなか产生一个嵌入式图像。这个图像以是いち维的图表(水平すいへいある垂直すいちょく),あるもの维的图表。めい为“简易时间线”そく表示ひょうじ以用水平すいへいある垂直すいちょくてき方向ほうこうさく为时间刻よう另一个方向来表示其它参数,ただし可能かのう其他不同ふどうてき形式けいしき。简易时间线的语法なみ支持しじ簡繁轉換てんかん

まいり简易时间线简易时间线索引さくいん

简介[编辑]

ただよう脚本きゃくほんかい于两个专よう标签间就以产せい图像时间线:

<timeline>
腳本
</timeline>

简易时间线就かい调用生成せいせいいち个PNG格式かくしき图像一个链接映射(选项)。

注意ちゅういそく使つかい“简易时间线”てき创造为了简单方便ほうべんただし制作せいさく一个复杂的时间线表依然不是一件轻松的事情。一个简单的时间线可以花费半个小时来完成(如果ゆう一个合适的例子用来作为基础可以节省更多时间)大型おおがたてき时间线可能かのうようはな费几个小时来创作并且おさむあらためしか而,对于现有无论复杂てき时间线进ぎょう增加ぞうかあるもの更正こうせい直接ちょくせつかいとしてき,甚至对于ぼつゆう接触せっしょく过这些语法的ほうてき使用しようしゃ

わかゆう问题请联络简えき时间线的作者さくしゃ

支持しじがた[编辑]

たいUnicodeゆうしょうもと支援しえん,现在ただ使用しようFreeSans.ttfがた。此字がた目前もくぜんかえ支援しえん其它がた。(效果こうか如下)

建議けんぎ使用しようあずか定義ていぎてきしゅごう:XS=ちょうしょう、S=しょう默認もくにん)、M=ちゅう、L=だい、XL=超大ちょうだい

This documentation is originally a wikified version of the original EasyTimeline documentation.

可用かよう命令めいれい[编辑]

脚本きゃくほん命令めいれいてい义:

  • 总体ぬのきょくImageSize(图像尺寸しゃくすん)、PlotArea(图形)、Colors(颜色)、BackgroundColors背景はいけい颜色)、AlignBarsじょうかたまり位置いち
  • にちあずか时期てきかい释和ひょう达:DateFormatにち格式かくしき)、Period(时段)、ScaleMajor主要しゅようこく)、ScaleMinorつぎようこく)、TimeAxis(时间轴)
  • 事件じけん、时段描述ぶんほんPlotData(图像すうすえ)、TextData文字数もじすうすえ
  • 如何いかじょうせい、划分、并且命名めいめい一组事件和时段:BarData()、Legend(图例)、DrawLines(绘图线)
  • つぎ现的脚本きゃくほんだい码的简写:Defineてい义)

しもじゅつ命令めいれい必选てきImageSize(图像尺寸しゃくすん)、PlotArea(图形)、Period(时段)TimeAxis(时间轴)。したじゅつ命令めいれいいたりしょうよう选一个:PlotData(图形すうすえかず/ある TextData文字数もじすうすえ),它们以重复多所有しょゆう其它命令めいれい选的。

大小だいしょううつし命令めいれい及其属性ぞくせいのう接受せつじゅだいうつししょううつし以及混合こんごう拼写。请在使用しよう保持ほじ一致以利于维持可读性,れい如对于命令めいれい使用しよう混合こんごう拼写,而所有しょゆう属性ぞくせい使用しようしょううつし

一般いっぱん语法规则[编辑]

脚本きゃくほん包含ほうがん命令めいれいちゅう释。まい命令めいれいゆう一个或多个属性。

命令めいれい[编辑]

命令めいれい应该从行くび开始。 ゆう命令めいれい带有くだりてきすうすえ/ある选项。 这些另外てきぎょう应该以至しょう一个空格或完整的空行开始。(下面かめんしめせ范相关的すうすえくだり

すえ命令めいれいてき类型,它可表示ひょうじ为以てき种形しきいち

命令めいれい = 属性ぞくせいある个属せい

DateFormat = dd/mm/yyyy

命令めいれい 名字みょうじ = 属性ぞくせいある个属せい

Color Jp = value:red legend:Japan

命令めいれい =
  属性ぞくせいある个属せい
  属性ぞくせいある个属せい
  とうとう……

PlotData =
  fontsize:XS width:20
  bar:Japan from:start till:19/02/1945 color:JT
  bar:Japan from:19/02/1945 till:14/03/1945 color:AI

ちゅう[编辑]

可用かよう单行くだりちゅう释:

  • # ごうきさき文字もじ就是いちぎょうちゅう
  • かい#><#これ间的文字もじ也是ちゅう释。よう这种方式ほうしき标记,使用しよう行来いきき书写ちゅう释。

れい如:

Dateformat = dd/mm/yyyy # European date format
Period = from:01/09/1939 till:02/09/1945 #> 该图ひょうはたおもて战的
  せい个历。 <#

属性ぞくせい[编辑]

とうゆう许多属性ぞくせい指定していいたどういち命令めいれい时,它们以用なり对的 '名称めいしょう:かず值'らい表示ひょうじとうゆう许多すう指定していいたどういち个属せい时,它们必须にゅう圆括ごうちゅう

れい如:

AlignBars = justify
Color SB = value:rgb(0.8,0,0.7) legend:Sea_Battles

まいりすうすうすえ[编辑]

だい部分ぶぶん命令めいれいただ接受せつじゅざいどういちぎょう指定していてき属性ぞくせい

かずすえ块: ゆういち命令めいれいぞうBarDataPlotDataTextDataColors认为いちかずすえよし一个或多个かずすえくだり组成。かずすえくだり应该以一个或多个空格开始,ぐういた以非そら开始てきぎょう就认为数すえ块已结束(例外れいがい:应忽りゃく空行くうぎょう,它们可能かのうようらい对同一个块中相关的数据行进行分组)。

かずすえ块内てき属性ぞくせい按照概念がいねん可分かぶんなりさんすうかずすえかずすえ块可どう包含ほうがんさんすうすうすえ项。

かずすえ项:ざいすうすえくだり属性ぞくせいちゅうtextfromtillat仅在它们所出しょしゅつ现的ぎょうおこり作用さよう

さんすうざいすうすえくだり属性ぞくせいちゅうぞうcolorfontsizeすえ上下じょうげぶんてき不同ふどうかいゆう不同ふどうてき含义。如果它们现在ぼつ有数ゆうすうすえ项的ぎょうちゅう,它们はた为后めんてきすうすえくだり设定しんてきだま认属せい。如果它们现的ぎょうちゅうどう时也有数ゆうすうすえ项,么它们只のうざい此行おこり作用さようだい前面ぜんめん设定てきだま认属せい

れい如:

# ざい该例中将ちゅうじょうぶん别画红蓝两条系列けいれつ,
# ただしざいまい一系列中将有一段使用绿色描绘以标示战争时期。

PlotData =
  color:red fontsize:S                               # だま认值
  bar:USSR from:1919 till:1922 text:Lenin            # 红条
  bar:USSR from:1922 till:1953 text:Stalin           # 红条
  bar:USSR from:1939 till:1945 text:WWII color:green # 绿条
  bar:USSR from:1953 till:1964 text:Krushchev        # 红条
   
  color:blue                                         # あらため变默认颜しょく
  bar:US from:1913 till:1921 text:Wilson             # 蓝条
  bar:US from:1917 till:1918 text:WWI color:green    # 绿条
  bar:US from:1921 till:1923 text:Harding            # 蓝条

#> 此多ぎょうちゅう释并终止PlotData命令めいれいそく使つかいまえ一行并未以空格开头。<#

   bar:US from:1923 till:1929 text:Coolidge          # 蓝条

TextData =                                           # 此处PlotData命令めいれい结束
   tabs:...etc

特殊とくしゅ[编辑]

  • ##><#ごうごう+だい于号、しょう于号+ごう):まいりComments
  • ~波浪はろう线)ざい文字もじちゅう:换行
  • ^ざい文字もじちゅう:缩进
  • _しも划线)ざい文字もじちゅうそらかく
  • $よしもと符号ふごうよう在任ざいにんなんよう户自てい义常りょうまえ

命令めいれい参考さんこう[编辑]

まい一个命令都列出了有效的属性,一些命令或属性是可选的[表示ひょうじ为(选)]。

一些命令的某些属性是互斥的。(应用时再かい释)

AlignBars[编辑]

じょう块(Bar)总是以相どうてき距离绘制。 这个命令めいれいようらい说明じょう块应该排列はいれつとくつき可能かのうぶん开,あるもの保留ほりゅう空白くうはくざい图表てきひだりあるうえ)边与だいいちじょう间,还是保留ほりゅう空白くうはくざい图表てきみぎあるした)边与さいきさきいち栏之间。

early(だま认)
だい一条放置在图表最左(ある最上さいじょうてき位置いち('ねば贴'いた轴上),ざいさいきさき一条与图表的右(あるした)边之间留空白くうはく
late
あずかearly相反あいはんさいきさき一条尽可能地放置在图表的右(あるした)边,ざい轴线(图表てきひだり/うえ边)あずかだい一条之间留出空白。
justify
だい一条和最后一条放置得尽可能分开,图表てき两边とめ空白くうはくとうただゆういちじょう存在そんざい时,justify就表示ひょうじ"居中きょちゅう"。

れい如:

TimeAxis = orientation:horizontal orientation:vertical

Alignbars =

BackgroundColors[编辑]

这个命令めいれいまこと指定してい图表不同ふどう部分ぶぶんてき背景はいけい颜色。 にんなん颜色idてき指定していざいくび使用しよう时都应该さき进行ていColors.

canvas (选)
为全图像指定してい背景はいけい颜色。
bars (选)
所有しょゆうbars指定してい背景はいけい颜色。

れい如:

BackgroundColors = bars:darkgrey

BackgroundColors = canvas:lightgrey bars:darkgrey

BackgroundColors = canvas:lightgrey

BarData[编辑]

这是いち个可选命令めいれい,它可以调せい哪些じょう块将显示、以何种顺じょ显示。如果它被省略しょうりゃく,栏将按照它在PlotData命令めいれいちゅうてき现的顺序进行绘制。

对于使用しよう许多じょうてき复合时间线,推荐使用しよう这个命令めいれい

  • 这将简化对显しめせすうすえてきおもしん布置ふち
  • PlotDataちゅう指定していてきじょう名字みょうじはた此列ひょう对,从而减少输入错误てき可能かのう
bar
てい义了じょう块的识别ごう,其他てき命令めいれいとく别是PlotDataしょう使用しよう该识别作为对其之引用いんよう。它也すわ标轴じょう显示てき标签,じょ设置りょうtext属性ぞくせい。bar识别ごう不可ふか包含ほうがんそらかく使用しよう划线代替だいたい,它们はた动转换为そらかく
text (选)
指定してい显示于坐标轴じょうてき标签,以取だいじょう块识别号。まいりtext input。该文ほん包含ほうがんいち个内链接(まいりちゅう释1)。
link (选)
指定していいち个链せっ(URL)。まいりちゅう释1すわ标轴じょうてき标签そく显示为一个超链接。

ちゅう

  1. よう使用しようlink属性ぞくせいよう么在text属性ぞくせいちゅう使用しよう内部ないぶ链接,しゃ不能ふのう并用。

しめせれい

BarData =
  bar:Japan
  bar:US       text:"美国びくに"          # はたPlotDataすうすえ定位ていいいたじょう块“US”ただし显示为“美国びくに”
  bar:China    text:[[中国ちゅうごく]]        # “中国ちゅうごく”标签しょう指向しこう维基百科ひゃっかちゅうてき中国ちゅうごく条目じょうもく

以下いかだい码产せいどう样的输出(ただれつPlotDataてきあらため变):

bar:US        text:[[United_States]]

bar:US        text:"United States"     link:http://www.wikipedia.org/wiki/United_States

bar:United_States                      link:http://www.wikipedia.org/wiki/United_States

Colors[编辑]

这个命令めいれい可用かようてい义颜しょく并用いち个id(份识别)らい表示ひょうじ。 其它命令めいれいしょうようざい这里指定していてきidらい调用颜色。 这个命令めいれい指定してい一个或多个的颜色定义,ごと一个都必须位于独立的缩进行。

id
其它命令めいれいはた使用しよう这个idらい指定していぶんほん、栏或背景はいけいてき颜色。
value
实际颜色てい义。颜色值可ようじゅつにんいち种方しき表示ひょうじ
  • 预定义颜しょく值,ゆう32种预てい义的颜色名称めいしょうこう认的(まいりPloticus color pageざい这里てい义了这些颜色值)。
  • rgb (红,绿,蓝): 指定してい3个介于0(最小さいしょう1(最大さいだい间的数字すうじ
  • hsv (いろ调,饱和,值): 指定してい3个介于01これ间的数字すうじ
  • gray (值): 指定していいち个介于0 (くろ) 1 (しろ)
legend (选)
指定してい图例ちゅう对于使用しよう该种颜色てき目的もくてき文字もじ说明,如果该属せいゆるがせりゃく,图例ちゅう则不显示にんなんぶんほんまいりText Input以获とく详细规则。

Example:

Colors =
  id:war       value:red   legend:War Period
  id:peace     value:blue  legend:Peace Time
  id:treaty    value:rgb(0.6,0,0.6)
  id:lightgrey value:gray(0.9)
  id:darkgrey  value:gray(0.1)

DateFormat[编辑]

这个命令めいれいてい义了ざい其它命令めいれい中出なかいで现的应该如何いかかい释。

有效ゆうこうてき格式かくしき

dd/mm/yyyy
にちかい释为 /つき/とし
注意ちゅうい: 这种格式かくしきただまこと许用于01/01/1800以后てき
mm/dd/yyyy
にちかい释为 がつ/にち/とし
注意ちゅうい: 这种格式かくしきただまこと许用于01/01/1800以后てき
yyyy
这种格式かくしき使用しよう从 -9999 いた +9999てき整数せいすう

れい如:

DateFormat = mm/dd/yyy

Define[编辑]

这一个命令允许定义本文常数,れい如,为在个时间段现的部分ぶぶん脚本きゃくほんだい码定义速记。本文ほんぶん常数じょうすう应该总是以一个$よしもと符号ふごう)开始。

れい如:

Define $broad       = width:30
Define $narrow      = width:10
Define $bardefaults = $broad fontsize:S

DrawLines[编辑]

Some timelines extend over several clearly distinct periods. A line demarcating these periods may serve as a visual aid.

Lines specified here will be drawn over the whole width/length of the chart (depending on the orientation defined by TimeAxis).

at
Specify the date/year where the line should be drawn, in compliance with the specified DateFormat.
color
Specify the color in which the line should drawn.
Note: The color id specified should be defined first with command Colors.

Example:

LineData=
  at:start      color:red
  at:end        color:red
  at:07/12/1941 color:red

ImageSize (必选)[编辑]

This command defines the overall size of the final image. Specify values in absolute measurements.

width
Width of final image: maximum is 1600 pixels
height
Height of final image: maximum is 1200 pixels

Example:

ImageSize = width:800 height:600

Legend[编辑]

A legend will only be shown when this command is present. There are several ways to define the appearance and position of the legend. Some attributes are mutually exclusive (see below).

orientation (O)
Specify hor[izontal] or ver[tical] (default).
Restriction: orientation = 'horizontal' and position = 'right' are mutually exclusive
position (O)
Defines placement of the legend relative to the chart area. Specify top, bottom (default) or right.
Restriction: orientation = 'horizontal' and position = 'right' are mutually exclusive
columns (O)
Specify 1, 2, 3 or 4. When this attribute is omitted the number of columns is determined as follows:
  • Orientation horizontal : Attribute columns does not apply here. All entries will be on the same line.
  • Orientation vertical :
    • Position right : All entries will be in one column
    • Position top or bottom : The number of columns depends on the number of entries to be shown:
      1-5 entries: 1 column, 6-10 entries: 2 columns, 11 or more entries: 3 columns.

Tip: you may consider omitting the following parameters at first, and only add them when defaults settings are not satisfactory.

columnwidth (O)
Defines the distance between columns. You can specify an absolute distance or a relative distance (as percentage of the page width).
Restriction: this parameter is ignored when columns = 1 is defined or implied.
left (O)
Defines the distance between the left side of the legend and the left side of the page. You can specify an absolute distance or a relative distance (as percentage of the page width).
top (O)
Defines the distance between the top of the legend and the bottom of the page. You can specify an absolute distance or a relative distance (as percentage of the page height).

Examples:

Legend = orientation:vertical position:bottom columns:3 columnwidth:140

Legend = orientation:horizontal position:bottom

Legend = left:100 top:120 columns:3

Period (必选)[编辑]

Defines the time period that will be displayed in the chart. Both parameters are mandatory. Specify dates in compliance with specified DateFormat.

from
Timeline starts here. The specified value can be referenced as start in commands like PlotData and TextData.
till
Time ends here. The specified value can be referenced as end in other commands.

Example:

Period = from:01/09/1939 till:02/09/1945

PlotArea (必选)[编辑]

width
以绝对或しょう测量らい指定していすう值。
height
以绝对或しょう对测りょうらい指定していすう值。
left
图像ひだり边和图形ひだり边的空白くうはくあまりりょう。以绝对或しょう对测りょうらい指定していすう值。
bottom
图像そこ边和图形そこ边的空白くうはくあまりりょう。以绝对或しょう对测りょうらい指定していすう值。

れい如:

PlotArea = width:640 height:420 left:160 bottom:120

PlotArea = width:80% height:70% left:20% bottom:20%

PlotData[编辑]

よう于定义栏 (よう符号ふごう表示ひょうじ时间周期しゅうき), 并且ざい栏后てき特定とくてい位置いちじょう加入かにゅう文字もじ

For texts which are not related to a certain period or date/year or which require extensive formatting use command TextData.

Attributes text, at, from and till always apply only to the line on which they occur. All other attributes, when not combined with one these four, act as default for the remainder of the command block or until a new default is specified, and may be overruled for a single line. See Parameters vs Data Items for more info and an example.

图形ゆう许多てき属性ぞくせい,其中有ちゅうう些时互斥てき。这些属性ぞくせいぶん为以几种:

  • 位置いち属性ぞくせい
  • 栏相关属せい
  • 文字もじ属性ぞくせい
  • 标记属性ぞくせい

位置いち属性ぞくせい[编辑]

at
Specifies at which date/year a text should be positioned. Depending on attribute align the text either starts, ends or is centered at this position. Use date/year format as specified in DateFormat or specify start or end which refers to time frame defined by command Period.
NB: This attribute can not be combined with attributes from or till.
from
Specifies at which date/year a bar should start. Use date/year format as specified in DateFormat or specify start which refers to time frame defined by command Period.
NB: This attribute should be used in combination with attribute till and can not be combined with attribute at.
till
Specifies at which date/year a bar should end. Use date/year format as specified in DateFormat or specify end which refers to time frame defined by command Period.
NB: This attribute should be used in combination with attribute from and can not be combined with attribute at.
shift
Specifies a horizontal and vertical displacement in absolute measurements for a text. This allows:
  • Texts to be shifted to avoid overlaps
  • Placement of text beside a bar, instead of on top of it.

Examples:

PlotData=
  bar:Japan from:start      till:19/02/1945 color:JT
  bar:Japan from:19/02/1945 till:14/03/1945 color:AI
  bar:Japan from:02/09/1945 till:end        color:AO

  at:07/12/1941 shift:(0,-15) text:"<-- WW2 reaches Asia"

栏相关属せい[编辑]

bar
Specifies to which bar all other attributes apply.
When command BarData has not been used, bars will be drawn in the order in which they occur in any PlotData data block. The id specified here will also be the text presented along the axis, next to the bar.
When command BarData has been used, bars will presented in the order specified there, also the bar id specified here will be validated against that list. Also the text presented along the axis will depend on the definition in BarData.
color
指定してい栏应该被绘制てき颜色。
The color id specified should be defined first with command Colors.
width
Specifies the width of the bar in absolute or relative measurements.

れい如:

BarData=
  id:US text:United States
  id:SB text:Sea Battles

Colors=
  id:US value:blue legend:United_States
  id:SB value:rgb(0.8,0,0.7) legend:Sea_Battles

PlotData=
  width=0.3                                                            # see note 1
  bar:SB     from:07/08/1942 till:09/02/1943 text:Guadalcanal color:SB # see note 2
  bar:US     from:start      till:end color:US                         # see note 3
  bar:Midway from:start      till:end color:US                         # see note 4
  bar:US     at:07/12/1941   text:7/12 Pearl Harbour                   # see note 5

Notes:

  1. this line establishes a default bar width for the remainder of the data block
  2. this line specifies a bar to be drawn and a text to placed on it at the same time
  3. bar US will be drawn before bar SB, even when specified after it, because command BarData determines the sequence
  4. bar Midway will be rejected because it is not declared with command BarData
  5. the last line will not result in a bar being plotted, it merely specifies on which bar the text should be placed

文字もじ属性ぞくせい[编辑]

text
Defines a text that should be plotted on or near a bar. The anchor position can be defined either explicitly with attribute at, or implicitly with attributes from and till. In the latter case the text will be positioned in the middle of the defined bar segment. See also Text Input for rules
The text may include embedded links (see Notes 1 & 2) for use in clickable maps.
textcolor (O)
Defines the color of the text. The color id specified should be defined first with command Colors. When not specified color black will be assumed.
fontsize (O)
Specify a point size between 6 and 30, or (preferably) one of tags XS, S (default), M, L or XL. See Font Support for more details.
align (O)
Specify center (default), left or right.
link (O)
Specify a web link (see Note 1) (URL) for use in clickable maps. The text will be shown as a blue clickable link.

Notes

  1. Either use attribute link, or an embedded link in attribute text, not both.
  2. On PNG images only one clickable link will be shown per text segment (text with line breaks (~) constitutes several segments).

Example:

PlotData=
   bar:US at:07/12/1941 align:left textcolor:black fontsize:XS text:7/12 [[Pearl Harbour]]

produces the same result as:

PlotData=
   bar:US at:07/12/1941 align:left textcolor:black fontsize:XS text:"7/12 Pearl Harbour" link:http://www.wikipedia.org/wiki/Pearl_Harbour

标记属性ぞくせい[编辑]

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. When not specified color black will be assumed.

Example:

PlotData=
  bar:test width:15 color:red
  from:1900 till:2000
  at:1990 mark:(line,white)

will be shown as:

ScaleMajor[编辑]

This command divides the timeline into smaller periods, either

  • Graphically, through thin vertical or horizontal lines in the chart
  • Textually, through stubs in the time axis, below or to the left of the chart
  • Both graphically and textually

Note: the orientation of the lines and/or placement of the stubs depends on the orientation of the TimeAxis.

gridcolor (O)
Defines the color for the grid lines. When this attribute is omitted no grid lines will be drawn.
Note: The color id specified should be defined first with command Colors.
unit (O)
Specifies the unit by which the grid spacing is incremented. Specify day, month or year (default).
Note: When DateFormat yyyy is specified, only unit year is allowed.
increment (O)
Specifies the numbers of units by which the grid spacing is incremented. Default is 1.
start (O)
Specifies where the first grid line and/or stub should be displayed. Defaults to start of defined Period.

Examples:

ScaleMajor = gridcolor:red start:1940

ScaleMajor = gridcolor:red unit:month increment:3 start:01/09/1939

ScaleMinor[编辑]

This command defines a further subdivision of the timescale. See ScaleMajor for syntax .

Example:

ScaleMajor = grid:red  unit:year  increment:1 start:01/01/1940
ScaleMinor = grid:blue unit:month increment:3 start:01/10/1939

TextData[编辑]

Used to define a text block that can be positioned anywhere on the chart.

text
The actual text. See also 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 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. When not specified, the color is black.
fontsize (O)
Specify a point size between 6 and 30, or (preferably) one of tags XS, S (default), M, L or XL (see Font Support for more details).
tabs (O)
Defines position and alignment for tab character: ^ (caret). Specify multiple tab settings as tabs: (x1-a1,x2-a2,x3-a3, etc..) where
  • xn is the horizontal displacement in absolute measurements from the left side of the text
  • an is the alignment for the text segment (specify center, left or right)
lineheight (O)
Defines spacing between consecutive lines in absolute measurements. Specify a value up to 40 pixels or 0.4in. When not specified a default lineheight will be based on the font size currently in use.

Notes:

  1. Either use attribute link, or an embedded link in attribute text, not both.
  2. On PNG images only one clickable link will be shown per text segment (text with tabs (^) constitutes several segments).

Example:

TextData =
  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

will be shown as:

Tripartite Pact

TimeAxis[编辑]

Defines the orientation of the time axis, and textual representation of stubs along that axis.

format (O)
Specify in which format dates should be presented along the time axis.
Currently only format yyyy (default) is supported. More formats may follow.
orientation (O)
Specify hor[izontal] (default) or ver[tical].

Example:

TimeAxis = orientation:horizontal format:yyyy

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.

输入规则[编辑]

尺寸しゃくすん位置いち比例ひれい[编辑]

Absolute measures may be used for specifying sizes, positions and position shifts, measured in pixels.

Example:

PlotArea = width:800 height:600 left:50 bottom:50

Relative measures may be used for specifying sizes and positions. Specify a number between 0 and 100, immediately followed by a % (percentage) sign. For horizontal measurements the percentage is related to image width, for vertical measurements to image height.

The first coordinate is horizontal from left to right, the second is vertically upward.

Example:

PlotArea = width:80% height:80% left:10% bottom:5%

文字もじ输入[编辑]

Text input is subject to a few rules:

1 No unicode is allowed yet. See also font support.

2 When text should contain spaces, either specify these by using underscores or place the text between double quotes.

Exception: when the text attribute is the last attribute on a line, spaces are allowed (no confusion will arise where the text stops and the next attribute starts, that is—to be precise—when no colons occur in the text).

Example: (the following are all equivalent)

BarData =
  text:Japanese_mandate_since_1914 bar:Marshalls

BarData =
  text:"Japanese mandate since 1914" bar:Marshalls

BarData =
  bar:Marshalls text:Japanese mandate since 1914

3 In data lines following command TextData two characters have special meaning:

~ (tilde) means line break
^ (caret) means tab

Example showing line breaks:

TextData =
  .. text:Generated for Wikipedia~Version 1.1 - 2 Januari 2004

# will be shown as:
#
#  Generated for Wikipedia
#  Version 1.1 - 2 Januari 2004

Example showing tabs:

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

# 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

てん击的图[编辑]

Both output formats available in MediaWiki, i.e. PNG and SVG, can contain clickable links. Texts shown in blue, and bars, may then be clicked, to surf to another web page.

Links can be specified with commands BarData, PlotData and TextData, either with attribute link, or as embedded links, via attribute text.

嵌入かんにゅうしき链接[编辑]

Embedded links are links that are (part of a) displayable text, specified with attribute text. Their counterpart are explicit links (URL only) which are defined with attribute link.

Both type of links can be specified with commands BarData, PlotData and TextData and are used for clickable maps.

In embedded links, internal link style is as usual, interwiki link style does not work, external link style is as usual with single brackets, but here with a pipe instead of a space. Blank spaces and underscores in the url should be written as %20.

Examples:

  text:example [[Help:Link]] internal link

will be shown as:

Help:Link
  text:[[Help:Link|Link]]

will be shown as:

Help:Link
  text:[http://en.wikipedia.org/wiki/Rembrandt|Rembrandt van Rijn] paints Night Watch

will be shown as:

en.wikipedia.org/..

Attempt to use interwiki link style:

  text:[[en:Main_Page]]
and similar with nl: and m: give:
m:Main Page

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. //zh.wikipedia.org/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).

EasyTimeline code with a template parameter is not allowed[编辑]