Template:Tab/doc
Jump to navigation
Jump to search
Usage
This will create header tabs. For each
Parameters
{{Tab |rootpage = |namespace = |subpages = |tab1 = |tab2 = |tab3 = |tab4 = }}
Fields
Field | Accepted Values | Example | Notes |
---|---|---|---|
rootpage | a page name | Ashura | - OPTIONAL. Overwrites what the rootpage will be. |
namespace | a namespace | Template | - Use if the namespace is different than the one this template is being inserted into. Otherwise, leave empty (defaults to the main namespace). |
subpages | default:1/else | 1 | - OPTIONAL. Default set to 1, which will display any following tabs to be the subpages of tab1. Use/change this field if your headers are being used to link to various independent pages. |
tab1 | Page Name | Cooking | - Required. By default, what is set in this page will dictate the content/links of subsequent tabs. |
tab2~4 | Subpage Name | Dialogue | - Required. By default, content here will be the subpages of tab1. |
Example
{{Tab |tab1= Ashura |tab2= Biography |tab3= Dialogue }}
(The example code has been slightly modified to display it properly in this documentation.)
{{Tab |namespace= |subpages=0 |tab1= Palia |tab2= Kilima Village |tab3= Bahari Bay }}
(The example code has been slightly modified to display it properly in this documentation.)