模板:时横轴/doc
外观
此模板使用Lua语言: |
范例
[编辑]{{时横轴 |from=-2000 |to=2000 |inc=500 |row1=scale }}
│
−2000
│
−1500
│
−1000
│
−500
│
0
│
500
│
1000
│
1500
│
2000
{{时横轴 |from=-2000 |to=2000 |inc=500 |row1=scale |axis-negativeFmt=%s BC |axis-positiveFmt=%s AD |axis-zeroFmt= %s AD |axis-nudge=-0.8em }}
│
2000 BC
│
1500 BC
│
1000 BC
│
500 BC
│
0 AD
│
500 AD
│
1000 AD
│
1500 AD
│
2000 AD
{{时横轴 |from=0 |to=2000 |stylePopes-boxcolour=#4169E1 |stylePopes-border=none;border:2px solid blue |styleAntiPopes-boxcolour=#DC143C |styleAntiPopes-border=none;border:2px solid red |styleDefault-height=1.5em |styleDefault-1-border=none; |styleDefault-3-border=none;text-align:left |styleDefault-3-texttop=0em;left:0.5em; |styleDefault-5-border=none;text-align:left |styleDefault-5-texttop=0em;left:0.5em; |row1=timeline |row1-style=styleDefault |row1-1-to=0 |row1-2-to=200 |row1-2-style=stylePopes |row1-3-text=1 |row1-3-to=1000 |row1-4-to=1200 |row1-4-style=styleAntiPopes |row1-5-text=2 |row2=timeline |row2-style=styleDefault |row2-1-to=201 |row2-2-to=400 |row2-2-style=stylePopes |row2-3-text=3 |row2-3-to=1201 |row2-4-to=1400 |row2-4-style=styleAntiPopes |row2-5-text=4 |row3=timeline |row3-style=styleDefault |row3-1-to=401 |row3-2-to=600 |row3-2-style=stylePopes |row3-3-text=5 |row3-3-to=1401 |row3-4-to=1600 |row3-4-style=styleAntiPopes |row3-5-text=6 |row4=timeline |row4-style=styleDefault |row4-1-to=601 |row4-2-to=800 |row4-2-style=stylePopes |row4-3-text=7 |row4-3-to=1601 |row4-4-to=1800 |row4-4-style=styleAntiPopes |row4-5-text=8 |row5=timeline |row5-style=styleDefault |row5-1-to=801 |row5-2-to=1000 |row5-2-style=stylePopes |row5-3-text=9 |row5-3-to=1801 |row5-4-to=2000 |row5-4-style=styleAntiPopes |row5-5-text=10 |row6=scale |caption=说明文字 }}
│
0
│
400
│
800
│
1200
│
1600
│
2000
说明文字