• Testing an ordered list with subpoints

    Home » Forums » Testing Forum » Testing an ordered list with subpoints

    Tags:

    Author
    Topic
    #2534786

    Ordered list

    • #1 in the list
    • #2 in the list with subpoints
      1. subpoint a
      2. subpoint b
    • #3 in the list with subpoints
      1. subpoint a
      2. subpoint b
    • #4 in the list
    • #5 in the list
    • #6 in the list
    Viewing 3 reply threads
    Author
    Replies
    • #2534799

      This is what your code did to the structure of the thread:
      It was fixed by moving the close code to the proper place.

      Screen-Shot-2023-02-15-at-4.14.35-PM

      The problem is the start points and end points in the code are misplaced:
      If you are using code, you need to be sure the open and close are in the right place.

      Screen-Shot-2023-02-15-at-4.13.30-PM

      • #2534864

        I thought the critical problem was that I started out with open-square-bracket ol closing-square-bracket and they should have been angle brackets instead.

        When I changed these two square brackets to angle brackets, I got the attached. But, I was expecting at an “a.” and a “b.”in the red squares, instead of “1.” and “2.”

        I did not have a closing “li” where your 1st and 2nd horizontal arrows are. That was because I was putting an ordered list inside an unordered and so was doing this:
        1. begin an unordered list
        2. start an ordered list
        3. put two items in the unordered list (starting and ending each one correctly)
        4. end the ordered list
        5. end the unordered list

        So, using square brackets instead of angle brackets threw everything out of whack.

        So, how do you get:
        1. xxxx

        2. xxxxx
        a. xxxx
        b. xxx

        3. xxxx
        a. xxxx
        b. xxxx

        4. xxxx

        5. xxxx

        Not that I am ever going to risk it again, but I am curious as to how it is done.

    • #2535009

      So, how do you get:

      Manually. Some lists aren’t ordered lists; they are typed lists. Make sure you are in text mode.

      1. Fe Fi Fo Fum
      a. Yadda. Yadda. Yadda.
      b. Oi. Oi. Oi.

      2. By the pricking of my thumbs
      a. Blah. Blah, Blah.
      b. Yee Haw.

      Go with the simple solution.

      * Jack in the Beanstalk and Macbeth respectively.

      Carpe Diem {with backup and coffee}
      offline▸ Win10Pro 2004.19041.572 x64 i3-3220 RAM8GB HDD Firefox83.0b3 WindowsDefender
      offline▸ Acer TravelMate P215-52 RAM8GB Win11Pro 22H2.22621.1265 x64 i5-10210U SSD Firefox106.0 MicrosoftDefender
      online▸ Win11Pro 22H2.22621.1778 x64 i5-9400 RAM16GB HDD Firefox114.0b8 MicrosoftDefender
    • #2535023

      I did not have a closing “li” where your 1st and 2nd horizontal arrows are. That was because I was putting an ordered list inside an unordered

      The problem is the closing li does not close the list, it closes an item in a list and every item in a list must include the start li & close /li or the formatting of whole list is messed up… which is what happened to you!

      The correct coding for an ordered list in an unordered list is:

        ul - start unordered list
           li 1st unordered item /li
           li 2nd unordered item /li
           li 3rd unordered item /li
           ol - start ordered list
              li 1st ordered item /li
              li 2nd ordered item /li
              li 3rd ordered item /li
           /ol - end ordered list
           li 4th unordered item /li
           li 5th unordered item /li
        /ul - end unordered list

      Which would appear like this:

      • 1st unordered item
      • 2nd unordered item
      • 3rd unordered item
        1. 1st ordered item
        2. 2nd ordered item
        3. 3rd ordered item
      • 4th unordered item
      • 5th unordered item

      Also, you need to use square brackets [] around the ul, ol, li, /ul, /ol and /li when posting to the forum because it uses bbcode. The greater than and less than symbols <> are used to create lists in HTML and shouldn’t be used here.

      BTW, because the bbcode in use here on AskWoody doesn’t include provisions for changing the default characters used for lists the default character for “unordered” lists is always a square and “ordered” lists always use numbers.

      In HTML it’s possible to change those so unordered lists use either a bullet, a circle, a square or nothing and ordered lists use either numbers, letters (upper or lower case) or Roman numerals (upper or lower case)

      3 users thanked author for this post.
      • #2535158

        To Alejr:
        How did you get that grey box around the example?

        • #2535283

          How did you get that grey box around the example?

          I “selected” that section with my mouse and changed it from Paragraph to Preformatted.

          Preformatted

          That changes the font to monospaced (Courier New for my browser)
          Prevents long lines of text from wrapping.
          And results in scroll bars if needed to see all the text.

          Just like how quotes get a “brownish” background to distinguish them from regular text, Preformatted sections get a “grayish” background.

      • #2535159

        Also, you need to use square brackets [] around the ul, ol, li, /ul, /ol and /li when posting to the forum because it uses bbcode. The greater than and less than symbols <> are used to create lists in HTML and shouldn’t be used here.

        This confuses me … when I push the ol button in the message-box header, it is surrounded by angle brackets in the text message box and when I push it again, it is /ol surrounded by angle brackets. Same goes when you push the li button in the message-box header.

    • #2535289

      Same goes when you push the li button in the message-box header.

      What li button are you referring to?

      As for seeing angle brackets in the Text view box, I’ve always used the Visual view box and never realized that the HTML version of list commands appears when you do that.

      Of course, the “built-in” list commands contained in the header at the top of the Visual view box don’t allow mixing of unordered/ordered lists so, if you want that type of list, you need to resort to manually creating it using the bbcode for lists in the Visual view (square brackets around the commands) or the HTML code for lists in the Text view (angle brackets around the commands.)

      Regardless, as you found out, if you don’t get the coding “exactly right” (and lists aren’t easy to create manually), it will mess up the display of the whole thread!

    Viewing 3 reply threads
    Reply To: Testing an ordered list with subpoints

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: