Year of the Dragon: Through April 23rd, claim the adventure pack Slice of Life for free! Speak to Xatheral in the Hall of Heroes.

Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


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-nsShortener.js

From DDO wiki
Jump to navigation Jump to search

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 nsReplace( replaceThis, withThis ) {
  $( 'a:contains("' + replaceThis + ':")' ).each( function() {
    $( this ).html( $( this ).html().replace( replaceThis + ':', withThis + ':' ) );
  } );
  if ( replaceThis !== 'Special' && replaceThis !== 'Talk' ) {
    $( 'a:contains("' + replaceThis + ' talk:")' ).each( function() {
      $( this ).html( $( this ).html().replace( replaceThis + ' talk:', withThis + 't:' ) );
    } );
  }
}

/* NS-2  *//*                      *//* Media: */// Only exists in fantasies
/* NS-1  *//*                    *//* Special: */ nsReplace( 'Special', 'S' );
/* NS0   *//* NS1   *//*     *//* (main) Talk: */ nsReplace( 'Talk', 't' );
/* NS2   *//* NS3   *//*     *//* User( talk): */ nsReplace( 'User', 'U' );
/* NS4   *//* NS5   *//* *//* DDO_wiki( talk): */ nsReplace( 'DDO wiki', 'DDO' );
/* NS6   *//* NS7   *//*     *//* File( talk): */ nsReplace( 'File', 'F' );
/* NS8   *//* NS9   *//**//* MediaWiki( talk): */ nsReplace( 'MediaWiki', 'MW' );
/* NS10  *//* NS11  *//* *//* Template( talk): */ nsReplace( 'Template', 'T' );
/* NS12  *//* NS13  *//*     *//* Help( talk): */ nsReplace( 'Help', 'H' );
/* NS14  *//* NS15  *//* *//* Category( talk): */ nsReplace( 'Category', 'C' );
/* NS200 *//* NS201 *//*    *//* Forum( talk): */ nsReplace( 'Forum', 'f' );
/* NS274 *//* NS275 *//*   *//* Widget( talk): */ nsReplace( 'Widget', 'W' );
/* NS500 *//* NS501 *//*            *//* Item: */ /* Do not add for Item: */
/*                           *//* Item( talk): */ nsReplace( 'Item', 'I' );
//</nowiki> [[Category:Gadgets]]