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"
(Created new page.) |
m |
||
Line 1: | Line 1: | ||
<includeonly><table cellspacing="10" cellpadding="20"><tr> | <includeonly><table cellspacing="10" cellpadding="20"><tr> | ||
{{#if:{{{tab1|}}}| | {{#if:{{{tab1|}}}| | ||
− | <th style=" | + | <th style="{{#ifeq:{{SUBPAGENAME}}|{{{tab1}}}| |
+ | | | ||
{{TabBox}} | {{TabBox}} | ||
+ | }} | ||
" | " | ||
− | >{{ | + | ><div>[[{{{namespace|{{NAMESPACE}}}}}:{{#ifeq:{{{subpages|1}}}|1|{{{rootpage|{{ROOTPAGENAME}}}}}{{!}}{{{tab1}}}|{{{tab1}}}{{!}}{{{tab1name|{{{tab1}}}}}}}}]]</div> |
</th> | </th> | ||
}} | }} | ||
Line 11: | Line 13: | ||
{{TabBox}} | {{TabBox}} | ||
" | " | ||
− | >{{Colored link|#f8d8a8| {{{tab2}}} }} | + | ><div>{{Colored link|#f8d8a8|{{{namespace|{{NAMESPACE}}}}}:{{#ifeq:{{{subpages|1}}}|1|{{{rootpage|{{ROOTPAGENAME}}}}}/|}}{{{tab2}}}|{{{tab2name|{{{tab2}}}}}}}}</div> |
</th> | </th> | ||
}} | }} | ||
Line 18: | Line 20: | ||
{{TabBox}} | {{TabBox}} | ||
" | " | ||
− | >{{Colored link|#f8d8a8| {{{tab3}}} }} | + | ><div>{{Colored link|#f8d8a8|{{{namespace|{{NAMESPACE}}}}}:{{#ifeq:{{{subpages|1}}}|1|{{{rootpage|{{ROOTPAGENAME}}}}}/|}}{{{tab3}}}|{{{tab3name|{{{tab3}}}}}}}}</div> |
</th> | </th> | ||
}} | }} | ||
Line 25: | Line 27: | ||
{{TabBox}} | {{TabBox}} | ||
" | " | ||
− | >{{Colored link|#f8d8a8| {{{tab4}}} }} | + | ><div>{{Colored link|#f8d8a8|{{{namespace|{{NAMESPACE}}}}}:{{#ifeq:{{{subpages|1}}}|1|{{{rootpage|{{ROOTPAGENAME}}}}}/|}}{{{tab4}}}|{{{tab4name|{{{tab4}}}}}}}}</div> |
</th> | </th> | ||
}} | }} | ||
Line 32: | Line 34: | ||
{{TabBox}} | {{TabBox}} | ||
" | " | ||
− | >{{Colored link|#f8d8a8| {{{tab5}}} }} | + | ><div>{{Colored link|#f8d8a8|{{{namespace|{{NAMESPACE}}}}}:{{#ifeq:{{{subpages|1}}}|1|{{{rootpage|{{ROOTPAGENAME}}}}}/|}}{{{tab5}}}|{{{tab5name|{{{tab5}}}}}}}}</div> |
</th> | </th> | ||
}} | }} | ||
Line 39: | Line 41: | ||
{{TabBox}} | {{TabBox}} | ||
" | " | ||
− | >{{Colored link|#f8d8a8| {{{tab6}}} }} | + | ><div>{{Colored link|#f8d8a8|{{{namespace|{{NAMESPACE}}}}}:{{#ifeq:{{{subpages|1}}}|1|{{{rootpage|{{ROOTPAGENAME}}}}}/|}}{{{tab6}}}|{{{tab6name|{{{tab6}}}}}}}}</div> |
</th> | </th> | ||
}} | }} | ||
− | </tr></table></includeonly>< | + | </tr></table></includeonly><!-- Source code based off of https://genshin-impact.fandom.com/wiki/Template:CustomTabs --><noinclude> |
− | + | {{Documentation}}<!-- Add categories to the /doc subpage, not here! --> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | }} | ||
− | </ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Revision as of 19:30, 9 October 2021
Template Documentation view
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 }}