https://bugzilla.wikimedia.org/show_bug.cgi?id=33104
--- Comment #13 from MZMcBride <[email protected]> 2012-06-26 03:48:52 UTC --- (In reply to comment #12) >> As far as I'm aware, the current thinking on the pipe trick is that it should >> ideally not be doing transformations on the wikitext itself and that doing so >> (the current behavior) is a bug, not a feature. That is, when a user enters >> "[[Foo (bar)|]]", the current MediaWiki parser will change this to "[[Foo >> (bar)|Foo]]" on page save and render the result as "Foo". > > Thinking by whom? It's a widely-used long-term feature. If people believe they > can switch it off as a 'bug fix', I predict that users will be unhappy. > Burning > our social capital like this seems... ill-prioritised. I think there are some mixed signals about design goals here. I was told (repeatedly) that the goal of VisualEditor was to eliminate human interaction with wikitext. If that's the goal (and you're rewriting the parser), I'm not sure why (given the extra, non-negligible cost of supporting it) you'd continue to support the pipe trick. It's an esoteric, poorly implemented hack, as far as I'm concerned. The referenced thinking is by me and others; this isn't a new issue. And it really does seem completely outside the scope of this bug. I expand on both these points below. >> In an ideal world >> (according to some other bug I don't care to look up), the wikitext would >> stay >> "[[Foo (bar)|]]" and would render as "Foo" (as though it had gone through the >> magical transformation). > > Didn't come up in a search for me, unless I mis-read the results. Would value > the actual bug ref. if you can find it! :-) It's hiding under bug 5004 ("Keep the pipe trick ([[Piped link|]]) syntax in wikitext instead of converting it at pre-save transform"). I thought there was a comment from Aryeh somewhere about this as well, but I don't see it on that bug. There are a number of related bugs: bug 16714 and bug 2700. And some marginally related bugs (e.g., bug 845). These were all found by searching Bugzilla for "pipe trick", creatively. >> That said, the pipe trick is annoying (and somewhat expensive) to support and >> given that the broader goal is to move away from wikitext altogether, I'm not >> sure the pipe trick is something worth preserving going forward. But this is >> all outside the scope of this bug. > > I'd argue that it's not outwith the scope of a bug in the Parsoid talking > about > this behaviour, which is what this is. :-) This bug is (or was...) about [[a]] being turned into [[a|a]] when using the VisualEditor interface (cf. comment 0). Link trails and pipe tricks (and any other parser craziness) really are separate bugs. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
