testing list

Trying out new BBCode features? Use this forum!
Posts in this forum are subject to deletion without prior notice.

Moderator: Moderators

Post Reply
User avatar
rainwarrior
Posts: 7822
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

testing list

Post by rainwarrior » Mon Jan 28, 2013 6:31 pm

  • does not work
  • [li]in[/li]
    [li]preview[/li]
Does it work in post?

User avatar
tokumaru
Posts: 11742
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: testing list

Post by tokumaru » Mon Jan 28, 2013 7:31 pm

BBCode lists are kinda crappy... This works fine:
  • Random list:
  • First item;
  • Second item;
But when you're replying and quoting individual items in the list you get this:
[*] First item;
...unless you add a new list tag for each quote. Even though that is in fact the expected behavior, it's still annoying, so I just tend to avoid lists.

User avatar
rainwarrior
Posts: 7822
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: testing list

Post by rainwarrior » Mon Jan 28, 2013 7:37 pm

It wasn't a question. I figured it out. ;)

Really I was trying to figure out if it worked in a post differently than in preview, and it turned out it didn't. The = after List for ordered list really threw me, because it's not a place to put a parameter!

User avatar
tokumaru
Posts: 11742
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: testing list

Post by tokumaru » Mon Jan 28, 2013 8:01 pm

rainwarrior wrote:It wasn't a question.
...and my post wasn't an answer, I was just sharing my opinion on BBCode lists, and why I don't use them. :wink:
The = after List for ordered list really threw me, because it's not a place to put a parameter!
Yeah, that confused me a bit too.

tepples
Posts: 22014
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: testing list

Post by tepples » Tue Jan 29, 2013 5:50 am

  • The BBCode element for ordered and unordered lists is called "list"
  • The list element is transformed into an HTML ol or ul element based on its attribute being present or absent
  • Each item in the list is inside a "*" element
  • Like HTML (and unlike XHTML), BBCode has elements whose closing tag is optional in certain circumstances because the element can't directly contain itself
  • For example, the closing tag for the * element is optional
  • To see the BBCode source for this post, click the quote button

Post Reply