Template:Image: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 2: Line 2:
-->[[file:{{{1}}}|thumb|{{{align|center}}}|{{#if:{{{height|}}}|x{{{height}}}|{{{width|100px}}}}}<!--
-->[[file:{{{1}}}|thumb|{{{align|center}}}|{{#if:{{{height|}}}|x{{{height}}}|{{{width|100px}}}}}<!--
  -->|<!--
  -->|<!--
   ARTIST: --><div class="attribution">{{#if:{{{artist|}}}|by {{{artist}}}|}}</div><!--
   ARTIST: --><div class="attribution">{{#if:{{{artist|}}}|<span style="font-size:90%;">by {{{artist}}}</span>|}}</div><!--
  CAPTION: --> {{#if:{{{2|}}}|{{{2}}}|}} <!--
  CAPTION: --> {{#if:{{{2|}}}|{{{2}}}|}} <!--
     LINK: -->{{#if:{{{link|}}}|{{!}}link={{{link}}}}}<!--
     LINK: -->{{#if:{{{link|}}}|{{!}}link={{{link}}}}}<!--

Revision as of 00:42, 2 May 2025

Description

This template is used to include a thumbnail image on a page.

Usage

The filename parameter is required. The caption is optional, but is strongly encouraged. See the table below for all other optional parameters.

Note: The copy-paste examples above and below are split over multiple lines for the sake of clarity.
Tag Only
Example
You Type You Get
{{Image
|Pen.png
}}
Caption
Example
You Type You Get
{{Image
|Pen.png
|This is a caption.
}}
This is a caption.
Artist Attribution
Example
You Type You Get
{{Image
|Pen.png
|This is a caption.
|artist=Declan Lion
}}
by Declan Lion
This is a caption.
Alignment
Example
You Type You Get
{{Image
|Pen.png
|This is a caption.
|align=left/right
}}
Using align=left.
Using align=right.
Resize Height
Example
You Type You Get
{{Image
|Pen.png
|This is a caption.
|height=150px
}}
This is a caption.
Resize Width
Example
You Type You Get
{{Image
|Pen.png
|This is a caption.
|width=200px
}}
This is a caption.
Internal Link
Example
You Type You Get
{{Image
|Pen.png
|Click here for more details on Emma M. Lion.
|link=Emma M. Lion
}}
Click here for more details on Emma M. Lion.
External Link
Example
You Type You Get
{{Image
|Pen.png
|Click here for more details on Beth Brower.
|link=https://www.bethbrower.com
}}
Click here for more details on Beth Brower.



Parameter Description Code Output
Common Parameters
None Only the file name is passed.
{{Image
|Pen.png
}}
Caption File name and caption are passed.
{{Image
|Pen.png
|This is a caption.
}}
This is a caption.
artist= Specifies the artist's name for the image.
{{Image
|Pen.png
|This is a caption.
|artist=Declan Lion
}}
by Declan Lion
This is a caption.
Alignment Parameters
align=left Pushes the image over to the left, allowing text to flow around it.
{{Image
|Pen.png
|This is a caption.
|align=left
}}
This is a caption.
align=right Pushes the image over to the right, allowing text to flow around it.
{{Image
|Pen.png
|This is a caption.
|align=right
}}
This is a caption.
Resizing Parameters
height= Sets the height of the image. If set, the width will adjust automatically to maintain aspect ratio.
{{Image
|Pen.png
|This is a caption.
|height=150px
}}
This is a caption.
width= Sets the width of the image. If set, the height will adjust automatically to maintain aspect ratio.
{{Image
|Pen.png
|This is a caption.
|width=200px
}}
This is a caption.
Link Parameters
link=
(Internal)
Makes the image clickable, linking it to a specific internal URL.
{{Image
|Pen.png
|Click here for more details on Emma M. Lion.
|link=Emma M. Lion
}}
Click here for more details on Emma M. Lion.
link=
(External)
Makes the image clickable, linking it to a specific external URL.
{{Image
|Pen.png
|Click here for more details on Beth Brower.
|link=https://www.bethbrower.com
}}
Click here for more details on Beth Brower

Articles using Template