Template:NavSpecies: Difference between revisions
From Portals of Phereon Wiki
Content added Content deleted
(add class and open tab) |
m (add possibility of adding a class to a tabler) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> |
<includeonly><templatestyles src="NavSpecies/NavSpecies.css" /> |
||
{{#if:{{{16|}}}|<span class="error">[[Template:NavSpecies]]: Too many tabs; maximum is 15.</span>[[Category:Template errors]]| |
{{#if:{{{16|}}}|<span class="error">[[Template:NavSpecies]]: Too many tabs; maximum is 15.</span>[[Category:Template errors]]| |
||
{{#vardefine:i|{{#if:{{{1|}}}|1}}}} |
{{#vardefine:i|{{#if:{{{1|}}}|1}}}} |
||
<div class="tabber-NavSpecies {{#if:{{#replace:{{{class|}}}| |}}|tabber-{{#replace:{{{class|}}}| |}}|}}" data-open-tab="{{{open|1}}}"> |
|||
{{#tag:tabber| |
{{#tag:tabber| |
||
{{#while: |
{{#while: |
||
Line 8: | Line 9: | ||
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} |
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} |
||
}} |
}} |
||
|class=".tabber-NavSpecies" |
|||
|OpenTab={{{0|}}} |
|||
}} |
}} |
||
</div> |
|||
}} |
}} |
||
</includeonly><!-- |
</includeonly><!-- |
Latest revision as of 01:27, 25 July 2022
- 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:
[view | edit | purge]The above documentation is transcluded fromTemplate:NavSpecies/doc.