欢迎来到THBWiki!
如果您是第一次来到这里,请点击右上角注册一个帐户
有任何意见、建议、求助、反馈都可以在
讨论板
提出
THBWiki以专业性和准确性为目标,如果你发现了任何确定的错误或疏漏,可在登录后直接进行改正
查看“︁模板:图形时间轴/doc”︁的源代码
←
模板:图形时间轴/doc
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
少女
您没有权限编辑
模板
命名空间内的页面。
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> ==The easy way== Type {{tlx|include timeline}} in your article, press preview, and follow the link generated. You'll be presented with a ready-to-go template; once this is finished, return to your article, and { {include timeline} } will display your timeline. ==Development== Whilst I've tested this template as thoroughly as I can, I suspect it could be further improved. If you find any glitches or areas you wish you could customise, please let me know! ''[[User:Verisimilus|Verisimilus]]'' '''<small>[[User talk:Verisimilus|T]]</small>''' 12:02, 12 June 2007 (UTC) ==Template function== This template provides an intuitive, user-friendly and flexible way to insert timelines into articles. It's designed to require the minimum number of variables, and to reside within a table - although a margin can be added. ==Why use this template?== The alternative to this template is [[m:EasyTimeline]], using the <nowiki><template></nowiki> syntax. EasyTimeline has the following weaknesses: * Pixelated image produced, which looks different and increases page load time * Long set-up time - taking 30 minutes plus even when you know what you are doing * Impenetrable code requiring precise syntax * Difficult to place bars exactly where you want them * Changing minimum dates and sizes requires modification in many places * Everything must be specified - nothing is automatic * It is not scalable - it does not enlarge with text size. ==Using the template== ===Where to use it=== Whilst short timelines can be inserted directly into the article, some editors complain that long, complex timelines break up the flow of the page and make editing difficult. Therefore, you may want to use {{tl|Include timeline}} to host the timeline code on a separate page, which will be automatically included. ===Getting started=== You can set the switch <tt>|help=on</tt> in the template to produce some quick pointers.<br> When you are getting started, you might want to use <code><nowiki>{{Graphical timeline|help=on}}</nowiki></code> to generate a ready-made, empty template - or type <code><nowiki>{{subst:Graphical timeline/blank}}</nowiki></code> into a sandbox page, save the page, and edit the resulting code. Hopefully, the parameter names are pretty self-explanatory. ===What numbers mean=== Numeric values are by default in units of [[em (typography)|em]], that is, the height and width of a capital M. The exception to this is the left and right parameters of a bar, which are set using fractional coordinates. That is to say, the code <code> |bar1-left=0 |bar1-right=0.5 |bar2-left=0.666 |bar3-left=0.5 |bar3-right=0.666 </code> will produce bar1 covering the left half of the area, bar2 covering the right-most third, and bar3 in between them. Further, for operational reasons, the height-units are always used to generate border widths. ===Bar borders=== Borders appear only on the top and bottom of any given bar. Unfortunately, this cannot be changed - to have a border at the top or bottom only of a bar, you should create a separate bar to overlay the end. Border style can be set to the [[CSS]] standards of <code>solid, dotted, dashed, double, groove, ridge, inset</code> or <code>outset</code>. Width is in the same units as height, and if none is specified 0.1 to 0.2 is a suitable hairline value. ===Blank lines=== Leaving a parameter blank is NOT the same as not specifying it - it will override the template's default value. Be sure to remove any lines you do not specify. ===Geological periods=== To draw a geological period, use the syntax |period3=Cenozoic, with |period3-left=0.1 as usual. The template will then calculate the beginning, end and correct color of the bar. For an example, see {{tiw|Cenozoic graphical timeline}} * [[沙盒/时间轴测试]] ===Considerations=== ====Browsers==== Unfortunately, different browsers have different ways of dealing with lines of text that overflow their container - some stretch the container whilst others wrap the text. This means it's probably worth checking your finished timeline in at least [[Internet Explorer|IE]] and [[Mozilla Firefox|Firefox]] if you are making a particularly complex timeline. ====Colours==== If you are setting colours using html values that look like <code>#e0b539</code>, do consider that some older monitors, and many projectors, cannot display some colours. Sticking to [[Web colors#Web-safe colors|Web-safe colours]] ensures maximum compatibility, which is often appreciated; i.e. multiples of <tt>33</tt>, e.g. <code>#ff99cc</code> or <code>#03C</code>. ====Capacity==== If you find that highly-numbered bars, notes or legend entries are not showing up, it could be because the template has not been coded to handle it. There are instructions in the template code for how to add capacity for more bars etc. yourself (it's a simple copy and paste job); if you are not confident doing that, let ''[[User:Verisimilus|Verisimilus]]'' '''<small>[[User talk:Verisimilus|T]]</small>''' know. ====Easy editing==== If you create a timeline on a subpage, do use the <code> | link-to= </code> parameter. Specify the page name (e.g. <tt>Template:My graphical timeline</tt>), and "edit" and "history" links will appear. ==Parameter list== The list may be long, but do not be daunted - you only need to use a couple, and the rest give you infinite flexibility! Replace any instance of # with a number. To and from are mandatory, all other parameters are optional. ===General parameters=== {| class="wikitable sortable" |+Timeline parameters !Parameter ! Function ! Required? |- |from |The start date of the timeline. May be negative. |{{yes}} |- |to |The final (uppermost) date of the timeline. May be negative. |{{yes}} |- |width | width of the timeline |{{no}} |- | title | What to display in the title bar | {{no}} |- | title-colour | The background colour for the title bar | {{no}} |- |} ===Geological periods=== {| class="wikitable sortable" !Parameter ! Function |- | period# | Specify the name of the period; the template will automatically work out when it starts and ends, and colour it correctly. |- |+ Period parameters |} ===Bars=== {| class="wikitable sortable" !Parameter ! Function |- |width | width of the timeline |- |+ Bar parameters |} ===Legend=== {| class="wikitable sortable" !Parameter ! Function |- |width | width of the timeline |- |+ Legend parameters |} ===Notes=== {| class="wikitable sortable" !Parameter ! Function |- |width | width of the timeline |- |+ Note parameters |} ==In use: an example== The code on the left produces the timeline on the right, which is deliberately horrendous in order to demonstrate the limitations of the template. For a working example, I'd recommend looking at [[Ediacaran biota]]. {{Graphical timeline |title=Example Timeline |align=right |plot-colour=#bbeebb |from=-550 |to=-500 |scale-increment=10 |width=10 |height=250 |height-unit=px |legend1=[[Phanerozoic]] |bar1-from=-542 |bar1-left=0 |bar1-right=0.1 |legend2=[[Precambrian]] |bar2-to=-542 |bar2-left=0 |bar2-right=0.2 |legend3=[[Infracambrian]] |legend3-colour=#e0aacc |bar3-to=-534 |bar3-left=0.1 |bar3-right=0.2 |bar3-colour=#e0aacc |<!-- If this was bar 4 it would be overlapped by the Botomian bar --> |bar14-from=-530 |bar14-to=-520 |bar14-left=0.95 |bar14-right=1.05 |bar14-colour=red |legend14=Cambrian explosion |<!--Epochs & stages--> |bar5-text=[[Ediacaran]] |bar5-to=-540 |bar5-left=0.2 |bar5-border-width=1 |bar5-colour=#cc9999 |bar6-text=[[Nemakit-Daldynian]] |bar6-from=-542 |bar6-to=-534 |bar6-left=0.2 |bar6-border-width=0.1 |bar6-colour=#99cc99 |bar7-text=[[Tommotian]] |bar7-from=-534 |bar7-to=-530 |bar7-left=0.1 |bar7-colour=#99cc99 |bar7-border-width=0.1 |bar8-from=-530.1 |bar8-to=-529.9 |bar8-left=0.2 |bar8-colour=black |bar9-text=[[Atdabanian]] |bar9-from=-530 |bar9-to=-524 |bar9-left=0.1 |bar9-right=0.95 |bar9-colour=#99cc99 |bar10-text=[[Botomian]] |bar10-from=-524 |bar10-to=-518 |bar10-left=0.1 |bar10-colour=#99cc99 |bar10-border-width=0.1 |bar11-text=[[Toyonian]] |bar11-from=-518 |bar11-to=-513 |bar11-left=0.1 |bar11-border-width=0.1 |bar11-colour=#99cc99 |note1=Base of the Cambrian |note1-at=-542 |note1-colour=green |note2=[[Middle Cambrian]] |note2-nudge-left=8.5 |note2-nudge-down=0 |note2-at=-507 |note2-remove-arrow=yes |caption=An approximate time-scale of events<br>at the base of the [[Cambrian]] [[Period (geology){{!}}Period]]. <br>Axis scale is in millions of years ago. }} <pre>{{Graphical timeline |title=Example Timeline |align=right |plot-colour=#bbeebb |from=-550 |to=-500 |scale-increment=10 |width=10 |height=250 |height-unit=px |legend1=[[Phanerozoic]] |bar1-from=-542 |bar1-left=0 |bar1-right=0.1 |legend2=[[Precambrian]] |bar2-to=-542 |bar2-left=0 |bar2-right=0.2 |legend3=[[Infracambrian]] |legend3-colour=#e0aacc |bar3-to=-534 |bar3-left=0.1 |bar3-right=0.2 |bar3-colour=#e0aacc |<!-- If this was bar 4 it would be overlapped by the Botomian bar --> |bar14-from=-530 |bar14-to=-520 |bar14-left=0.95 |bar14-right=1.05 |bar14-colour=red |legend14=Cambrian explosion |<!--Epochs & stages--> |bar5-text=[[Ediacaran]] |bar5-to=-540 |bar5-left=0.2 |bar5-border-width=1 |bar5-border-colour= #996666 |bar5-colour=#cc9999 |bar6-text=[[Nemakit-Daldynian]] |bar6-from=-542 |bar6-to=-534 |bar6-left=0.2 |bar6-border-width=0.1 |bar6-colour=#99cc99 |bar7-text=[[Tommotian]] |bar7-from=-534 |bar7-to=-530 |bar7-left=0.1 |bar7-colour=#99cc99 |bar7-border-width=0.1 |bar8-from=-530.1 |bar8-to=-529.9 |bar8-left=0.2 |bar8-colour=black |bar9-text=[[Atdabanian]] |bar9-from=-530 |bar9-to=-524 |bar9-left=0.1 |bar9-right=0.95 |bar9-colour=#99cc99 |bar10-text=[[Botomian]] |bar10-from=-524 |bar10-to=-518 |bar10-left=0.1 |bar10-colour=#99cc99 |bar10-border-width=0.1 |bar11-text=[[Toyonian]] |bar11-from=-518 |bar11-to=-513 |bar11-left=0.1 |bar11-border-width=0.1 |bar11-colour=#99cc99 |note1=Base of the Cambrian |note1-at=-542 |note1-colour=green |note2=[[Middle Cambrian]] |note2-nudge-left=8.5 |note2-nudge-down=0 |note2-at=-507 |note2-remove-arrow=yes |caption=An approximate time-scale of events<br>at the base of the [[Cambrian]] [[Period (geology){{!}}Period]]. <br>Axis scale is in millions of years ago. }} </pre> ==Notes on the example== * <code><nowiki>{{!}}</nowiki></code> must be used wherever you want a | to appear (e.g. the caption) * If you do not specify when a bar should start or end, it will continue to the edge of the plot * Text should not be too long for the bar * The way that overflowing text wraps is also handled differently in the two borders - it pokes out of the right of the bar on Firefox, but is wrapped within it by IE. Try to manually enter newlines when required rather than relying on browsers to sort it out. Or position a note over the bar - check out note2, which is nudged left over the plot background. <!-- Categories below this line --> <includeonly> [[分类:时间轴模板|{{PAGENAME}}]] </includeonly>
该页面使用的模板:
模板:Draw Bar
(
查看源代码
)
模板:Graphical timeline
(
查看源代码
)
模板:No
(
查看源代码
)
模板:Scalemarkers
(
查看源代码
)
模板:Timeline Legend
(
查看源代码
)
模板:Timeline Note
(
查看源代码
)
模板:Tiw
(
查看源代码
)
模板:Tl
(
查看源代码
)(受保护)
模板:TlX
(
查看源代码
)
模板:Yes
(
查看源代码
)
模板:No
(
查看源代码
)
模板:Scalemarkers
(
查看源代码
)
模板:Tiw
(
查看源代码
)
模板:Tl
(
查看源代码
)
模板:TlX
(
查看源代码
)
模板:Yes
(
查看源代码
)
模板:图形时间轴
(
查看源代码
)
返回
模板:图形时间轴/doc
。
导航菜单
个人工具
创建账号
登录
命名空间
模板
讨论
查看
阅读
源码
查看历史
更多
搜索
常用
首页
东方Project
上海爱丽丝幻乐团
ZUN
幻想乡
幻想乡年表
东方年表
东方同人规约
近期新闻
沙盒(建议使用)
讨论板
加入我们
官方作品
官方游戏
旧作
东方灵异传
东方封魔录
东方梦时空
东方幻想乡
东方怪绮谈
东方红魔乡
东方妖妖梦
东方永夜抄
东方花映塚
东方风神录
东方地灵殿
东方星莲船
东方神灵庙
东方辉针城
东方绀珠传
东方天空璋
东方鬼形兽
东方虹龙洞
东方兽王园
小数点射击游戏
东方文花帖
东方文花帖DS
妖精大战争
弹幕天邪鬼
秘封噩梦日记
弹幕狂们的黑市
黄昏边境合作游戏
东方萃梦想
东方绯想天
东方非想天则
东方心绮楼
东方深秘录
东方凭依华
东方刚欲异闻
官方音乐
原曲列表
非音乐CD音乐列表
音乐CD曲目列表
蓬莱人形
莲台野夜行
梦违科学世纪
卯酉东海道
大空魔术
未知之花 魅知之旅
鸟船遗迹
伊奘诺物质
燕石博物志
旧约酒馆
虹色的北斗七星
七夕坂梦幻能
幺乐团的历史系列
幺乐团的历史 vol.1
幺乐团的历史 vol.2
幺乐团的历史 vol.3
幺乐团的历史 vol.4
幺乐团的历史 vol.5
黄昏游戏OST
幻想曲拔萃
全人类的天乐录
核热造神非想天则
暗黑能乐集心绮楼
深秘乐曲集
深秘乐曲集·补
完全凭依唱片名录
贪欲之兽的音乐
商业出版物附带CD
官方书籍
东方香霖堂
东方三月精
第一季
月之妖精
第二季
第三季
第四季
东方文花帖
风之号外
东方紫香花
六十年不见的紫香花
东方儚月抄
漫画
小说
四格
东方茨歌仙
东方铃奈庵
东方醉蝶华
东方智灵奇传
东方求闻史纪
记忆幻想乡
东方求闻口授
魔理沙的魔法书
宇佐见的魔法书
东方外来韦编
东方文果真报
东方人妖名鉴
宵暗篇
常世篇
幻想Narrato Graph
官方角色
公式资料
附带文档
游戏对话
官方作品光盘信息
角色自称用词表
官作译名更改记录
原作物品列表
出典文献列表
其他ZUN参与的作品
西方Project
黄昏酒场
东方关联人物
游戏攻略
东方相关活动
从第二家开始的广播
东方STATION
数码游戏博览会
PoriPori☆Club
niconico超会议
斗会议
niconico原创游戏祭
枯萎Radio
GDGD
其他相关项目
东方我乐多丛志
东方四方山新闻
Play,Doujin!
东方电书流通
东方音乐流通
二次创作与活动
展会及活动导航
Comic Market
博丽神社例大祭
博丽神社例大祭SP
博丽神社秋季例大祭
博丽神社例大祭in台湾
海外博丽神社例大祭
博丽神社歌谣祭
博丽神社崇敬会相关活动
COMICUP
魅知幻想博览会
上海THONLY
东方Only活动
东方红楼梦
角色Only活动
作品Only活动
地区Only活动
其他地区举办的展会
其他展会
M3
COMIC1
展会作品列表
展会作品数量
展会同人志列表
展会专辑列表
展会软件列表
展会视频列表
商业二次创作
电脑游戏
东方月神夜
家用机游戏
Play,Doujin
手机游戏
东方大炮弹
东方LostWord
东方Dungeon Dive
东方弹幕神乐
东方幻想Eclipse
同人二次创作
同人社团列表
同人志分类
同人专辑分类
同人专辑搜索
原曲作品数量
同人软件列表
Steam游戏列表
同人角色列表
同人视频列表
其他形式同人
同人文章列表
同人画师列表
同人封面角色
东方相关周边
PVCFigure
GarageKit
小型物品
其他形式周边
MUGEN
THB相关项目
THB策划
中文东方人气投票
东深见讲坛
幻想乡柱状地图
THB衍生
同人专辑搜索
原曲认知测验
东方相关QQ群组列表
THB媒体
微博
Bilibili
直播间
GitHub
THB协力
博丽神主ZUN微博
东方我乐多丛志
MineCraft幻想乡
京都幻想剧团
幻奏盛宴
功能与帮助
最近更改
随机浏览
编写规范
收录方针
命名规范
同人社团
同人音乐
封面图片
二次设定
编辑帮助
基础帮助
常用模板
进阶代码
函数用法
编写翻译表
语义维基
样式类用法
颜色列表
工具
链入页面
相关更改
特殊页面
页面信息
其他
联系管理员
关于THBWiki
捐款支持
语言
English
italiano
日本語
中文