跳到内容
折叠侧栏
搜索
中文(中国大陆)
创建账号
个人工具
创建账号
登录
导航
首页
最近更改
随机页面
友情链接
互助客栈
加入我们
沙盒
文件列表
导航
中珂院图库
AI研究所
工具
链入页面
相关更改
特殊页面
页面信息
其他语言
查看“模板:Parent Tab”的源代码
模板
讨论
大陆简体
阅读
查看源代码
查看历史
更多
阅读
查看源代码
查看历史
←
模板:Parent Tab
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<div style="font-weight:bold; text-align:center; margin-bottom:0px; "> { {#ifeq: { {SUBPAGENAME } }| { {PAGENAME } }| <!-- main page --> <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{backcolor|#DDDDDD } }}; color:black; font-size:100%; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; "> { {{tab1 } }}</td></tr></table></div> | <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{altbackcolor|transparent } }}; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; ">[[ { {NAMESPACE } }: { {BASEPAGENAME } } { {! } } { {{tab1 } }}]]</td> </tr></table></div> } } { {#if: { {{tab2| } }}| { {#ifeq: { {SUBPAGENAME } }| { {{tab2 } }}| <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{backcolor|#DDDDDD } }}; color:black; font-size:100%; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; "> { {{tab2 } }}</td></tr></table></div> | <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{altbackcolor|transparent } }}; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; ">[[ { {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab2 } }} { {! } } { {{tab2 } }}]] </td> </tr></table></div> } }}} { {#if: { {{tab3| } }}| { {#ifeq: { {SUBPAGENAME } }| { {{tab3 } }}| <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{backcolor|#DDDDDD } }}; color:black; font-size:100%; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; "> { {{tab3 } }}</td></tr></table></div> | <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{altbackcolor|transparent } }}; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; ">[[ { {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab3 } }} { {! } } { {{tab3 } }}]] </td> </tr></table></div> } }}} { {#if: { {{tab4| } }}| { {#ifeq: { {SUBPAGENAME } }| { {{tab4 } }}| <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{backcolor|#DDDDDD } }}; color:black; font-size:100%; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; "> { {{tab4 } }}</td></tr></table></div> | <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{altbackcolor|transparent } }}; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; ">[[ { {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab4 } }} { {! } } { {{tab4 } }}]] </td> </tr></table></div> } }}} { {#if: { {{tab5| } }}| { {#ifeq: { {SUBPAGENAME } }| { {{tab5 } }}| <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{backcolor|#DDDDDD } }}; color:black; font-size:100%; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; "> { {{tab5 } }}</td></tr></table></div> | <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{altbackcolor|transparent } }}; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; ">[[ { {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab5 } }} { {! } } { {{tab5 } }}]] </td></tr></table></div> } }}} { {#if: { {{tab6| } }}| { {#ifeq: { {SUBPAGENAME } }| { {{tab6 } }}| <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{backcolor|#DDDDDD } }}; color:black; font-size:100%; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; "> { {{tab6 } }}</td></tr></table></div> | <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{altbackcolor|transparent } }}; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; ">[[ { {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab6 } }} { {! } } { {{tab6 } }}]] </td></tr></table></div> } }}} { {#if: { {{tab7| } }}| { {#ifeq: { {SUBPAGENAME } }| { {{tab7 } }}| <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{backcolor|#DDDDDD } }}; color:black; font-size:100%; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; "> { {{tab7 } }}</td></tr></table></div> | <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{altbackcolor|transparent } }}; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; ">[[ { {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab7 } }} { {! } } { {{tab7 } }}]] </td></tr></table></div> } }}} { {#if: { {{tab8| } }}| { {#ifeq: { {SUBPAGENAME } }| { {{tab8 } }}| <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{backcolor|#DDDDDD } }}; color:black; font-size:100%; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; "> { {{tab8 } }}</td></tr></table></div> | <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{altbackcolor|transparent } }}; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; ">[[ { {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab8 } }} { {! } } { {{tab8 } }}]] </td></tr></table></div> } }}} { {#if: { {{tab9| } }}| { {#ifeq: { {SUBPAGENAME } }| { {{tab9 } }}| <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{backcolor|#DDDDDD } }}; color:black; font-size:100%; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; "> { {{tab9 } }}</td></tr></table></div> | <div style="min-width: { {{minwidth|5.0 } }}em; max-width: { {{maxwidth|12 } }}em; float:left; border:1.5px solid { {{bordercolor|gray } }}; -moz-border-radius-topright: { {{borderradius|4 } }}px; -moz-border-radius-topleft: { {{borderradius|4 } }}px; border-top-right-radius: { {{borderradius|4 } }}px; border-top-left-radius: { {{borderradius|4 } }}px; -webkit-border-top-right-radius: { {{borderradius|4 } }}px; -webkit-border-top-left-radius: { {{borderradius|4 } }}px; padding:.0em 0.5em; height: { {{height|3.8 } }}em; margin-bottom:10px; background-color: { {{altbackcolor|transparent } }}; "> <table style="height:100%; width:100%; "><tr> <td style="vertical-align:center; ">[[ { {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab9 } }} { {! } } { {{tab9 } }}]] </td></tr></table></div> } }}}<div style="clear:both; "></div> </div><noinclude> <br /> This template is supposed to be the base template for other tab templates. <br /> ==Usage== <br /> <pre> { {Parent Tab Tempate |backcolor= |altbackcolor= |bordercolor= |borderradius= |height= |minwidth= |maxwidth= |tab1= |tab2= |tab3= |tab4= |tab5= |tab6= |tab7= |tab8= |tab9= } }</pre> <br /> All parameters,except '''tab1''',are optional. *'''backcolor''' - background color of active tab; default #DDDDDD; *'''altbackcolor''' - background color of inactive tabs; default transparent; *'''bordercolor''' - border color of every tab; default gray; *'''borderradius''' - border radius of every tab; default 4; *'''height''' - height of tabs,in em; default 3.8em; *'''minwidth''' - min. width of tabs,in em; default 5.0em; *'''maxwidth''' - max. width of tabs,in em; default 12.0em; *'''tab1''' - an arbitrary title of the first tab; *'''tab2''' - title of the second tab; it must correspond to the part after "/" of the name of the page,to which it links *'''tab3''','''tab4''','''tab5''','''tab6''','''tab7''','''tab8''','''tab9''' - like '''tab2''' <br /> <pre> { {Parent Tab |backcolor=#ECF8E0 |altbackcolor=#CCC |bordercolor=red |borderradius=6 |height=2.2 |maxwidth=20 |tab1=Introduction |tab2=Relationships |tab3=Abilities and Powers |tab4=History |tab5=Character Development |tab6=Misc. } }</pre> <br /> [[Category:Templates]] </noinclude>
返回
模板:Parent Tab
。