https://bugzilla.wikimedia.org/show_bug.cgi?id=37835

--- Comment #3 from Krinkle <[email protected]> 2012-10-01 23:02:46 UTC ---
(In reply to comment #2)
> (In reply to comment #0)
> >  "Example <a href='...'> </a> link", which is illegal wikitext.
> 
> ... because [[Foo| ]] will trigger the pipe-trick and turn it into 
> [[Foo|Foo]].

Actually, it doesn't (current master, not using Tidy).

<pre>
* [[Foo]]
* [[Foo|]]
* [[Foo| ]]
* [[Foo|<nowiki></nowiki>]]
* [[Foo|<nowiki> </nowiki>]]
</pre>

Expands to:

* [[Foo]]
* [[Foo|Foo]]
* [[Foo| ]]
* [[Foo|<nowiki></nowiki>]]
* [[Foo|<nowiki> </nowiki>]]

Renders as:

<ul><li> <a href="/wm-git/mediawiki/alpha/index.php/Foo" title="Foo">Foo</a>
</li><li> <a href="/wm-git/mediawiki/alpha/index.php/Foo" title="Foo">Foo</a>
</li><li> <a href="/wm-git/mediawiki/alpha/index.php/Foo" title="Foo"> </a>
</li><li> <a href="/wm-git/mediawiki/alpha/index.php/Foo" title="Foo"></a>
</li><li> <a href="/wm-git/mediawiki/alpha/index.php/Foo" title="Foo"> </a>
</li></ul>

Which means a loose space works, and with <nowiki> it even works when empty.
Good news :)

-- 
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

Reply via email to