Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Difference between revisions of "Template:PageTabs/doc"

From DFO World Wiki
Jump to: navigation, search
m
m
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
'''Note:''' This template's source code is based off of '''Genshin Impact Wiki's CustomTabs template'''. For documentation and more information, refer to the following link:<br>
 
'''Note:''' This template's source code is based off of '''Genshin Impact Wiki's CustomTabs template'''. For documentation and more information, refer to the following link:<br>
:→ [https://genshin-impact.fandom.com/wiki/Template:CustomTabs Link to Genshin Impact Wiki's Template:CustomTabs]
+
:→ Source: [https://genshin-impact.fandom.com/wiki/Template:CustomTabs Link to Genshin Impact Wiki's Template:CustomTabs]
 
<hr>
 
<hr>
 
It should be called in the following format:
 
It should be called in the following format:
Line 22: Line 22:
 
* '''subpages''' - tabs are subpages of the first if set to 1, otherwise are not; default 1.
 
* '''subpages''' - tabs are subpages of the first if set to 1, otherwise are not; default 1.
 
* '''tab1''' - title of first tab.
 
* '''tab1''' - title of first tab.
* '''tab2, tab3, tab4, tab5, tab6''' - title of subpage tabs.
+
* '''tab2, tab3, tab4, tab5, tab6, tab7, tab8, tab9, tab10''' - title of subpage tabs.
  
This template can create up to '''six''' page link tabs.
+
This template can create up to '''ten''' page link tabs.
  
 
== Examples ==
 
== Examples ==

Latest revision as of 20:14, 10 October 2021

This is the "PageTabs" template.

Note: This template's source code is based off of Genshin Impact Wiki's CustomTabs template. For documentation and more information, refer to the following link:

→ Source: Link to Genshin Impact Wiki's Template:CustomTabs

It should be called in the following format:

{{PageTabs
 |rootpage=
 |namespace=
 |subpages=
 |tab1=
 |tab2=
 |tab3=
 |tab4=
 |tab5=
 |tab6=
 }}
  • rootpage - title of root page if not using current page's root.
  • namespace - name of namespace if not using current page's namespace.
  • subpages - tabs are subpages of the first if set to 1, otherwise are not; default 1.
  • tab1 - title of first tab.
  • tab2, tab3, tab4, tab5, tab6, tab7, tab8, tab9, tab10 - title of subpage tabs.

This template can create up to ten page link tabs.

Examples

Example 1: Links within the same Namespace

{{PageTabs
|tab1=foo
|tab2=bar
|tab3=baz
}}

Example 2: Links with the same Rootpage

{{PageTabs
|rootpage=Blue Guardian Vetala
|namespace=
|tab1=Overview
|tab2=Dialogue
|tab3=Media
}}

Example 3: Links to Separate Pages

{{PageTabs
|namespace=
|subpages=0
|tab1=foo
|tab2=bar
|tab3=baz
}}