Template:ImageFrame: Difference between revisions

From Iskomunidad
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Documentation for the ImageFrame template
<noinclude>This is the ImageFrame template
 
Usage:
* {{ImageFrame|image=Example.jpg|frame=frameless}}
* Supported frame options: border, frameless, frame, thumb, thumbnail
* Note: Specify the image filename without the "File:" prefix
</noinclude>
</noinclude>


<includeonly>{{#if:{{{image|}}} |{{#switch:{{{frame}}}  
<includeonly>{{#if:{{{image|}}} |{{#switch:{{{frame}}}  
| border = [[File:{{{image}}}|border]]  
| border = [[File:{{{image}}}|border|alt=|center]]  
| frameless = [[File:{{{image}}}|frameless]]  
| frameless = [[File:{{{image}}}|frameless|alt=|center]]  
| frameless border = [[File:{{{image}}}|frameless|border]]  
| frameless border = [[File:{{{image}}}|frameless|border|alt=|center]]  
| frame = [[File:{{{image}}}|frame]]  
| frame = [[File:{{{image}}}|frame|alt=|center]]  
| thumb = [[File:{{{image}}}|thumb]]  
| thumb = [[File:{{{image}}}|thumb|alt=|center]]  
| thumbnail = [[File:{{{image}}}|thumb]]  
| thumbnail = [[File:{{{image}}}|thumb|alt=|center]]  
| [[File:{{{image}}}]] }}  
| [[File:{{{image}}}|alt=|center]] }}  
| [[File:From-search-1.png]] }}  
| [[File:From-search-1.png|alt=|center]] }}  


{| class="plainlinks"
{| class="plainlinks"
|-  
|-  
| {{{ex|}}}  
| {{{ex|}}}  
| <code>[[File:{{{image}}}{{{frame:+|}}}{{{2:+|}}}</code>
| style="text-align:center;"
| <span style="white-space:nowrap;">{{#if:{{{inline|}}}|inline=yes|}} {{#if:{{{float|}}}|float={{{float}}}|}}</span>  
| <span style="white-space:nowrap;">{{#if:{{{inline|}}}|inline=yes|}} {{#if:{{{float|}}}|float={{{float}}}|}}</span>  
|}</includeonly>
|}</includeonly>

Latest revision as of 13:49, 5 December 2024

This is the ImageFrame template