Template:Image

From RadioWiki
(Difference between revisions)
Jump to: navigation, search
(First attempt at making a Template, hopefully a very useful one.)
 
m (Fixed the multi-line error. Looks to be a success ^_^)
Line 1: Line 1:
<noinclude>Based on <nowiki>[[Image:IMAGE SOURCE|thumb|DESCRIPTION]]</nowiki>, this template will serve as a substitute until Cassandra enables image uploads :)</noinclude><includeonly><div class="thumb t{{{1}}}">
+
<noinclude>Based on <nowiki>[[Image:IMAGE SOURCE|thumb|CAPTION]]</nowiki>, this template will serve as a substitute until Cassandra enables image uploads :)</noinclude><includeonly><div class="thumb t{{{1}}}">
 
<div style="width:182px;">[{{{2}}} {{{3}}}]
 
<div style="width:182px;">[{{{2}}} {{{3}}}]
 
<div class="thumbcaption">
 
<div class="thumbcaption">
Line 6: Line 6:
 
</div>
 
</div>
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
'''Example Usage:'''
+
{{Image|right|http://en.wikipedia.org/wiki/Image:Internet_map_1024.jpg|http://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Internet_map_1024.jpg/180px-Internet_map_1024.jpg|Visualization of the various routes through a portion of the Internet.}}'''Example Usage:'''
 +
<nowiki>{{Image|right|http://en.wikipedia.org/wiki/Image:Internet_map_1024.jpg| http://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Internet_map_1024.jpg/180px-Internet_map_1024.jpg |Visualization of the various routes through a portion of the Internet.}}</nowiki> gives that&rarr;<br />
 +
Or in english:
 
<pre><nowiki>{{Image
 
<pre><nowiki>{{Image
|right
+
|alignment
|http://en.wikipedia.org/wiki/Image:Internet_map_1024.jpg
+
|image-link, preferably an enlarged image or the description page
|http://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Internet_map_1024.jpg/180px-Internet_map_1024.jpg
+
|the thumbnailed image
|Visualization of the various routes through a portion of the Internet.
+
|image caption/description
 
}}</nowiki></pre>
 
}}</nowiki></pre>
'''Gives:'''
+
but note that if you spread it out over a bunch of lines you might get errors.</noinclude>
{{Image
+
|right
+
|http://en.wikipedia.org/wiki/Image:Internet_map_1024.jpg
+
|http://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Internet_map_1024.jpg/180px-Internet_map_1024.jpg
+
|Visualization of the various routes through a portion of the Internet.
+
}}</noinclude>
+

Revision as of 23:18, 17 December 2006

Based on [[Image:IMAGE SOURCE|thumb|CAPTION]], this template will serve as a substitute until Cassandra enables image uploads :)

180px-Internet_map_1024.jpg
magnify-clip.png
{{{5}}}
Example Usage:

{{Image|right|http://en.wikipedia.org/wiki/Image:Internet_map_1024.jpg| http://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Internet_map_1024.jpg/180px-Internet_map_1024.jpg |Visualization of the various routes through a portion of the Internet.}} gives that→
Or in english:

{{Image
|alignment
|image-link, preferably an enlarged image or the description page
|the thumbnailed image
|image caption/description
}}

but note that if you spread it out over a bunch of lines you might get errors.

Personal tools