Last modified: 2011-03-13 18:06:17 UTC
This change allows to use the ! exclamation mark to produce Roman Numeral style Ordered Lists. Placing a ! in the first character position of any line, with a space immediately after it, will produce i, ii, iii, iv and so forth instead of 1, 2, 3, 4, and so forth. includes/Parser.php Line 2002 Added: else if ('!' == $char ) { $result .= '<ol class=roman><li>'; } Line 2015 From: if ( '*' == $char || '#' == $char ) { return '</li><li>'; } To: if ( '*' == $char || '#' == $char || '!' == $char) { return '</li><li>'; } Line 2032 From: else if ( '#' == $char ) { $text = '</li></ol>'; } To: else if ( '#' == $char || '!' == $char) { $text = '</li></ol>'; } Line 2076 From: $prefixLength = strspn( $oLine, '*#:;' ); To: $prefixLength = strspn( $oLine, '*#:;!' ); In the CSS sheet being used, add the following line: ol.roman { list-style-type: upper-roman; }
It would make more sense to have a generalized format for this, if anything (what about lower-roman, uppercase and lowercase letters, non-English conventions, ...?). See bug 6539. Since that was viewed as an unacceptable increase in wikitext complexity, probably this is too.
Wiki formatting is meant to be simple for simple cases. If the many many many additional possibilites of formatting are required, you can use the limited HTML subset for this (eg, with an <ol>)