模板:Infobox historical era/doc
外观

![]() | 此页面是Template:Infobox historical era的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
这是用于历史时代、年号的信息框模板。
使用本模板的条目自动从维基数据取得所需参数值(如有),如不想使用维基数据,可在条目填上所需参数值代替。
用法
[编辑]{{{name}}} {{{native_name}}} | |||
---|---|---|---|
{{{start}}}—{{{end}}} | |||
[[File:{{{image}}}|frameless|alt={{{alt}}}|upright={{{image_upright}}}|{{{alt}}}]] {{{caption}}} | |||
位置 | {{{location}}} | ||
包括 | {{{including}}} | ||
{{{monarch title}}} | {{{monarch}}} | ||
{{{leader title}}} | {{{leader}}} | ||
总统 | {{{presidents}}} | ||
首相 | {{{primeministers}}} | ||
重要事件 | {{{key_events}}} | ||
|
{{Infobox historical era
| name =
| native_name =
| start =
| end =
| image =
| image_upright =
| alt =
| caption =
| location =
| including =
| monarch title =
| monarch =
| leader title =
| leader =
| leaders =
| presidents =
| primeministers =
| key_events =
| before =
| after =
| next =
}}
模板兼容
[编辑]对T:Eranamebox的兼容
[编辑]{{Eranamebox |年号 = |起讫时间 = |政权 = |帝王 = |历时 = |timeline = |说明 = }}
其中“timeline”参数使用简易时间线语法语法生成一个表示年号在这个政权或者这个时期所处的位置。此外,“说明”参数用来简单说明timeline图形所表示的含义。
注:如after参数位置显示为“无值”,请添加|nonext=yes
隐藏。
示例
[编辑]建元 | |
---|---|
前140年—前135年 | |
政权 | 西汉 |
帝王 | 汉武帝刘彻 |
历时 | 6年 |
![]() | |
建元在西汉及汉武帝时期的位置 |
{{Eranamebox |年号 = 建元 |起讫时间 = [[前140年]]—[[前135年]] |政权 = [[西汉]] |帝王 = [[汉武帝]]刘彻 |历时 = 6年 |timeline = <timeline> ImageSize = width:200 height:50 PlotArea = width:180 height:30 left:10 bottom:20 TimeAxis = orientation:horizontal DateFormat = yyyy Period = from:-202 till:8 AlignBars = early ScaleMajor = increment:210 start:-202 Colors = id:canvas value:rgb(1,1,0.85) BackgroundColors = canvas:canvas PlotData = width:15 color:black bar:era from:start till:end bar:era from:-141 till:-87 color:red bar:era from:-140 till:-135 color:yellow </timeline> |说明 = 建元在西汉及汉武帝时期的位置 }}