[Wikitext-l] Wikitext Madness of the Day: Internal Links
Andreas Jonsson andreas.jonsson at kreablo.se
Thu Aug 12 07:47:51 UTC 2010
2010-08-12 09:40, Daniel Kinzler skrev:
Tomaž Šolc schrieb:
Hi
(The actual regexp is using (.+?), but using an
empty string as link
text will still produce a link for some strange reason.)
Empty string is actually a special case: such links will use the name of
the target page minus the namespace prefix for the anchor.
but that's done on save, i guess before the actual parsing.
Pipe trick syntax: [[User:Foo|]] will turn into [[User:Foo|Foo]] upon
save.
OK, that explains it.
> Yay arcane special cases.
Yay, utomatically fixing the user input. That'll make things a lot
easier. :-)
/Andreas
But see also bug 5004 ("Keep the pipe trick ([[Piped link|]]) syntax in
wikitext instead of converting it at pre-save transform"):
https://bugzilla.wikimedia.org/show_bug.cgi?id=5004
Helder