FANDOM


  • Couldn't figure out sorry, appreciate some pointers

    https://towerofgod-anime.fandom.com/wiki/Template:Navbar 

    https://towerofgod-anime.fandom.com/wiki/Template:Navibox

    wiki css

    https://towerofgod-anime.fandom.com/wiki/MediaWiki:Wikia.css 

    https://towerofgod-anime.fandom.com/wiki/MediaWiki:Themes.css

    Not sure what I should edit to make it expanded by default, or if it's even possible

    Or is there a way to specify when the navibox should be open or closed? Like say I want it expanded on the description of category page, but collapsed on another page. 

    Thank you in advance

      Loading editor
    • The navbox uses two collapse classes: mw-collapsible mw-collapsed. mw-collapsed is the class that makes the element to be collapsed by default, so you'd remove that one and only use mw-collapsible so that it can be expanded by default; like so:
      {| class="navibox theme-affiliation-regulars mw-collapsible"
      And you can add a parameter to specify whether it should be expanded or collapsed. You can implement it like this:
      {| class="navibox theme-affiliation-regulars mw-collapsible {{#ifeq: {{{1}}} | collapsed | mw-collapsed }}"
      And then on the page where you want it to be collapsed, you'd use {{Navibox|collapsed}}. Otherwise, you'd simply use {{Navibox}} just as you do now if you want it to be expanded.
        Loading editor
    • CrazyForMyself wrote:

      The navbox uses two collapse classes: mw-collapsible mw-collapsed. mw-collapsed is the class that makes the element to be collapsed by default, so you'd remove that one and only use mw-collapsible so that it can be expanded by default; like so:
      {| class="navibox theme-affiliation-regulars mw-collapsible"
      And you can add a parameter to specify whether it should be expanded or collapsed. You can implement it like this:
      {| class="navibox theme-affiliation-regulars mw-collapsible {{#ifeq: {{{1}}} | collapsed | mw-collapsed }}"
      And then on the page where you want it to be collapsed, you'd use {{Navibox|collapsed}}. Otherwise, you'd simply use {{Navibox}} just as you do now if you want it to be expanded.

      Oh wow I see! Amazing, it works perfectly. Thank you!

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.