Difference between revisions of "Template:External image/doc"

From Moegirlpedia
Jump to: navigation, search
m (Usage)
 
Line 2: Line 2:
 
This template is used for linking external pictures while adding captions and adjusting formats
 
This template is used for linking external pictures while adding captions and adjusting formats
 
==Usage==
 
==Usage==
<pre>{{Outer image|add=|title=|cap=|align=|w=px|h=px}}
+
<pre>{{External image|add=|title=|cap=|align=|w=px|h=px}}
{{Outer image|add=|cap=|align=|w=px}}
+
{{External image|add=|cap=|align=|w=px}}
  
{{Outer image
+
{{External image
 
|add=
 
|add=
 
|title=
 
|title=

Latest revision as of 02:02, 12 June 2021

This template is used for linking external pictures while adding captions and adjusting formats

Usage

{{External image|add=|title=|cap=|align=|w=px|h=px}}
{{External image|add=|cap=|align=|w=px}}

{{External image
|add=
|title=
|cap=
|align=
|w=px
|h=px
}}

Parameters

This template contains 5 parameters:

  • add The address of the picture, replaced by text if it isn't available. The text defaults to An editor forgot to add the address here. Let's hit him. Mandatory.
  • title The infobox that appears when the mouse hovers over the picture. "<" is prohibited. Optional.
  • cap Caption below the picture. Defaults to No captions.Optional.
  • align How the picture aligns in the page. Either left or right. Defaults to right.
  • w Width of the image. Uses the original width if left blank. If not accompanying h then the image is scaled accordingly.
  • h Height of the image. Uses the original height if left blank. If not accompanying w then the image is scaled accordingly.

If parameter w of the image is specified, the template will be limited to the width of the image, causing excess text to automatically start in a new line.Refer to Example 3 below. But using long lines of consecutive Latin characters will render the limit invalid, such as when using a long weblink.

If it is not wished to have the text automatically start in a new line, please scale the picture with the h parameter.

Examples

  • 1 Basic usage
  • {{External image|add=https://i.imgur.com/BrLU94q.png}}
https://i.imgur.com/BrLU94q.png
  • 2 Stretching
  • {{External image|add=https://i.imgur.com/BrLU94q.png|cap=喵喵喵喵|w=30px|h=150px}}
https://i.imgur.com/BrLU94q.png
喵喵喵喵
  • 3{{External image|add=https://i.imgur.com/BrLU94q.png|cap=喵喵喵喵|align=left|w=30px}}
https://i.imgur.com/BrLU94q.png
喵喵喵喵
  • 4{{External image|add=https://i.imgur.com/BrLU94q.png|cap=喵喵喵喵|align=left|h=33px}}
https://i.imgur.com/BrLU94q.png
喵喵喵喵喵喵