Template:NavSpecies: Difference between revisions
From Portals of Phereon Wiki
Content added Content deleted
mNo edit summary |
m (test) |
||
Line 2: | Line 2: | ||
{{#css:MediaWiki:Tabber.css}} |
{{#css:MediaWiki:Tabber.css}} |
||
{{#css:MediaWiki:NavSpecies.css}} |
{{#css:MediaWiki:NavSpecies.css}} |
||
<tabs> |
|||
<div class="tabber-NavSpecies OpenTab={{{open|1}}}">{{#tag:tabber| |
|||
⚫ | |||
{{#if:{{{1|}}}|{{ucfirst:{{{1|}}}}}={{NavSpecies/{{ucfirst:{{{1|}}}}}}}}} |
|||
{{#vardefine:i|#if:{{{1|1}}}}} |
|||
{{!}}-{{!}} |
|||
{{#while: |
|||
{{#if:{{{2|}}}|{{ucfirst:{{{2|}}}}}={{NavSpecies/{{ucfirst:{{{2|}}}}}}}}} |
|||
| {{#if:{{{{{#var:i}}}}}|true|false}} |
|||
{{!}}-{{!}} |
|||
{{ |
| <tab name={{ucfirst:{{{{{#var:i}}|}}}> {{NavSpecies/{{ucfirst:{{{{{#var:i}}|}}} |
||
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} |
|||
{{!}}-{{!}} |
|||
}} |
|||
{{#if:{{{4|}}}|{{ucfirst:{{{4|}}}}}={{NavSpecies/{{ucfirst:{{{4|}}}}}}}}} |
|||
}} |
|||
{{!}}-{{!}} |
|||
</tabs></includeonly><!-- |
|||
{{#if:{{{5|}}}|{{ucfirst:{{{5|}}}}}={{NavSpecies/{{ucfirst:{{{5|}}}}}}}}} |
|||
{{!}}-{{!}} |
|||
{{#if:{{{6|}}}|{{ucfirst:{{{6|}}}}}={{NavSpecies/{{ucfirst:{{{6|}}}}}}}}} |
|||
{{!}}-{{!}} |
|||
{{#if:{{{7|}}}|{{ucfirst:{{{7|}}}}}={{NavSpecies/{{ucfirst:{{{7|}}}}}}}}} |
|||
{{!}}-{{!}} |
|||
{{#if:{{{8|}}}|{{ucfirst:{{{8|}}}}}={{NavSpecies/{{ucfirst:{{{8|}}}}}}}}} |
|||
{{!}}-{{!}} |
|||
{{#if:{{{9|}}}|{{ucfirst:{{{9|}}}}}={{NavSpecies/{{ucfirst:{{{9|}}}}}}}}} |
|||
{{!}}-{{!}} |
|||
{{#if:{{{10|}}}|{{ucfirst:{{{10|}}}}}={{NavSpecies/{{ucfirst:{{{10|}}}}}}}}} |
|||
{{!}}-{{!}} |
|||
{{#if:{{{11|}}}|{{ucfirst:{{{11|}}}}}={{NavSpecies/{{ucfirst:{{{11|}}}}}}}}} |
|||
{{!}}-{{!}} |
|||
{{#if:{{{12|}}}|{{ucfirst:{{{12|}}}}}={{NavSpecies/{{ucfirst:{{{12|}}}}}}}}} |
|||
{{!}}-{{!}} |
|||
{{#if:{{{13|}}}|{{ucfirst:{{{13|}}}}}={{NavSpecies/{{ucfirst:{{{13|}}}}}}}}} |
|||
{{!}}-{{!}} |
|||
{{#if:{{{14|}}}|{{ucfirst:{{{14|}}}}}={{NavSpecies/{{ucfirst:{{{14|}}}}}}}}} |
|||
{{!}}-{{!}} |
|||
{{#if:{{{15|}}}|{{ucfirst:{{{15|}}}}}={{NavSpecies/{{ucfirst:{{{15|}}}}}}}}} |
|||
<!--Continue pattern as needed--> |
|||
⚫ | |||
IMPORTANT NOTE: There is a zero width space (there is one here ><) before each = sign. This is to prevent an issue with tabber when the tab name and a link in said tab have the same name. |
IMPORTANT NOTE: There is a zero width space (there is one here ><) before each = sign. This is to prevent an issue with tabber when the tab name and a link in said tab have the same name. |
||
--><noinclude>{{Documentation}}</noinclude> |
--><noinclude>{{Documentation}}</noinclude> |
Revision as of 04:54, 13 December 2020
- Description
- Creates a species visual navbox with up to 15 tabs based on given parameters.
- Info
- All valid tabs can be found here
- The first letter of parameters will always get capitalized
- The optional open=# parameter can be used to specify which tab is open by default
- The optional class= parameter can be used to add class to the tabler. currently available: wide
- See also Template:NavSpeciesBasic
- Tab color styles are done in Template:NavSpecies/NavSpecies.css
- Example
{{NavSpecies|open=3|shadow|Harpy|mermaid|Beast}}
Will result in this:
<tabs>
{{#if:|Template:NavSpecies: Too many tabs; maximum is 15.|
{{#while: | true | <tab name={{ucfirst:> Template:NavSpecies/
</tabs>
[view | edit | purge]The above documentation is transcluded fromTemplate:NavSpecies/doc.