Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikimedia Commons
Search

MediaWiki:Gadget-CategoryAboveBelowImage.js

From Wikimedia Commons, the free media repository
Note: After saving, you have tobypass your browser's cache to see the changes.Internet Explorer: pressCtrl-F5,Mozilla: hold downShift while clickingReload (or pressCtrl-Shift-R),Opera/Konqueror: pressF5,Safari: hold downShift + Alt while clickingReload,Chrome: hold downShift while clickingReload.
Thisuser script seems to have a documentation page atMediaWiki:Gadget-CategoryAboveBelowImage.
/*** @description: Move catlinks to top and leave clones at bottom.* @author: [[User:Ianezz]] 2009 ([[Commons:Village_pump/Archive/2009Sep#CSS_placement_of_categories]]), based on [[:wikinews:Help:User_style#Moving_categories_to_top]]* @author: [[User:Perhelion]] 2016/2017**//*global mw*//*jshint curly:false*/(function(){'use strict';if(mw.config.get('wgNamespaceNumber')!==-1){varc=document.getElementById('catlinks'),b=document.getElementById('bodyContent')||document.getElementById('mw-content-text'),//|| c.parentNodef=document.getElementById('file'),cc=c.cloneNode(1);// Clone with secondary priority// Insert clone at original positionif(cc.hasChildNodes()){cc.id="";cc.firstChild.id="";cc.lastChild.id="";b.insertBefore(cc,c);}// Move catlinksif(f)f.appendChild(c);elseb.insertBefore(c,b.childNodes[0]);}})();
Retrieved from "https://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-CategoryAboveBelowImage.js&oldid=279441420"

[8]ページ先頭

©2009-2025 Movatter.jp