Template:Img: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Created page with "<img src="{{{1}}}" {{#if: {{{2|}}} | width="{{{2}}}" }}/>")
 
No edit summary
Line 1: Line 1:
<img src="{{{1}}}" {{#if: {{{2|}}} | width="{{{2}}}" }}/>
<img src="{{{1}}}" {{#if: {{{2|}}} | width="{{{2}}}" }}/><noinlcude>{{doc}}</noinclude>

Revision as of 16:03, 6 November 2012

<img src="{{{1}}}" /><noinlcude>

[edit] Template documentation

A shortcut for the HTML img tag.

Usage

{{img|1|2}}

creates

<img src="1" width="2" />

1
URL to image
2 (optional)
width in px. For example, 500px.

Example

{{img|http://www.straitpinkie.com/wp-content/uploads/2010/04/038.jpg|200px}}:

<img src="http://www.straitpinkie.com/wp-content/uploads/2010/04/038.jpg" width="200px"/><noinlcude>Template loop detected: Template:Doc</noinclude>