[[PageOutline(2-3)]] = Trac Wiki Syntax enhancements = Note: all the syntax enhancements that went into [milestone:0.12] can be seen in [[.@25|version 25]] of this page. == Topics == === Tables === - add `|+` MediaWiki style caption or `#!caption` - support WikiCreole single pipe style (#6630) - also support MediaWiki style?? (#1424) - annotation for specifying vertical alignment (`||^`/`||.`) (ticket:9309#comment:9) === Definition lists === - nesting definition lists (#7721) - terms should automatically get an anchor, much like headings (but ''nice'' anchors, see [#Headings] below) === Lists === There are several enhancements that come to mind: - ''1)'' style numbered items and ''o'' style numbered items (see also #5498) ||= Wiki Markup =||= Display =|| {{{#!td {{{ o this is a list o that's another list 1) Point 1 2) Point 2 }}} }}} {{{#!td o this is a list o that's another list 1) Point 1 2) Point 2 }}} - support empty lines between items (#1936, #6482 and more specifically #8140) ||= Wiki Markup =||= Display =|| {{{#!td {{{ 1. start a list 1. continue in the same list }}} }}} {{{#!td 1. start a list 1. continue in the same list }}} - when continuing an item on the next line, one should stay within the item if we don't dedent past the item starter symbol (nearly works, but see #4848) - support for WikiCreole-style lists (gains compatibility with e.g. MediaWiki) ||= Wiki Markup =||= Display =|| {{{#!td {{{ * start a list ** subitem *** sub-subitem # ordered list ## numbered subitem }}} }}} {{{#!td * start a list ** subitem *** sub-subitem # ordered list ## numbered subitem }}} Notes: - issue #6482 is at work here, as the tables are not part of their corresponding item - slight difficulty for the VerticalHorizontalParsing, need to consider empty lines as potential "no-ops" in some situations. === Headings === The automatic ids generated for headings are not readable. We should replace spaces by hyphens, at the very least. Compatibility with the old compact style could be achieved by using the `name` attribute, whereas `id` would be used for the new, more readable style. This is especially important for languages when titles use sentence-style capitalization, not title-style capitalization (see e.g. [Wikipedia:Wikipedia:Manual_of_Style_(capital_letters)#Section_headings Section_headings] in Wikipedia). See #8645. === Enhanced processors === Allowing `{{{ div ...` would be easy, is it worth it? ''probably not, let's keep #! '' For div and tables, add some more "standard" classes (we already have "important" for divs and "listing" for tables): - see MoinMoin:HelpOnAdmonitions - another interesting possibility: [http://meta.wikimedia.org/wiki/Help:Collapsing#Collapsible_DIV collapsible and collapsed] (#9214) === TracLinks === ==== CamelCase ==== The MoinMoin style internal free link has been introduced to cope with wiki words with appended content, like when writing `["WikiProcessor"]s`. ~~First, the implementation is restricted: it doesn't allow for a lhref equivalent, `["WikiProcessor" the wiki processors]` ~~ (#7695). What if we would instead re-use the lhref regexp, in the quoted case? It would be equivalent to making the ''wiki:'' prefix the default namespace. The advantage would be that ''any'' word could be wikified that way. //This is what `[[...]]` links do.// - `["checking"]` -> ["checking"]: works already - `["checking" the check]` -> ["checking" the check]: works now (r9535) ==== Alternative forms of linking ==== #linking - shorthand for `[[Image()]]`: `{{}}`, see MoinMoin:HelpOnLinking - `[=#anchor