<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AImageStackPopup%2Fdoc</id>
	<title>模板:ImageStackPopup/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AImageStackPopup%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:ImageStackPopup/doc&amp;action=history"/>
	<updated>2026-11-17T03:50:28Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:ImageStackPopup/doc&amp;diff=26937&amp;oldid=prev</id>
		<title>wiki&gt;Sophivorus：​Created page with &quot;{{Template gadget|ImageStackPopup}}  Use this template to generate an image with a play button. When you click it, it shows a popup with images in a slider viewer, suitable for looking at series of medical data, such as CT or MRI scans.  See the installation instructions to get it working in your wiki.  The &lt;code&gt;list&lt;/code&gt; parameter references a page with a fragment. E.g. Template:ImageStackPopup/list#medical, will use the image list with the id &quot;medi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:ImageStackPopup/doc&amp;diff=26937&amp;oldid=prev"/>
		<updated>2024-10-04T18:04:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Template gadget|ImageStackPopup}}  Use this template to generate an image with a play button. When you click it, it shows a popup with images in a slider viewer, suitable for looking at series of medical data, such as CT or MRI scans.  See the &lt;a href=&quot;#Installation&quot;&gt;installation instructions&lt;/a&gt; to get it working in your wiki.  The &amp;lt;code&amp;gt;list&amp;lt;/code&amp;gt; parameter references a page with a fragment. E.g. Template:ImageStackPopup/list#medical, will use the image list with the id &amp;quot;medi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template gadget|ImageStackPopup}}&lt;br /&gt;
&lt;br /&gt;
Use this template to generate an image with a play button. When you click it, it shows a popup with images in a slider viewer, suitable for looking at series of medical data, such as CT or MRI scans.&lt;br /&gt;
&lt;br /&gt;
See the [[#Installation|installation instructions]] to get it working in your wiki.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;list&amp;lt;/code&amp;gt; parameter references a page with a fragment. E.g. Template:ImageStackPopup/list#medical, will use the image list with the id &amp;quot;medical&amp;quot; from the page [[Template:ImageStackPopup/list]] as the list of images. Keep in mind that all images should have the same size (and especially same aspect ratio). Generally the list page would have code like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;gallery widths=700 heights=700 id=&amp;quot;medical&amp;quot;&amp;gt;File:first.png...&amp;lt;/gallery&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; on it.&lt;br /&gt;
&lt;br /&gt;
e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{ImageStackPopup&lt;br /&gt;
|start   = 177&lt;br /&gt;
|list    = Template:ImageStackPopup/list#medical&lt;br /&gt;
|caption = This is my caption&lt;br /&gt;
|title   = Window Title&lt;br /&gt;
|file    = [[File:Appendicitis (CT angiogram) (Radiopaedia 154713-127660 Axial 1).jpg|link=|thumb|left|upright=1.3|Try clicking play]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{ImageStackPopup&lt;br /&gt;
|start   = 177&lt;br /&gt;
|list    = Template:ImageStackPopup/list#medical&lt;br /&gt;
|caption = This is my caption&lt;br /&gt;
|title   = Window Title&lt;br /&gt;
|file    = [[File:Appendicitis (CT angiogram) (Radiopaedia 154713-127660 Axial 1).jpg|link=|thumb|left|upright=1.3|Try clicking play]]&lt;br /&gt;
}}&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;loop&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Should slider loop around. Set either \&amp;quot;yes\&amp;quot; or have no value&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;yes&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;start&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Which image to start on&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;4&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;1&amp;quot;,&lt;br /&gt;
			&amp;quot;autovalue&amp;quot;: &amp;quot;1&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;width&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Override image width from list page&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;height&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Override height from list page&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;list&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Image list page&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;A page name and fragment to load the image list from. For example, if you put MyPage#myGallery, then it is assumed there is a &amp;lt;gallery id=\&amp;quot;myGallery\&amp;quot;&amp;gt;...&amp;lt;/gallery&amp;gt; on the page MyPage which is used as the list of images&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;MyPage#myGallery&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;noregisterimages&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Disable translcuding the list page. This will cause this page not to be listed on the what links here for the images used.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;caption&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Caption to show in the pop-up below the image. Can include any wikitext.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;title&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Popup title&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of popup. Can only be plain text. Wikitext not supported.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;file&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The wikitext to include the image shown on the page&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;[[File:Example.png|thumb|100px|caption text]]&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Show an image with a play button that pops up a dialog showing more images in a viewer with a slider that is suitable for medical scans.&amp;quot;,&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;block&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
To install this template in your wiki:&lt;br /&gt;
&lt;br /&gt;
# Copy the pages [[Module:ImageStackPopup]], [[Template:ImageStackPopup]] and [[Template:ImageStackPopupGallery]] to your wiki.&lt;br /&gt;
# Create MediaWiki:Gadget-ImageStackPopup.js with the following code:&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;/**&lt;br /&gt;
 * ImageStackPopup: Creates a popup gallery viewer suitable for medical images&lt;br /&gt;
 * Documentation: https://www.mediawiki.org/wiki/ImageStackPopup&lt;br /&gt;
 * Source code: https://www.mediawiki.org/wiki/MediaWiki:Gadget-Global-ImageStackPopup.js&lt;br /&gt;
 */&lt;br /&gt;
mw.loader.load( &amp;#039;//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-ImageStackPopup&amp;#039; );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
# Add the following gadget to MediaWiki:Gadgets-definition: &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
ImageStackPopup[ResourceLoader|hidden|default|categories=ImageStackPopup.js]|ImageStackPopup.js&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Done! Add your template to any page to verify that the installation was successful.&lt;br /&gt;
&lt;br /&gt;
==Background==&lt;br /&gt;
This was based of [https://commons.wikimedia.org/wiki/Template:Imagestack work] originally by [[User:Hellerhoff]] and was funded by [[mdwiki:Wiki Project Med Foundation]].&lt;br /&gt;
&lt;br /&gt;
===Currently live===&lt;br /&gt;
Please add additional languages in which it is installed.&lt;br /&gt;
*[[mdwiki:Mesenteric_ischemia#Diagnosis]]&lt;br /&gt;
*[[commons:User:Doc_James#CT_scan_viewer]]&lt;br /&gt;
*[[:w:en:Category:Pages using gadget ImageStackPopup]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Template:ImageStackPopupGallery]]&lt;br /&gt;
* [[MediaWiki:Gadget-ImageStackPopup.js]]&lt;br /&gt;
* [[MediaWiki:Gadget-Global-ImageStackPopup.js]]&lt;br /&gt;
* [[Module:ImageStackPopup]]&lt;/div&gt;</summary>
		<author><name>wiki&gt;Sophivorus</name></author>
	</entry>
</feed>