Difference between revisions of "Template:PreviewImg"

From Arks-Visiphone
Jump to navigation Jump to search
(Created page with "<includeonly><div type="button" class="btn" data-toggle="modal" data-target="#{{{1}}}"><noinclude>[[:File:{{#replace: {{#replace: {{{2}}}| |}}|'|}}]]</noinclude><span style="c...")
 
m
 
Line 9: Line 9:
 
Template:
 
Template:
 
{{PreviewImg|UniqueName|Filename.jpg/png}}
 
{{PreviewImg|UniqueName|Filename.jpg/png}}
 +
 +
Parameters:
 +
{{PreviewImg| (1) | (2).jpg/png}}
 +
(1) - Must be a unique name, using the same name will result in the same image being loaded
 +
(2) - Image that (1) will take from to load the result
  
 
Template usage example:
 
Template usage example:

Latest revision as of 11:53, 1 May 2021


Creates a clickable pop-up for images hidden under Text "Preview".

How to use:

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

Parameters:
{{PreviewImg| (1) | (2).jpg/png}}
(1) - Must be a unique name, using the same name will result in the same image being loaded
(2) - Image that (1) will take from to load the result

Template usage example:
{{PreviewImg|LatonasNobire|UIItemLatonasNobire.png}}

Result:

Preview