Difference between revisions of "Template:ScratchImg"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <div type="button" class="btn" data-toggle="modal" data-target="#{{{1}}}">[[File:{{#replace: {{#replace: {{{2}}}| |}}|'|}}|class="img-fluid"|128px|link=]]</div> | + | <includeonly><div type="button" class="btn" data-toggle="modal" data-target="#{{{1}}}">[[File:{{#replace: {{#replace: {{{2}}}| |}}|'|}}|class="img-fluid"|128px|link=]]</div> |
− | <div class="modal fade" id="{{{1}}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> | + | <div class="modal fade" id="{{{1}}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-body mx-auto">[[File:{{#replace: {{#replace: {{{2}}}| |}}|'|}}|class="img-fluid"|link=]]</div></div></div></div></includeonly> |
− | <div class="modal-dialog" role="document"> | ||
− | <div class="modal-content"> | ||
− | <div class="modal-body mx-auto"> | ||
− | [[File:{{#replace: {{#replace: {{{2}}}| |}}|'|}}|class="img-fluid"|link=]] | ||
− | </div> | ||
− | </div> | ||
− | </div> | ||
− | </div> | ||
<noinclude> | <noinclude> | ||
Creates a clickable pop-up for images. | Creates a clickable pop-up for images. | ||
+ | |||
How to use: | How to use: | ||
<pre> | <pre> |
Revision as of 13:04, 17 April 2020
Creates a clickable pop-up for images.
How to use:
Template: {{ScratchImg|UniqueFilename|Filename.jpg/png}} Template usage example: {{ScratchImg|VoidRecorder|UIFashionVoidRecorder.png}}
Result: