Template:NavSpecies: Difference between revisions

From Portals of Phereon Wiki
Content added Content deleted
portalsofphereon>Olaroll
No edit summary
portalsofphereon>Olaroll
No edit summary
Line 1: Line 1:
<onlyinclude>{{#tag:tabview|
<includeonly>{{#tag:tabview|
<!-- if Parameter not empty -> Template:NavSpecies/Parameter|Parameter (Parameter gets capitalized if necessary) -->
<!-- if Parameter not empty -> Template:NavSpecies/Parameter|Parameter (Parameter gets capitalized if necessary) -->
{{#if:{{{1|}}}|Template:NavSpecies/{{ucfirst:{{{1|}}}}}{{!}}{{ucfirst:{{{1|}}}}}}}{{#ifeq:{{{open|}}}|1|{{!}}{{!}}true}}
{{#if:{{{1|}}}|Template:NavSpecies/{{ucfirst:{{{1|}}}}}{{!}}{{ucfirst:{{{1|}}}}}}}{{#ifeq:{{{open|}}}|1|{{!}}{{!}}true}}
Line 17: Line 17:
{{#if:{{{15|}}}|Template:NavSpecies/{{ucfirst:{{{15|}}}}}{{!}}{{ucfirst:{{{15|}}}}}}}{{#ifeq:{{{open|}}}|15|{{!}}{{!}}true}}
{{#if:{{{15|}}}|Template:NavSpecies/{{ucfirst:{{{15|}}}}}{{!}}{{ucfirst:{{{15|}}}}}}}{{#ifeq:{{{open|}}}|15|{{!}}{{!}}true}}
<!-- If needed, add more lines with the same pattern here -->
<!-- If needed, add more lines with the same pattern here -->
}}</onlyinclude>
}}</includeonly><!--


--><noinclude>{{Documentation}}</noinclude>








asdf
<noinclude>{{Documentation}}</noinclude>

Revision as of 20:46, 8 September 2019

[view | edit | purge]Documentation
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
For example using this:
{{NavSpecies|open=3|shadow|Harpy|mermaid|Beast}}

Will result in this: <tabview> Template:NavSpecies/Shadow|Shadow Template:NavSpecies/Harpy|Harpy Template:NavSpecies/Mermaid|Mermaid||true Template:NavSpecies/Beast|Beast






</tabview>

[view | edit | purge]The above documentation is transcluded fromTemplate:NavSpecies/doc.