[Wikitext-l] Wikitext Madness of the Day: Internal Links

Daniel Kinzler daniel at brightbyte.de
Thu Aug 12 07:40:15 UTC 2010


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.

Yay arcane special cases.

-- daniel




More information about the Wikitext-l mailing list