コンテンツにスキップ

利用者:JuthaDDA/DisamAssist(曖昧さ回避ページ以外用).js


: 


 Windows  Linux 

Ctrl  F5 

Mac  Safari

 Shift  

Mac  Chrome  Firefox

 Cmd   Shift  R

Wikipedia:

//<syntaxhighlight lang="javascript">
/** 
 * このスクリプトは[[利用者:ネイ/DisamAssist|DisamAssist]]を曖昧さ回避ページ以外
 * でも使うために改変したものです。原則として、JuthaDDA以外が使うことは想定して
 * いません。
 */

window.DisamAssist = jQuery.extend( true, {
 cfg: {
  /*
   * Categories where disambiguation pages are added (usually by a template like [[Template:Disambiguation]]
   */
  disamCategories: ['すべての曖昧さ回避'],
  
  /*
   * "Canonical names" of the templates that may appear after ambiguous links
   * and which should be removed when fixing those links
   */
  disamLinkTemplates: [
   'Disambiguation needed',
   'Dn',
   '要曖昧',
   '要曖昧さ回避'
  ],
  
  /*
   * "Canonical names" of the templates that designate intentional links to
   * disambiguation pages
   */
  disamLinkIgnoreTemplates: [
  ],
  
  /*
   * Format string for "Foo (disambiguation)"-style pages
   */
   disamFormat: '$1 (曖昧さ回避)',
  
  /*
   * Regular expression matching the titles of disambiguation pages (when they are different from
   * the titles of the primary topics)
   */
  disamRegExp: '^(.*) \\(曖昧さ回避\\)$',
  
  /*
   * Text that will be inserted after the link if the user requests help. If the value is null,
   * the option to request help won't be offered
   */
  disamNeededText: '{{要曖昧さ回避|date={{subst:CURRENTYEAR}}年{{subst:CURRENTMONTHNAME}}}}',
  
  /*
   * Content of the "Foo (disambiguation)" pages that will be created automatically when using
   * DisamAssist from a "Foo" page
   */
  redirectToDisam: '#REDIRECT [[$1]]',
  
  /*
   * Whether intentional links to disambiguation pages can be explicitly marked by adding " (disambiguation)"
   */
  intentionalLinkOption: false,
  
  /*
   * Namespaces that will be searched for incoming links to the disambiguation page (pages in other
   * namespaces will be ignored)
   */
  targetNamespaces: [0, 6, 10, 14, 100, 108],
  
  /*
   * Number of backlinks that will be downloaded at once
   * When using blredirect, the maximum limit is supposedly halved
   * (see https://www.mediawiki.org/wiki/API:Backlinks)
   */
  backlinkLimit: 250,
  
  /*
   * Number of titles we can query for at once
   */
  queryTitleLimit: 50,
 
  /*
   * Number of characters before and after the incoming link that will be displayed
   */
  radius: 300,
 
  /*
   * Height of the context box, in lines
   */
  numContextLines: 4,
 
  /*
   * Number of pages that will be stored before saving, so that changes to them can be
   * undone if need be
   */
  historySize: 2,
  
  /*
   * Minimum time in seconds since the last change was saved before a new edit can be made. A
   * negative value or 0 disables the cooldown. Users with the "bot" right won't be affected by
   * the cooldown
   */
  editCooldown: 10,
  
  /*
   * Specify how the watchlist is affected by DisamAssist edits. Possible values: "watch", "unwatch",
   * "preferences", "nochange"
   */
  watch: 'nochange'
 },

 txt: {
  start: 'リンク元修正',
  startMain: '代表的なトピックへのリンクを解消',
  startSame: '曖昧さ回避ページへのリンクを解消',
  close: '閉じる',
  undo: '元に戻す',
  omit: '飛ばす',
  refresh: '更新',
  titleAsText: 'リンク先を入力',
  disamNeeded: '{{要曖昧さ回避}}を追加',
  intentionalLink: '曖昧さ回避への意図的なリンク',
  titleAsTextPrompt: '新しいリンク先を入力してください。',
  removeLink: 'リンクを除去',
  optionMarker: ' [このページにリンク]',
  targetOptionMarker: ' [現在のリンク先]',
  redirectOptionMarker: ' [現在のリンク先(リダイレクト)]',
  pageTitleLine: '<a href="$1">$2</a>:',
  noMoreLinks: 'リンク元修正候補はもうありません。',
  pendingEditCounter: '保存中:$1、履歴にあるページ数:$2',
  pendingEditBox: 'DisamAssistは変更を保存しています($1).',
  pendingEditBoxTimeEstimation: '$1; 残り時間: $2',
  pendingEditBoxLimited: '全ての編集が保存されるまで、タブを閉じないでください。別のタブでウィキペディアの編集を'
   + '継続しても問題ありませんが、複数のタブでDisamAssistを同時に使用することは一度に大量の編集が行われる'
   + '可能性があるため非推奨です。',
  error: 'エラー: $1',
  fetchRedirectsError: 'リダイレクトを取得できませんでした: "$1".',
  getBacklinksError: 'リンク元を取得できませんでした: "$1".',
  fetchRightsError: '利用者権限を取得できませんでした: "$1",',
  loadPageError: '$1をロードできませんでした: "$2".',
  savePageError: '$1への変更を保存できませんでした: "$2".',
  dismissError: '閉じる',
  pending: 'DisamAssistでまだ保存されていない編集があります。保存したい場合、閉じるをクリックしてください。',
  editInProgress: 'DisamAssistは編集を保存しています。今タブを閉じると、編集は保存されません。',
  ellipsis: '...',
  notifyCharacter: '✔',
  summary: '[[$1]]へのリンクを解消、$2([[利用者:JuthaDDA/DisamAssist.js|DisamAssistフォーク版]]使用)',
  summaryChanged: 'リンク先を[[$1]]に変更',
  summaryOmitted: 'リンクを飛ばす',
  summaryRemoved: 'リンクを除去',
  summaryIntentional: '曖昧さ回避への意図的なリンク',
  summaryHelpNeeded: 'Help Needed',
  summarySeparator: '; ',
  redirectSummary: '[[$1]]へのリダイレクトを作成([[利用者:JuthaDDA/DisamAssist.js|DisamAssistフォーク版]]使用)'
 }
}, window.DisamAssist || {} );

mw.loader.load( '//es.wikipedia.org/w/index.php?title=Usuario:Qwertyytrewqqwerty/DisamAssist-core.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//es.wikipedia.org/w/index.php?title=Usuario:Qwertyytrewqqwerty/DisamAssist.css&action=raw&ctype=text/css', 'text/css' );

//</syntaxhighlight>