Main Page

Difference between revisions of "Template:ScratchImg"

From Arks-Visiphone
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly><div type="button" class="btn" data-toggle="modal" data-target="#{{{1}}}">[[File:{{#replace: {{#replace: {{{2}}}| |}}|'|}}|64px|link=]]</div>
+
<includeonly><div type="button" class="btn" data-toggle="modal" data-target="#{{{1}}}">[[File:{{#replace: {{#replace: {{{2}}}| |}}|'|}}|128px|link=]]</div>
  
 
<div class="modal fade" id="{{{1}}}" tabindex="-1" role="dialog" aria-labelledby="{{{1}}}" aria-hidden="true"><div class="modal-dialog modal-dialog-centered" role="document"><div class="modal-content"><div type="button" class="btn close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></div><div class="modal-body mx-auto">[[File:{{#replace: {{#replace: {{{2}}}| |}}|'|}}|class="img-fluid"|link=]]</div></div></div></div></includeonly>
 
<div class="modal fade" id="{{{1}}}" tabindex="-1" role="dialog" aria-labelledby="{{{1}}}" aria-hidden="true"><div class="modal-dialog modal-dialog-centered" role="document"><div class="modal-content"><div type="button" class="btn close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></div><div class="modal-body mx-auto">[[File:{{#replace: {{#replace: {{{2}}}| |}}|'|}}|class="img-fluid"|link=]]</div></div></div></div></includeonly>
Line 11: Line 11:
  
 
Template usage example:
 
Template usage example:
{{ScratchImg|Mag R|UIItemMagR.png}}
+
{{ScratchImg|MagR|UIItemMagR.png}}
 
</pre>
 
</pre>
  
 
Result:
 
Result:
{{ScratchImg|Mag R|UIItemMagR.png}}
+
{{ScratchImg|MagR|UIItemMagR.png}}
  
</noinclude>
 
 
{|class="wikitable mx-auto table-responsive-md"
 
!Icon!!Name!!Device!!Obtain Method!!Recolorable
 
|-<noinclude>
 
|}
 
 
To use:
 
<pre>
 
{{MagHeader}}
 
</pre>
 
 
[[Category: Templates]][[Category: Table Header Templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 18:51, 23 May 2020


Creates a clickable pop-up for images.

How to use:

Template:
{{ScratchImg|UniqueName|Filename.jpg/png}}

Template usage example:
{{ScratchImg|MagR|UIItemMagR.png}}

Result:

UIItemMagR.png