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
Line 16: Line 16:
 
  |tab5=
 
  |tab5=
 
  |tab6=
 
  |tab6=
}}
+
}}
 
</pre>
 
</pre>
 
* '''rootpage''' - title of root page if not using current page's root.
 
* '''rootpage''' - title of root page if not using current page's root.

Revision as of 22:06, 9 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:

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 - title of subpage tabs.

This template can create up to six 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
}}