Template:ImageFrame: Difference between revisions

From Iskomunidad
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>Documentation for the ImageFrame template</noinclude>
<noinclude>Documentation for the ImageFrame template
<includeonly>{{#if:{{{frame|}}}
 
  |{{#switch:{{{frame}}}
Usage:
    | border = [[File:{{{image|From-search-1.png}}}|border]]
* {{ImageFrame|image=Example.jpg|frame=frameless}}
    | frameless = [[File:{{{image|From-search-1.png}}}|frameless]]
* {{ImageFrame|image=Example.jpg|frame=frameless|showname=no}}
    | frameless border = [[File:{{{image|From-search-1.png}}}|frameless|border]]
* Supported frame options: border, frameless, frame, thumb, thumbnail
    | frame = [[File:{{{image|From-search-1.png}}}|frame]]
* Use showname=no to hide the filename
    | thumb = [[File:{{{image|From-search-1.png}}}|thumb]]
* Note: Specify the image filename without the "File:" prefix
    | thumbnail = [[File:{{{image|From-search-1.png}}}|thumb]]
</noinclude>
  }}
 
  |[[File:{{{image|From-search-1.png}}}]]
<includeonly>{{#if:{{{image|}}} |{{#switch:{{{frame}}}  
}}
| border = [[File:{{{image}}}|border{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| frameless = [[File:{{{image}}}|frameless{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| frameless border = [[File:{{{image}}}|frameless|border{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| frame = [[File:{{{image}}}|frame{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| thumb = [[File:{{{image}}}|thumb{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| thumbnail = [[File:{{{image}}}|thumb{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]]  
| [[File:{{{image}}}{{#if:{{{showname|yes}}}|}}{{#if:{{{showname|}}}|=no|}}]] }}
| [[File:From-search-1.png]] }}  
 
{| class="plainlinks"
{| class="plainlinks"
|-
|-  
| {{{ex|}}}  
| {{{ex|}}}  
| <code>[[File:{{{image|From-search-1.png}}}{{{frame:+|}}}{{{2:+|}}}</code>
| <code>[[File:{{{image}}}{{{frame:+|}}}{{{2:+|}}}</code>  
| style="text-align:center;" | <span style="white-space:nowrap;">{{#if:{{{inline|}}}|inline=yes|}} {{#if:{{{float|}}}|float={{{float}}}|}}</span>
| style="text-align:center;"  
| <span style="white-space:nowrap;">{{#if:{{{inline|}}}|inline=yes|}} {{#if:{{{float|}}}|float={{{float}}}|}}</span>  
|}</includeonly>
|}</includeonly>

Revision as of 13:26, 5 December 2024

Documentation for the ImageFrame template

Usage:

frameless=no

  • Supported frame options: border, frameless, frame, thumb, thumbnail
  • Use showname=no to hide the filename
  • Note: Specify the image filename without the "File:" prefix