AjaxUndo, sayfa geçmişlerinde ve farklarda normal geri alma bağlantısının yanına bir Ajax geri alma bağlantısı ekler. Bu, düzenlemeyi görüntülemek ve elle kaydetmek zorunda kalmadan seçilen revizyonu geri alır.
Installation[]
Configuration[]
- AjaxUndo aracılığıyla yapılan düzenlemeleri küçük olarak işaretlemek istiyorsanız, kişisel veya site genelindeki JavaScript sayfanızda
window.AjaxUndoMinor = true;kullanın. - AjaxUndo tarafından bırakılan varsayılan özeti değiştirmek istiyorsanız, kişisel veya site çapında JavaScript sayfanızda
window.AjaxUndoSummary = 'Varsayılan özetinizi buraya ekleyin.';kullanın. - Bir düzenleme özeti için AjaxUndo'nun her kullanımında size sorulmasını tercih ederseniz, kişisel veya site geneli JavaScript sayfanızda
window.AjaxUndoPrompt = true;kullanın.window.AjaxUndoSummaryiçindeki özet, ayarlandıysa, varsayılan olarak bilgi isteminde gösterilecektir.
Using configuration options with Fandom Developers Wiki scripts
The instructions on this page describe how to use configuration options with a script. Here on the Fandom Developers Wiki, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.
// 1. AjaxRC import statement
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:AjaxRC.js'
]
});
// 2. AjaxRC configuration option
window.ajaxRefresh = 30000;
// 1. AjaxRC configuration option
window.ajaxRefresh = 30000;
// 2. AjaxRC import statement
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:AjaxRC.js'
]
});