Template:ImageFrame: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>Documentation for the ImageFrame template | <noinclude>Documentation for the ImageFrame template | ||
Usage: | Usage: | ||
* {{ImageFrame|image=Example.jpg|frame=frameless}} | * {{ImageFrame|image=Example.jpg|frame=frameless}} | ||
Line 8: | Line 7: | ||
<includeonly>{{#if:{{{image|}}} |{{#switch:{{{frame}}} | <includeonly>{{#if:{{{image|}}} |{{#switch:{{{frame}}} | ||
| border = [[File:{{{image}}}|border]] | | border = [[File:{{{image}}}|border|none]] | ||
| frameless = [[File:{{{image}}}|frameless]] | | frameless = [[File:{{{image}}}|frameless|none]] | ||
| frameless border = [[File:{{{image}}}|frameless|border]] | | frameless border = [[File:{{{image}}}|frameless|border|none]] | ||
| frame = [[File:{{{image}}}|frame]] | | frame = [[File:{{{image}}}|frame|none]] | ||
| thumb = [[File:{{{image}}}|thumb]] | | thumb = [[File:{{{image}}}|thumb|none]] | ||
| thumbnail = [[File:{{{image}}}|thumb]] | | thumbnail = [[File:{{{image}}}|thumb|none]] | ||
| [[File:{{{image}}}]] }} | | [[File:{{{image}}}|none]] }} | ||
| [[File:From-search-1.png]] }} | | [[File:From-search-1.png|none]] }} | ||
{| class="plainlinks" | {| class="plainlinks" |
Revision as of 13:28, 5 December 2024
Documentation for the ImageFrame template Usage:
[[File:Example.jpg
|
style="text-align:center;" |
- Supported frame options: border, frameless, frame, thumb, thumbnail
- Note: Specify the image filename without the "File:" prefix