Template:ImageFrame: Difference between revisions

From Iskomunidad
No edit summary
No edit summary
Line 3: Line 3:
Usage:
Usage:
* {{ImageFrame|image=Example.jpg|frame=frameless}}
* {{ImageFrame|image=Example.jpg|frame=frameless}}
* {{ImageFrame|image=Example.jpg|frame=frameless|showname=no}}
* Supported frame options: border, frameless, frame, thumb, thumbnail
* Supported frame options: border, frameless, frame, thumb, thumbnail
* Use showname=no to hide the filename
* Note: Specify the image filename without the "File:" prefix
* 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{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| border = [[File:{{{image}}}|border]]  
| frameless = [[File:{{{image}}}|frameless{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| frameless = [[File:{{{image}}}|frameless]]  
| frameless border = [[File:{{{image}}}|frameless|border{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| frameless border = [[File:{{{image}}}|frameless|border]]  
| frame = [[File:{{{image}}}|frame{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| frame = [[File:{{{image}}}|frame]]  
| thumb = [[File:{{{image}}}|thumb{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| thumb = [[File:{{{image}}}|thumb]]  
| thumbnail = [[File:{{{image}}}|thumb{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| thumbnail = [[File:{{{image}}}|thumb]]  
| [[File:{{{image}}}{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]] }}  
| [[File:{{{image}}}]] }}  
| [[File:From-search-1.png]] }}  
| [[File:From-search-1.png]] }}  



Revision as of 13:27, 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