Difference between revisions of "Template:Image"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>CasperVg
m (Template:Img moved to Template:Image: better title, fits with for example Wikipedia itself. Should be redirected where needed)
sc4e>Jdenm8
(Edited example code so that it would display explicitly.)
Line 1: Line 1:
 
<noinclude>{{pp-template}}</noinclude><noinclude>This template includes an external image, and can also link you to either the external image, an internal article or an external link.
 
<noinclude>{{pp-template}}</noinclude><noinclude>This template includes an external image, and can also link you to either the external image, an internal article or an external link.
 
==Syntax==
 
==Syntax==
{{img
+
<nowiki>{{img
| 1 =
+
| 1  
| page =
+
| page
| url =
+
| url  
| width =
+
| width  
}}
+
}}</nowiki>
 
*'''1''': The external image URL
 
*'''1''': The external image URL
 
*'''''page''''': An article name
 
*'''''page''''': An article name

Revision as of 04:16, 17 November 2012

This template includes an external image, and can also link you to either the external image, an internal article or an external link.

Syntax

{{img | 1 | page | url | width }}

  • 1: The external image URL
  • page: An article name
  • url: An external URL to link to
  • width: can take these values
    • tinyImg: upto 300px
    • smallImg: upto 500px
    • all others are 800px

Example

{{{1}}}

  • Where neither is set:

http://www.sc4devotion.com/img/SC4DVD_1.jpg

http://www.sc4devotion.com/img/SC4DVD_1.jpg

  • Where url is set (too google):

http://www.sc4devotion.com/img/SC4DVD_1.jpg

  • Where width is set (to tinyImg):

http://www.sc4devotion.com/img/SC4DVD_1.jpg