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:{{{ | |||
Usage: | |||
* {{ImageFrame|image=Example.jpg|frame=frameless}} | |||
* {{ImageFrame|image=Example.jpg|frame=frameless|showname=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 | |||
</noinclude> | |||
<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 | | <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:
[[File:Example.jpg
|
style="text-align:center;" |
[[File:Example.jpg
|
style="text-align:center;" |
- Supported frame options: border, frameless, frame, thumb, thumbnail
- Use showname=no to hide the filename
- Note: Specify the image filename without the "File:" prefix