#Mediawiki

Similar to this on Piefed/Lemmy

Title of bullet list
  • item
  • another item
  • yet another item
    • klu9@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      Thanks!

      Is this the relevant code?

      <div class="toccolours mw-collapsible mw-collapsed">
      This text is not collapsible; but the next is collapsible and hidden by default:
      <div class="mw-collapsible-content">{{Lorem}}</div>
      </div>
      

      And presumably the bulleted list would also have to be done HTML? (Racks brain trying to remember things from the 90s :D then just Qwants it)

       <ul>
        <li>Coffee</li>
        <li>Tea</li>
        <li>Milk</li>
      </ul> 
      
      • lens0021@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 months ago

        I’ve come up with a better idea. Try this

        <div class="mw-collapsible mw-collapsed">
        Title of bullet list
        <div class="mw-collapsible-content">
        * item
        * another item
        * yet another item
        </div></div>
        
        • klu9@piefed.socialOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 months ago

          That works! :)

          Only thing is, on a laptop screen, the Expand button is all the way across the screen from the list title. But not a deal breaker.