Year of the Dragon: Through May 28th, claim free Expansion Pack (excluding Vecna Unleashed) or a Greater Elixir of Discovery! Speak to Xatheral in the Hall of Heroes.
Known Issue: Xatheral has been temporarily disabled while we investigate a bug with Year of the Dragon gift delivery.DDO Forums edit
Game mechanics • Newbie guide • In development • DDO Store • Social Media
Challenges • Classes • Collectables • Crafting • Enhancements • Epic Destinies • Favor • Feats
Glossary • Items • Maps • Monsters • Places • Quests • Races • Reincarnation • Skills • Spells
Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!
MediaWiki:Gadget-codeBacklinks.js
Note: After saving, you may have to bypass your browser's cache to see the changes, you can click here or try one of the methods below..
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl+F5 or Ctrl+r (⌘ Command+r on a Mac)
- Google Chrome: Press Ctrl+⇧ Shift+R (⌘ Command+⇧ Shift+R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl+F5
- Konqueror: Click Reload or press F5
- Opera: Clear the cache in Tools ‣ Preferences
// <nowiki>
( function ( mw, $ ) {
$( 'div.mw-highlight > pre' ).find( 'span.c' ).each( function() {
var codeComment = $( this ).html().substr( $( this ).html().indexOf( '[[' ) );
var wikiLinkPipe = '';
var extraLinks = '';
while ( codeComment.indexOf( '[[' ) !== -1 && codeComment.indexOf( ']]' ) !== -1 ) {
if ( codeComment.indexOf( '|' ) !== -1 && codeComment.indexOf( '|' ) > codeComment.indexOf( '[[' ) && codeComment.indexOf( '|' ) < codeComment.indexOf( ']]' ) ) {
var wikiLink = codeComment.slice( codeComment.indexOf( '[[' ) + 2, codeComment.indexOf( '|' ) );
wikiLinkPipe = codeComment.slice( codeComment.indexOf( '|' ), codeComment.indexOf( ']]' ) );
} else {
var wikiLink = codeComment.slice( codeComment.indexOf( '[[' ) + 2, codeComment.indexOf( ']]' ) );
}
var replaceWikiLink = codeComment.slice( codeComment.indexOf( '[[' ), codeComment.indexOf( ']]' ) + 2 );
codeComment = codeComment.substr( codeComment.indexOf( ']]' ) + 2 );
if ( wikiLink.search( 'Special:' ) === -1 ) {
extraLinks = ' <small style=\"font-style: normal;\">( <a href=\"' + mw.config.get( 'wgServer' ) + '/edit/' +
wikiLink + '\" title=\"Please use [show preview] before saving.\">edit</a>';
extraLinks += ' | <a href=\"' + mw.config.get( 'wgServer' ) +
mw.config.get( 'wgArticlePath' ).replace( '$1', 'Special:WhatLinksHere/' + wikiLink) +
'\" title=\"A list of all wiki pages that link here.\">wlh</a> )</small>';
}
$( this ).html( $( this ).html().replace( replaceWikiLink,
'<b>[[</b><a href=\"' + mw.config.get( 'wgServer' ) + mw.config.get( 'wgArticlePath' ).replace('$1', wikiLink) +
'\" title=\"' + wikiLink + '\">' + wikiLink + '</a><b>' + wikiLinkPipe + ']]</b>' + extraLinks )
);
wikiLinkPipe = '';
extraLinks = '';
}
// var urlLinks = $( this ).html().match( /irc|telnet|gopher|[fh]t?tps?:\/\/[\S]*/i );
// for ( URL in urlLinks ) {
// $( this ).html($( this ).html().replace(urlLinks[URL], '<a href=\"' + urlLinks[URL] + '\" title=\"This is an external URL link. Follow at your own risk.\">' + urlLinks[URL] + '</a>' ) );
// }
} );
} )( mediaWiki, jQuery );
//</nowiki>[[Category:Gadgets]]