Difference between revisions of "Template:Image"
Jump to navigation
Jump to search
sc4e>JoeST m (test) |
sc4e>JoeST m (test) |
||
Line 1: | Line 1: | ||
− | < | + | <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== | |
− | + | {{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 | ||
+ | **1 (default): maximum width of image is 800px | ||
+ | **2: maximum width is 500px | ||
+ | **3: maximum width is 300px | ||
==Example== | ==Example== | ||
− | + | </noinclude><span class="plainlinks" id="{{{{FULLPAGENAME}}/id|{{{width|}}}}}">{{#if:{{{page|}}}{{{url|}}}|<!-- page or url parameters set | |
− | {{img | + | |
+ | -->{{#if:{{{page|}}}|<!-- | ||
+ | page parameter set -->[[{{{page}}}|{{{1}}}]]|<!-- | ||
+ | url parameter set -->[{{{url}}} {{{1}}}]}}<!-- | ||
+ | neither set -->|{{{1}}}}}</span><noinclude> | ||
+ | *Where neither is set: | ||
+ | {{img|http://www.sc4devotion.com/img/SC4DVD_1.jpg}} | ||
+ | *Where page is set: | ||
+ | {{img|http://www.sc4devotion.com/img/SC4DVD_1.jpg|page=Main_Page}} | ||
+ | *Where url is set: | ||
+ | {{img|http://www.sc4devotion.com/img/SC4DVD_1.jpg|url=http://www.google.com/}} | ||
+ | *Where width is set: | ||
+ | {{img|http://www.sc4devotion.com/img/SC4DVD_1.jpg|width=2}} |
Revision as of 03:51, 26 January 2009
This template includes an external image, and can also link you to either the external image, an internal article or an external link.
Syntax
- 1: The external image URL
- page: An article name
- url: An external URL to link to
- width: can take these values
- 1 (default): maximum width of image is 800px
- 2: maximum width is 500px
- 3: maximum width is 300px
Example
{{{1}}}
- Where neither is set:
http://www.sc4devotion.com/img/SC4DVD_1.jpg
- Where page is set:
http://www.sc4devotion.com/img/SC4DVD_1.jpg
- Where url is set:
http://www.sc4devotion.com/img/SC4DVD_1.jpg
- Where width is set: