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"
(Created documentation page.) |
m |
||
(6 intermediate revisions 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: | ||
<pre> | <pre> | ||
− | {{PageTabs|tab1|tab2|tab3|tab4|tab5|tab6}} | + | {{PageTabs |
+ | |rootpage= | ||
+ | |namespace= | ||
+ | |subpages= | ||
+ | |tab1= | ||
+ | |tab2= | ||
+ | |tab3= | ||
+ | |tab4= | ||
+ | |tab5= | ||
+ | |tab6= | ||
+ | }} | ||
+ | </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, 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=== | ||
+ | <pre> | ||
+ | {{PageTabs | ||
+ | |tab1=foo | ||
+ | |tab2=bar | ||
+ | |tab3=baz | ||
+ | }} | ||
</pre> | </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 3: Links to Separate Pages=== | |
<pre> | <pre> | ||
{{PageTabs | {{PageTabs | ||
+ | |namespace= | ||
+ | |subpages=0 | ||
|tab1=foo | |tab1=foo | ||
|tab2=bar | |tab2=bar | ||
Line 21: | Line 72: | ||
</pre> | </pre> | ||
{{PageTabs | {{PageTabs | ||
+ | |namespace= | ||
+ | |subpages=0 | ||
|tab1=foo | |tab1=foo | ||
|tab2=bar | |tab2=bar | ||
|tab3=baz | |tab3=baz | ||
}} | }} |
Latest revision as of 19: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:
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.
Contents
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 }}