模板:Parent Tab

    来自中国珂学院
    ChthollyRoot(讨论 | 贡献)2020年4月1日 (三) 19:15的版本
    {

    {#ifeq: { {SUBPAGENAME } }| { {PAGENAME } }|

    {

    {{tab1 }

    }}

    |

    [[ {

    {NAMESPACE } }: { {BASEPAGENAME } } { {! } } { {{tab1 }

    }}]]

    } } { {#if: { 模板:Tab2| { {#ifeq: { {SUBPAGENAME } }| { {{tab2 } }}|

    {

    {{tab2 }

    }}

    |

    [[ {

    {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab2 } }} { {! } } { {{tab2 } }}]]

    } }}} { {#if: { 模板:Tab3| { {#ifeq: { {SUBPAGENAME } }| { {{tab3 } }}|

    {

    {{tab3 }

    }}

    |

    [[ {

    {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab3 } }} { {! } } { {{tab3 } }}]]

    } }}} { {#if: { 模板:Tab4| { {#ifeq: { {SUBPAGENAME } }| { {{tab4 } }}|

    {

    {{tab4 }

    }}

    |

    [[ {

    {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab4 } }} { {! } } { {{tab4 } }}]]

    } }}} { {#if: { 模板:Tab5| { {#ifeq: { {SUBPAGENAME } }| { {{tab5 } }}|

    {

    {{tab5 }

    }}

    |

    [[ {

    {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab5 } }} { {! } } { {{tab5 } }}]]

    } }}} { {#if: { 模板:Tab6| { {#ifeq: { {SUBPAGENAME } }| { {{tab6 } }}|

    {

    {{tab6 }

    }}

    |

    [[ {

    {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab6 } }} { {! } } { {{tab6 } }}]]

    } }}} { {#if: { 模板:Tab7| { {#ifeq: { {SUBPAGENAME } }| { {{tab7 } }}|

    {

    {{tab7 }

    }}

    |

    [[ {

    {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab7 } }} { {! } } { {{tab7 } }}]]

    } }}} { {#if: { 模板:Tab8| { {#ifeq: { {SUBPAGENAME } }| { {{tab8 } }}|

    {

    {{tab8 }

    }}

    |

    [[ {

    {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab8 } }} { {! } } { {{tab8 } }}]]

    } }}} { {#if: { 模板:Tab9| { {#ifeq: { {SUBPAGENAME } }| { {{tab9 } }}|

    {

    {{tab9 }

    }}

    |

    [[ {

    {NAMESPACE } }: { {BASEPAGENAME } }/ { {{tab9 } }} { {! } } { {{tab9 } }}]]

    }

    }}}


    This template is supposed to be the base template for other tab templates.


    Usage


     {
    	{Parent Tab Tempate
    |backcolor=
    |altbackcolor=
    |bordercolor=
    |borderradius=
    |height=
    |minwidth=       
    |maxwidth=
    |tab1=
    |tab2=
    |tab3=
    |tab4=
    |tab5=
    |tab6=
    |tab7=
    |tab8=
    |tab9=
    }
    }


    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


     {
    	{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.
    }
    }