Difference between revisions of "MediaWiki:HealdImages.js"
[http://www.nga.gov/content/ngaweb/research/casva/research-projects.html A Project of the National Gallery of Art, Center for Advanced Study in the Visual Arts ]
(Install package: HEALD Images) |
(Update package: HEALD Images) |
||
Line 7: | Line 7: | ||
$imageInfo.appendTo( $parserOutput ); | $imageInfo.appendTo( $parserOutput ); | ||
} | } | ||
+ | moveFreeTextNs6(); | ||
} ); | } ); | ||
+ | |||
+ | |||
+ | function moveFreeTextNs6(){ | ||
+ | // Move freetext in File namespace HEAL-146 | ||
+ | var target = $('.ns-6 #file .mw-filepage-resolutioninfo'); | ||
+ | if(target.length){ | ||
+ | $('#free-text-section').detach().insertBefore(target); | ||
+ | } | ||
+ | } |
Latest revision as of 19:31, August 11, 2021
$( function () { // Finds an image info section and moves it to the bottom var $imageInfo = $( '#mw-content-text .about-image-section' ), $parserOutput = $( '#mw-content-text > .mw-parser-output' ); if ( $imageInfo.length ) { $imageInfo.appendTo( $parserOutput ); } moveFreeTextNs6(); } ); function moveFreeTextNs6(){ // Move freetext in File namespace HEAL-146 var target = $('.ns-6 #file .mw-filepage-resolutioninfo'); if(target.length){ $('#free-text-section').detach().insertBefore(target); } }