Editing Template:Custom Tabs/doc

Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{Documentation/Header}}
{{Documentation/Header}}
{{High Risk|pagetype=Main}}
{{CSS|CustomTabs}}
{{CSS|CustomTabs}}
Template for creating tabs for navigation.
Template for creating tabs for navigation.


==Syntax==
==Parameters==
{{T|Custom Tabs
<pre>
|p1 =rootpage  =  
{{Custom Tabs
|p2 =namespace =  
|rootpage  =
|p3 =subpages  =  
|namespace =  
|p4 =tab1      =  
|subpages  =  
|p5 =tab2      =  
|tab1      =  
|p6 =tab3      =  
|tab2      =  
|p7 =tab4      =  
|tab2name  =  
|p8 =tab5      =  
|tab3      =  
|p9 =tab6      =  
|tab3name  =  
|p10=tab7      =  
|tab4      =  
|p11=tab8      =  
|tab4name  =  
|p12=tab9      =  
|tab5      =  
|block=1}}
|tab5name  =  
*{{F|rootpage}} &mdash; title of root page if not using current page's root.
|tab6      =  
*{{F|namespace}} &mdash; name of namespace if not using current page's namespace. Use empty parameter for main namespace.
|tab6name  =  
*{{F|subpages}} &mdash; tabs are subpages of the first if set to 1, otherwise are notm. Default {{F|1}}.
|tab7      =  
*{{F|tab1}} &mdash; title of first tab.
|tab7name  =  
*{{F|tab2}}, {{F|tab3}}, {{F|tab4}}, {{F|tab5}}, {{F|tab6}}, {{F|tab7}}, {{F|tab8}}, {{F|tab9}} &mdash; title of subpage tabs.
|tab8      =  
|tab8name  =  
|tab9      =  
|tab9name  =
|tab10    =
|tab10name =
|tab11    =
|tab11name =
|tab12    =
|tab12name =  
|tab13    =
|tab13name =
}}
</pre>
* {{F|rootpage}} - title of root page if not using current page's root.
* {{F|namespace}} - name of namespace if not using current page's namespace.
* {{F|subpages}} - tabs are subpages of the first if set to 1, otherwise are not; default 1.
* {{F|tab1}} - name of the first tab
* {{F|tab((x))}} - name of the subpage
* {{F|tab((x))name}} - name to diplay in the tabs view


==Examples==
==Examples==
{{T|Custom Tabs|block=1|_Yn_=1
{{T|Custom Tabs|block=1|_Y_=1|_Ybr_=1
|p1=tab1 = Overview
|p1 = tab1 = Overview
|p2=tab2 = Story
|p2 = tab2 = Story
|p3=tab3 = Voicelines
|p3 = tab3 = Voicelines
|p4=tab4 = Media
|p4 = tab4 = Media
}}
{{T|Custom Tabs|block=1|_Yn_=1
|p1=rootpage  = Nanafey
|p2=namespace =
|p3=class    = custom-tabs-secondary
|p4=tab1      = Overview
|p5=tab2      = Story
|p6=tab3      = Combat
|p7=tab4      = Voicelines
|p8=tab5      = Anima
}}
{{T|Custom Tabs|block=1|_Yn_=1
|p1=namespace =
|p2=subpages  = 0
|p3=class    = custom-tabs-tertiary
|p4=tab1      = Taileep
|p5=tab1name  = First Tab
|p6=tab2      = Puddlipup
|p7=tab2name  = Second Tab
|p8=tab3      = Vulberry
|p9=tab3name  = Third Tab
|p10=tab4      = Foalhardy
|p11=tab4name  = Forth Tab
}}
}}
==Template Data==
<templatedata>
{
"params": {
"tab1": {},
"rootpage": {
"description": "Title of the root page to base the tab's subpages on, if not using the actual root page name (content before only the first /)",
"example": "Furnishing/List",
"type": "wiki-page-name"
},
"namespace": {},
"subpages": {
"description": "Set to 0 if tabs are not subpages of the first page.",
"type": "boolean",
"default": "1"
},
"tab1name": {},
"tab2": {},
"tab2name": {},
"tab3": {},
"tab3name": {},
"tab4": {},
"tab4name": {},
"tab5": {},
"tab5name": {},
"tab6": {},
"tab6name": {},
"tab7": {},
"tab7name": {},
"tab8": {},
"tab8name": {},
"tab9": {},
"tab9name": {},
"tab10": {},
"tab10name": {},
"tab11": {},
"tab11name": {},
"tab12": {},
"tab12name": {},
"tab13": {},
"tab13name": {},
"class": {
"description": "Assign a different class to differentiate between multiple sets of tabs on the same page.",
"example": "custom-tabs-secondary",
"type": "string",
"default": "custom-tabs-default"
}
},
"format": "{{_\n|_ = _\n}}\n",
"paramOrder": [
"rootpage",
"namespace",
"subpages",
"class",
"tab1",
"tab1name",
"tab2",
"tab2name",
"tab3",
"tab3name",
"tab4",
"tab4name",
"tab5",
"tab5name",
"tab6",
"tab6name",
"tab7",
"tab7name",
"tab8",
"tab8name",
"tab9",
"tab9name",
"tab10",
"tab10name",
"tab11",
"tab11name",
"tab12",
"tab12name",
"tab13",
"tab13name"
],
"description": "Template for creating tabs for navigation."
}
</templatedata><noinclude>
<!-- Interwiki links here -->
</noinclude>
Please note that all contributions to Honkai: Nexus Anima Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Honkai Nexus Anima Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template
Below are commonly used wikitext from MediaWiki:Edittools. Click on any to insert them in the edit box.

Parser Functions:{{#if:||}}
{{#ifeq:|||}}
{{#expr:}}
{{#switch:||#default=}}
{{#replace:||}}
{{#titleparts:}}
{{#tag:|}}