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 _______________________________________________ Wikitext-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitext-l
