Template talk:Imagestack

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Beispieleinbindungen auf Kategorieseiten[edit]

Die aufgeführten Beispieleinbindungen sind auf Kategorieseiten. Das ist aber doch sehr untypisch für Kategorieseiten, dass im Beschreibungsbereich, der meist recht knapp ist, riesige Bilder eingebunden sind. Bei langer Ladezeit (so war das eben bei mir mit Category:Pansinusitis_Case_001) hat man erstmal einen Meter zu scrollen, bis man zur normalen Kategorieansicht kommt. Kurzum: Ich meine, dass die Vorlage auf einer Galerieseite besser aufgehoben wäre. Viele Grüße --Saibo (Δ) 03:17, 10 June 2011 (UTC)[reply]

Also wo die Vorlage eingebunden wird ist eigentlich vom Prinzip her erstmal egal. Ich habe die Kategorien so eingerichtet, um nicht alle Bilder für den Stapel in der übergeordneten Kat drin zu haben (unübersichtlich), eine zusätzliche Seite wäre sicher denkbar. Grüße! --Hellerhoff (talk) 19:33, 13 June 2011 (UTC)[reply]
Ja, ich denke auch, dass es sinnvoll ist eine eigene Kategorie für die Bilder zu haben, wenn es viele sind (also nicht bloß vier, oder so). Viele Grüße --Saibo (Δ) 22:59, 14 June 2011 (UTC)[reply]

Anwendung bei Videos[edit]

Es wäre auch toll man die Vorlage auch für Videostandbilder benutzen könnte. Das ergäbe tolle Anwendungsmöglichkeiten. Auch zum Videostandbildersuchen für die Einbindung des Videos in Artikel. :) Denn: Weiterhin könnte Wrappervorlage basteln, die Parameter aufnimmt: Dateiname, Start, Ende, Zeitabstände. Das könnte jene dann an diese Vorlage hier weiterreichen.

Warning The template Moviestack requires additional javascript-code. It doesn't work if javascript is switched off.
Boom

Viele Grüße --Saibo (Δ) 03:37, 10 June 2011 (UTC)[reply]

Hört sich interessant an. Leider hab ich da zuwenig Einblick, an welcher Stelle thumbtime evaluiert wird. Vielleicht nochmal User:DieBuche fragen? Grüße! --Hellerhoff (talk) 19:36, 13 June 2011 (UTC)[reply]
Ich war mal so frei {{Moviestack}} zu erstellen. -- RE rillke questions? 22:56, 13 November 2011 (UTC)[reply]

Usefull template[edit]

I believe this is a very useful script considering alternatives (gallery, animated gif, apng, ogg movie) for displaying image series. The best advantage is variable speed which is adjustable by user. --Nevit Dilmen (talk) 19:23, 3 April 2012 (UTC)[reply]

How do I use this on my own wiki site?[edit]

Hi there, I am wondering how I can use this template on my own personal mediawiki. Thank you!! — Preceding unsigned comment added by 137.54.65.192 (talk • contribs) 18:12, 15 July 2013 (UTC)[reply]

  1. Copy MediaWiki:Gadget-ImageStack.js
  2. Copy MediaWiki:Gadget-jquery.mousewheel.js
  3. Register them (like on MediaWiki:Gadgets-definition)
    • *jquery.mousewheel [ResourceLoader|rights=hidden|hidden]|jquery.mousewheel.js
    • *ImageStack [ResourceLoader|dependencies=ext.gadget.jquery.mousewheel,site|rights=hidden|hidden]|ImageStack.js
  4. Copy this template.
  5. Add the following to your local MediaWiki:Common.js:
// A callback object holding callbacks executed when new DOM-content was inserted
window.newContentLoaded = $.Callbacks();

newContentLoaded.add( function($c) {
    if ( $( 'div.ImageStack', $c ).length ) {
        mw.loader.load( 'ext.gadget.ImageStack' );
    }
} );



// This must remain as the last entry in the common.js!
// Fire events when new portions of the wikipage were loaded
// (e.g. using live preview)
var onNewContent = function($cont) {
 newContentLoaded.fire($cont, 'wikipage.content');
};
mw.hook( 'wikipage.content' ).add(onNewContent);
mw.hook( 'wikipage.custom.content' ).add(onNewContent);
$( mw ).bind( 'LivePreviewDone', function(e, data) {
 if ($.inArray('#wikiPreview', data) < 0) return;
 newContentLoaded.fire($('#wikiPreview'), 'LivePreviewDone');
});

If you do not run the latest version of MediaWiki, use simply:

$(function() {
    if ( $( 'div.ImageStack' ).length ) {
        mw.loader.load( 'ext.gadget.ImageStack' );
    }
});

instead. -- Rillke(q?) 19:53, 15 July 2013 (UTC)[reply]

Error at image 165[edit]

The stacks at Scrollable computed tomography images of a normal abdomen and pelvis with over 164 images only show those first 164 ones, although I see nothing wrong with the image list in the wiki, nor the wiki code of the template. Where is the error? Mikael Häggström (talk) 15:18, 1 April 2019 (UTC)[reply]

  • Hi Mikael. This is due to the limit of images in the template. If you want 320 images in the series you need 320 lines in the template. Don't mix the numbers in the template-lines with the numbers of images because you need two numbers for each image. I did a small extension yet. --Hellerhoff (talk) 16:36, 3 April 2019 (UTC)[reply]
Thank for the explanation, Hellerhoff! I expanded it further now so that it covers the whole stack. Mikael Häggström (talk) 17:30, 3 April 2019 (UTC)[reply]

Broken[edit]

@Hellerhoff, Mikael Häggström, and DieBuche: Do you also see, that the template is broken? (I also brought this up at the village pump.) Watchduck (quack) 13:42, 29 July 2023 (UTC)[reply]

Yes, but I didn't change anything and I don't know the reason. Maybe the code integration in the main JS has changed? Who can help? Hellerhoff (talk) 16:51, 29 July 2023 (UTC)[reply]
@Hellerhoff: Where should we ask about changes to the main JS? Is that even on Commons, or on Mediawiki? I opened the Phabricator ticket, but it may be faster, to directly contact the people likely to be responsible. --Watchduck (quack) 12:31, 12 August 2023 (UTC)[reply]
I already asked DieBuche for help, but seems to be not active at the moment. I think it's a good thing to bring it to the Phabricator at least, to find someone who can help. Thank you! --Hellerhoff (talk) 14:34, 12 August 2023 (UTC)[reply]
mw:Help:Locating broken scripts seems to be a necessary step to get people on Phabricator involved. --Watchduck (quack) 20:13, 12 August 2023 (UTC)[reply]
I wrote a notification at Category talk:Commons JavaScript coders. --Watchduck (quack) 14:08, 21 November 2023 (UTC)[reply]
Thank you! Hellerhoff (talk) 19:24, 21 November 2023 (UTC)[reply]