跳至內容

模板:Infobox historical era/doc

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書

這是用於歷史時代、年號的資訊框模板。

使用本模板的條目自動從維基數據取得所需參數值(如有),如不想使用維基數據,可在條目填上所需參數值代替。

用法

[編輯]
{{{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}}}
{{{before}}} {{{after}}} class-skin-invert-image
{{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>
|说明 = 建元在西汉及汉武帝时期的位置
}}