Template:ImagesFrame: Difference between revisions

From Iskomunidad
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>Documentation for the ImageFrame template
<noinclude>Documentation for 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 = [[{{{image}}}|border]]  
| border = [[File:{{{image}}}|border]]  
| frameless = [[{{{image}}}|frameless]]  
| frameless = [[File:{{{image}}}|frameless]]  
| frameless border = [[{{{image}}}|frameless|border]]  
| frameless border = [[File:{{{image}}}|frameless|border]]  
| frame = [[{{{image}}}|frame]]  
| frame = [[File:{{{image}}}|frame]]  
| thumb = [[{{{image}}}|thumb]]  
| thumb = [[File:{{{image}}}|thumb]]  
| thumbnail = [[{{{image}}}|thumb]]  
| thumbnail = [[File:{{{image}}}|thumb]]  
| [[{{{image}}}]] }}  
| [[File:{{{image}}}]] }}  
| [[File:From-search-1.png]] }}  
| [[File:From-search-1.png]] }}  


Line 16: Line 20:
|-  
|-  
| {{{ex|}}}  
| {{{ex|}}}  
| <code>[[{{{image}}}{{{frame:+|}}}{{{2:+|}}}</code>  
| <code>[[File:{{{image}}}{{{frame:+|}}}{{{2:+|}}}</code>  
| style="text-align:center;"  
| 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>

Revision as of 13:20, 5 December 2024

Documentation for the ImageFrame template

Usage:

  • Supported frame options: border, frameless, frame, thumb, thumbnail
  • Note: Specify the image filename without the "File:" prefix