利用者:ネイ/DisamAssist.js

これはこのページの過去の版です。ネイ (会話 | 投稿記録) による 2022年4月13日 (水) 03:18個人設定で未設定ならUTC)時点の版 (-syntaxhighlight、+wgUserGroups)であり、現在の版とは大きく異なる場合があります。

お知らせ: 保存した後、ブラウザのキャッシュをクリアしてページを再読み込みする必要があります。

多くの WindowsLinux のブラウザ

  • Ctrl を押しながら F5 を押す。

Mac における Safari

  • Shift を押しながら、更新ボタン をクリックする。

Mac における ChromeFirefox

  • Cmd Shift を押しながら R を押す。

詳細についてはWikipedia:キャッシュを消すをご覧ください。

if ( mw.config.get( 'wgUserGroups', [] ).indexOf( 'autoconfirmed' ) !== -1 ) {
	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=2022年April}}',
			
			/*
			 * 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([[User:ネイ/DisamAssist|DisamAssist]]使用)',
			summaryChanged: 'リンク先を[[$1]]に変更',
			summaryOmitted: 'リンクを飛ばす',
			summaryRemoved: 'リンクを除去',
			summaryIntentional: '曖昧さ回避への意図的なリンク',
			summaryHelpNeeded: 'Help Needed',
			summarySeparator: '; ',
			redirectSummary: '[[$1]]へのリダイレクトを作成([[User:ネイ/DisamAssist|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' );
}