This script/stylesheet is for PERSONAL use only!
You are free to install this script/stylesheet for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:ImportJS, MediaWiki:Common.js, MediaWiki:Common.css, MediaWiki:Fandomdesktop.js, MediaWiki:Fandomdesktop.css, or MediaWiki:FandomMobile.css), as it would violate Fandom's Terms of Use.
(See the customization policy)
NoImageLightbox betiği, Fandom'un açık kutu yükleyicisini devre dışı bırakır, böylece bir resme tıklamak sizi onun Dosya: sayfasına götürür.
Videolar aynı açık kutusu yükleyicisini kullanır, ancak bu betik için varsayılan beklenen davranış, videoların etkilenmemesi ve içerik sayfalarında normal şekilde oynatılmaya devam etmesidir.
Bir videonun Dosya: sayfasına gitmek için videoya sağ tıklayın ve bunun yerine Bağlantıyı yeni sekmede aç seçeneğini seçin.
Installation
Configuration
20 Nisan 2013 itibariyle, bu betik, videoların yanı sıra resimler için açık kutusunu tamamen devre dışı bırakma seçeneği içerir. Bu seçeneği etkinleştirmek için kurulum sırasında window.NoImageLightbox.novideo değerini true olarak ayarlayın, şöyle:
window.NoImageLightbox = { novideo: true };
importArticles({
type: 'script',
articles: [
'u:dev:NoImageLightbox/code.js'
]
});
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'
]
});
Değişiklik günlüğü
- 20 August 2014
- User:Cqm: Added fix for images that link to external and internal pages following a change that caused this script to interfere with them.
- 22 October 2013
- Mathmagician: Added hotfix for images in the right rail, which Fandom recently changed to be lazy loaded.
- 27 April 2013
- Mathmagician: Reimplemented part of the script to fix a couple bugs (see Talk:NoImageLightbox#Tabs) where right-click -> "Open link in new tab" (and CTRL + click in Chrome) weren't functioning properly. Thanks to Pecoes for giving me the idea.
- 20 April 2013
- Mathmagician: Pushed script re-write to fix script breaking as a result of Fandom changes. Also added new (optional) configuration option to completely disable the lightbox (affects both videos and images).
- 8 November 2012
- Mathmagician: Fixed bug where linking for images such as [[File:Image.png|link=SomePage]] wasn't working
- 6 August 2012
- Mathmagician: Created.