MediaWiki talk:Gadget-Tabs.js

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search

Documentation

(Coming soon. Maybe. Drop a message at User talk:Abdullah5599@legacy41961806 if you really want this)


  • The clickable tab elements should all be siblings (and all siblings must be tabs?) and have the class "tab"
  • Add the class "tabcontainer" to an ancestor of a tab element (or the tab itself?)
  • Add the class "tabcontents" to a sibling of the "tabcontainer", and all children that are tab-linked elements should have the class "content"
  • The nth .tabcontainer..tab element clicked will make the nth .tabcontents.content element show
e.g. element hierarchy: (I think...?)
tabcontainer - - - - - tabcontents
     |                      |
     |           content content content
tab tab tab      

Correct me if I'm wrong --KokoroSenshi (talk | contribs) 02:49, 13 January 2017 (UTC)Reply[reply]

Examples

First Second Third

1st


First Second Third

1st
3rd (Displayed if JS is disabled)


TWWHD Wind Waker Artwork.png The Legend of Zelda Songs OoA Harp of Ages Artwork.png

1st
2nd
3rd
4th
5th
First
Second
Third
Fourth
Fifth