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 6: Line 6:
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{PageTabs|tab1|tab2|tab3|tab4|tab5|tab6}}
+
{{PageTabs
 +
|rootpage=
 +
|namespace=
 +
|subpages=
 +
|tab1=
 +
|tab2=
 +
|tab3=
 +
|tab4=
 +
|tab5=
 +
|tab6=
 +
}}
 
</pre>
 
</pre>
 +
* '''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.
 
This template can create up to '''six''' page link tabs.
 +
 +
== Examples ==
 +
 +
===Example 1: Links within the same Namespace===
 +
<pre>
 +
{{PageTabs
 +
|tab1=foo
 +
|tab2=bar
 +
|tab3=baz
 +
}}
 +
</pre>
 +
{{PageTabs
 +
|tab1=foo
 +
|tab2=bar
 +
|tab3=baz
 +
}}
 +
 
<hr>
 
<hr>
 +
===Example 2: Links with the same Rootpage===
 +
<pre>
 +
{{PageTabs
 +
|rootpage=Blue Guardian Vetala
 +
|namespace=
 +
|tab1=Overview
 +
|tab2=Dialogue
 +
|tab3=Media
 +
}}
 +
</pre>
 +
{{PageTabs
 +
|rootpage=Blue Guardian Vetala
 +
|namespace=
 +
|tab1=Overview
 +
|tab2=Dialogue
 +
|tab3=Media
 +
}}
  
'''Example 1:'''
+
===Example 3: Links to Separate Pages===
 
<pre>
 
<pre>
 
{{PageTabs
 
{{PageTabs

Revision as of 20:43, 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
}}