MediaWiki


On Wed, Jan 05, 2005 at 01:07:17PM -0500, Neil Herber wrote:

Is there any clean way to have "hot words" like ⚠ MediaWiki link to external URLs? without any extra markup?


Try the following in config.php:

  
Markup('MediaWiki', '<wikilink',
  '/\\bMediaWiki\\b/e',
  "Keep(\"<a href='http://wikipedia.sourceforge.net'>MediaWiki</a>\",'L')");

This replaces any occurrence of ⚠ MediaWiki with a link to the site (as demonstrated on this page).

hola mundo

 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.22 00.21 MarkupToHTML end
 4: 00.23 00.21 MarkupToHTML begin
 5: 00.24 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 6: 00.24 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 7: 00.25 00.24 MarkupToHTML end
 8: 00.25 00.24 MarkupToHTML begin
 9: 00.25 00.24 MarkupToHTML end
10: 00.26 00.24 now
Peak memory: 3,666,848 bytes