跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
天灾之下:危险连接官网(建设中)
天灾之下:危险连接QQ群
天灾之下:危险连接 Bilibili
冰糖服务器
冰糖服务器QQ群
天灾之下:危险连接资料站
搜索
搜索
中文(中国大陆)
外观
创建账号
登录
个人工具
创建账号
登录
查看“︁模板:ImageStackPopup/doc”︁的源代码
模板
讨论
大陆简体
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
[[雷光]]
外观
移至侧栏
隐藏
←
模板:ImageStackPopup/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{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|installation instructions]] to get it working in your wiki. The <code>list</code> parameter references a page with a fragment. E.g. Template:ImageStackPopup/list#medical, will use the image list with the id "medical" 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 <code><nowiki><gallery widths=700 heights=700 id="medical">File:first.png...</gallery></nowiki></code> on it. e.g. <pre> {{ImageStackPopup |start = 177 |list = Template:ImageStackPopup/list#medical |caption = This is my caption |title = Window Title |file = [[File:Appendicitis (CT angiogram) (Radiopaedia 154713-127660 Axial 1).jpg|link=|thumb|left|upright=1.3|Try clicking play]] }} </pre> {{ImageStackPopup |start = 177 |list = Template:ImageStackPopup/list#medical |caption = This is my caption |title = Window Title |file = [[File:Appendicitis (CT angiogram) (Radiopaedia 154713-127660 Axial 1).jpg|link=|thumb|left|upright=1.3|Try clicking play]] }} {{-}} <templatedata> { "params": { "loop": { "description": "Should slider loop around. Set either \"yes\" or have no value", "example": "yes", "type": "boolean" }, "start": { "description": "Which image to start on", "example": "4", "type": "number", "default": "1", "autovalue": "1", "suggested": true }, "width": { "description": "Override image width from list page", "type": "number" }, "height": { "description": "Override height from list page", "type": "number" }, "list": { "label": "Image list page", "description": "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 <gallery id=\"myGallery\">...</gallery> on the page MyPage which is used as the list of images", "example": "MyPage#myGallery", "type": "string", "required": true }, "noregisterimages": { "description": "Disable translcuding the list page. This will cause this page not to be listed on the what links here for the images used.", "type": "boolean" }, "caption": { "description": "Caption to show in the pop-up below the image. Can include any wikitext.", "type": "content", "suggested": true }, "title": { "label": "Popup title", "description": "Title of popup. Can only be plain text. Wikitext not supported.", "type": "string", "suggested": true }, "file": { "description": "The wikitext to include the image shown on the page", "example": "[[File:Example.png|thumb|100px|caption text]]", "type": "content", "required": true, "suggested": true } }, "description": "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.", "format": "block" } </templatedata> == Installation == To install this template in your wiki: # Copy the pages [[Module:ImageStackPopup]], [[Template:ImageStackPopup]] and [[Template:ImageStackPopupGallery]] to your wiki. # Create MediaWiki:Gadget-ImageStackPopup.js with the following code:<syntaxhighlight lang="javascript">/** * ImageStackPopup: Creates a popup gallery viewer suitable for medical images * Documentation: https://www.mediawiki.org/wiki/ImageStackPopup * Source code: https://www.mediawiki.org/wiki/MediaWiki:Gadget-Global-ImageStackPopup.js */ mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-ImageStackPopup' ); </syntaxhighlight> # Add the following gadget to MediaWiki:Gadgets-definition: <syntaxhighlight lang="text"> ImageStackPopup[ResourceLoader|hidden|default|categories=ImageStackPopup.js]|ImageStackPopup.js </syntaxhighlight> Done! Add your template to any page to verify that the installation was successful. ==Background== 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]]. ===Currently live=== Please add additional languages in which it is installed. *[[mdwiki:Mesenteric_ischemia#Diagnosis]] *[[commons:User:Doc_James#CT_scan_viewer]] *[[:w:en:Category:Pages using gadget ImageStackPopup]] ==See also== * [[Template:ImageStackPopupGallery]] * [[MediaWiki:Gadget-ImageStackPopup.js]] * [[MediaWiki:Gadget-Global-ImageStackPopup.js]] * [[Module:ImageStackPopup]]
该页面嵌入的页面:
模板:-
(
查看源代码
)
模板:Clear
(
查看源代码
)
模板:ImageStackPopup
(
查看源代码
)
模板:ImageStackPopup/list
(
查看源代码
)
模板:Mbox
(
查看源代码
)
模板:Template gadget
(
查看源代码
)
模块:Arguments
(
查看源代码
)
模块:ImageStackPopup
(
查看源代码
)
模块:Message box
(
查看源代码
)
模块:Message box/configuration
(
查看源代码
)
模块:Message box/ombox.css
(
查看源代码
)
模块:Yesno
(
查看源代码
)
返回
模板:ImageStackPopup/doc
。
搜索
搜索
查看“︁模板:ImageStackPopup/doc”︁的源代码
添加语言
添加话题