模板:Eranamebox/doc
跳至導覽
跳至搜尋
| File:Edit-copy green.svg | 此頁面是Template:Eranamebox的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
本信息框模板主要用於年號條目中,以達成一致的專題風格。
用法[編輯]
{{Eranamebox
|年号 =
|起讫时间 =
|政权 =
|帝王 =
|历时 =
|timeline =
|说明 =
}}
其中「timeline」參數使用簡易時間線語法語法生成一個表示年號在這個政權或者這個時期所處的位置。
此外,「說明」參數用來簡單說明timeline圖形所表示的含義。
示例[編輯]
以下代碼:
{{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>
|说明 = 建元在西汉及汉武帝时期的位置
}}
得到:
- redirectt:Infobox historical era