Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2630

[3.3.x] Styles Support & Discussion • Re: Flexibility with 'list tag'

$
0
0
Hello,

It's not possible to use start attribute on default ol BBCode.

You may wish to create a custom BBCode to enable this. Although it's not very easy to use, here's an example.

BBCode usage:

Code:

[ol2={CHOICE=decimal,lower-alpha,upper-alpha,lower-roman,upper-roman;preFilter=strtolower;defaultValue=decimal} start={NUMBER;defaultValue=1}][/ol2]
HTML replacement:

Code:

<ol style="list-style-type:{@ol2}" start="{@start}"><xsl:apply-templates/></ol>
Help line:

Code:

[ol2=decimal or lower-alpha or upper-alpha or lower-roman or upper-roman} start=1 or 2 or 3 or...][/ol2]
Example of use:

Code:

[ol2=lower-alpha start=3][*]lorem ipsum[*]lorem ipsum[*]lorem ipsum[*]lorem ipsum[*]lorem ipsum[/ol2]
display.png

If a value is omitted, the default value will be returned.
  • [ol2 start=3][/ol2] will return <ol style="list-style-type:decimal" start="3"></ol>
  • [ol2=upper-roman][/ol2] will return <ol style="list-style-type:upper-roman" start="1"></ol>
  • [ol2][/ol2] will return <ol style="list-style-type:decimal" start="1"></ol>
  • Etc.

Statistics: Posted by cabot — Mon Feb 12, 2024 1:23 pm



Viewing all articles
Browse latest Browse all 2630

Trending Articles