Pengguna:Hidayatsrf/DisamAssist.js
Catatan: Setelah menyimpan, Anda harus memintas tembolok (cache) peramban Anda untuk melihat perubahannya. Google Chrome, Firefox, Microsoft Edge dan Safari: Tahan tombol ⇧ Shift dan klik Muat ulang (Reload) di tombol bilah alat. Untuk detail dan instruksi tentang peramban lain, lihat halaman menghapus singgahan (Inggris).
// https://en.wiki-indonesia.club/wiki/User:Qwertyytrewqqwerty/DisamAssist.js
//<source lang="javascript">
window.DisamAssist = jQuery.extend( true, {
cfg: {
/*
* Categories where disambiguation pages are added (usually by a template like {{Disambiguation}}
*/
disamCategories: ['Semua halaman disambiguasi'],
/*
* "Canonical names" of the templates that may appear after ambiguous links
* and which should be removed when fixing those links
*/
disamLinkTemplates: [
'Disambiguasi diperlukan',
'Pranala ambigu',
'Amblink',
'Dab needed',
'Disamb-link',
'Disambig needed',
'Disambiguate',
'Dn',
'Needdab'
],
/*
* "Canonical names" of the templates that designate intentional links to
* disambiguation pages
*/
disamLinkIgnoreTemplates: [
'R from ambiguous page',
'R to disambiguation page',
'R from incomplete disambiguation'
],
/*
* Format string for "Foo (disambiguation)"-style pages
*/
disamFormat: '$1 (disambiguasi)',
/*
* Regular expression matching the titles of disambiguation pages (when they are different from
* the titles of the primary topics)
*/
disamRegExp: '^(.*) \\(disambiguasi\\)$',
/*
* 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: '{{dn|date={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}',
/*
* Content of the "Foo (disambiguation)" pages that will be created automatically when using
* DisamAssist from a "Foo" page
*/
redirectToDisam: '#REDIRECT [[$1]] {{R to disambiguation page}}',
/*
* Whether intentional links to disambiguation pages can be explicitly marked by adding " (disambiguation)"
*/
intentionalLinkOption: true,
/*
* 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 http://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: 5,
/*
* Specify how the watchlist is affected by DisamAssist edits. Possible values: "watch", "unwatch",
* "preferences", "nochange"
*/
watch: 'nochange'
},
txt: {
start: 'Disambiguasikan pranala',
startMain: 'Disambiguasikan pranala ke topik utama',
startSame: 'Disambiguasikan pranala ke DAB',
close: 'Tutup',
undo: 'Balikkan',
omit: 'Lewati',
refresh: 'Muat ulang',
titleAsText: 'Different target',
disamNeeded: 'Tandai {{dn}}',
intentionalLink: 'Intentional link to DAB',
titleAsTextPrompt: 'Specify the new target:',
removeLink: 'Hapus pranala',
optionMarker: ' [Link here]',
targetOptionMarker: ' [Current target]',
redirectOptionMarker: ' [Current target (redirected)]',
pageTitleLine: 'Dalam <a href="$1">$2</a>:',
noMoreLinks: 'No more links to disambiguate.',
pendingEditCounter: 'Menyimpan: $1; di riwayat: $2',
pendingEditBox: 'DisamAssist sedang menyimpan perubahan ($1).',
pendingEditBoxTimeEstimation: '$1; perkiraan waktu tersisa: $2',
pendingEditBoxLimited: 'Please don\'t close this tab until all pending changes have been saved. You may keep '
+ 'editing Wikipedia in a different tab, but be advised that using multiple instances of DisamAssist at '
+ 'the same time is discouraged, as a high number of edits over a short time period may be disruptive.',
error: 'Galat: $1',
fetchRedirectsError: 'Tak dapat memuat pengalihan: "$1".',
getBacklinksError: 'Tak dapat mengunduh pranala balik: "$1".',
fetchRightsError: 'Tak dapat memuat hak pengguna: "$1",',
loadPageError: 'Tak dapat memuat $1: "$2".',
savePageError: 'Tak dapat menyimpan perubahan ke $1: "$2".',
dismissError: 'Abaikan',
pending: 'Ada perubahan yang belum disimpan. Untuk menyimpannya, silakan klik Tutup',
editInProgress: 'DisamAssist sedang melakukan perubahan. Jika Anda menutup tab, perubahan tersebut mungkin akan terbatalkan.',
ellipsis: '...',
notifyCharacter: '✔',
summary: 'Disambiguasikan pranala ke [[$1]] ($2) memakai [[:en:User:Qwertyytrewqqwerty/DisamAssist|DisamAssist]].',
summaryChanged: 'link changed to [[$1]]',
summaryOmitted: 'pranala diloncati',
summaryRemoved: 'pranala dihapus',
summaryIntentional: 'intentional link to DAB',
summaryHelpNeeded: 'bantuan dibutuhkan',
summarySeparator: '; ',
redirectSummary: 'Membuat pengalihan ke [[$1]] memakai [[:en:User:Qwertyytrewqqwerty/DisamAssist|DisamAssist]].'
}
}, window.DisamAssist || {} );
mw.loader.load( '//es.wiki-indonesia.club/w/index.php?title=Usuario:Qwertyytrewqqwerty/DisamAssist-core.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//es.wiki-indonesia.club/w/index.php?title=Usuario:Qwertyytrewqqwerty/DisamAssist.css&action=raw&ctype=text/css', 'text/css' );
//</source>