Difference between revisions of "Template:Imagebox"

From PotterworldMC
Jump to: navigation, search
(Created page with "<includeonly>{{{!}} style="float: right; width: 400px;" {{!}}- style="background: #414148; text-align: center;" {{!}} style="width: 600px;" colspan="2" {{!}} {{#if:{{{image|}...")
 
m
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
<includeonly>{{{!}} style="float: right; width: 400px;"
+
<includeonly>{{{!}} class="infobox" style="float: right; width: 400px; margin: 10px"
 
{{!}}- style="background: #414148; text-align: center;"  
 
{{!}}- style="background: #414148; text-align: center;"  
 
{{!}} style="width: 600px;" colspan="2" {{!}}
 
{{!}} style="width: 600px;" colspan="2" {{!}}
 
{{#if:{{{image|}}}|<nowiki/>
 
{{#if:{{{image|}}}|<nowiki/>
−
[[File:{{{image}}}|400x400px]]}}
+
[[File:{{{image}}}|400x400px|link=]]}}
 
{{{!}}
 
{{{!}}
 
{{!}}- style="background: #c2b280; text-align: center; color: #000000; height: 20px"  
 
{{!}}- style="background: #c2b280; text-align: center; color: #000000; height: 20px"  
−
{{!}} style="width: 400px; height: 20px; text-align: center;" colspan="2" {{!}} '''{{{caption}}}'''
+
{{!}} style="width: 400px; height: 20px; text-align: center;" colspan="2" {{!}} '''{{PAGENAME}}'''
 
{{!}}}
 
{{!}}}
 
{{!}}}
 
{{!}}}
−
</includeonly>
+
</includeonly><noinclude>=Example Use=
−
<noinclude>
+
<pre>{{Imagebox|image=Zin.png}}</pre>
−
=Example Use=
 
−
<pre>{{Template:Imagebox
 
−
|image=Zin.png
 
−
|caption=Zin
 
−
}}</pre>
 
 
==Result==
 
==Result==
−
{{Template:Imagebox
+
{{Imagebox|image=Zin.png}}
−
|image=Zin.png
 
−
|caption=Zin
 
−
}}
 
  
 
[[Category: Templates]]
 
[[Category: Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:42, 8 March 2025

Example Use

{{Imagebox|image=Zin.png}}

Result

Zin.png

Imagebox