https://wiki.somd.com/index.php?title=Help:Images&feed=atom&action=historyHelp:Images - Revision history2024-03-29T11:32:14ZRevision history for this page on the wikiMediaWiki 1.32.0https://wiki.somd.com/index.php?title=Help:Images&diff=2136&oldid=prevAdmin: 1 revision2008-11-26T04:26:20Z<p>1 revision</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">Revision as of 04:26, 26 November 2008</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Adminhttps://wiki.somd.com/index.php?title=Help:Images&diff=2135&oldid=prevPanicum: captions do not function with full images, sorry2008-11-03T02:27:56Z<p>captions do not function with full images, sorry</p>
<p><b>New page</b></p><div>{{PD Help Page}}<br />
<br />
This page explains the image syntax when editing the wiki. Before using images in your page, your wiki must have file uploads enabled (see the {{mediawiki|Manual:Configuring_file_uploads|technical manual}} for details) and you have to [[Help:Managing files|upload a file]].<br />
<br />
__TOC__<br />
{| {{Prettytable}}<br />
|-<br />
|{{Hl3}}|'''Description'''<br />
|{{Hl3}}|'''You type''' <br />
|{{Hl3}}|'''You get'''<br />
|-<br />
|Embed image<br /> (with alt text)<br />
|<br />
<code><nowiki>[[Image:Example.jpg|Sunflowers]]</nowiki></code><br />
|<br />
[[Image:Example.jpg|Sunflowers]]<br />
|-<br />
|Link to description page<br />
|<br />
<code><nowiki>[[:Image:Example.jpg]]</nowiki></code><br /><br />
<code><nowiki>[[:Image:Example.jpg|Sunflowers]]</nowiki></code><br />
|<br />
[[:Image:Example.jpg]]<br /><br />
[[:Image:Example.jpg|Sunflowers]]<br />
|-<br />
|Link directly to file<br />
|<br />
<code><nowiki>[[Media:Example.jpg]]</nowiki></code><br /><br />
<code><nowiki>[[Media:Example.jpg|Sunflowers]]</nowiki></code><br />
|<br />
[[Media:Example.jpg]]<br /><br />
[[Media:Example.jpg|Sunflowers]]<br />
|-<br />
|Thumbnail<br /> (centered, 100 pixels<br /> wide, with caption)<br />
|<br />
<code><nowiki>[[Image:Example.jpg|center|thumb|100px|Sunflowers]]</nowiki></code><br />
|<br />
[[Image:Example.jpg|center|thumb|100px|Sunflowers]]<br />
|-<br />
|Border<br /> (100 pixels) <br /> Results in a very small gray border<br />
<!-- Note: because the fine gray border can not be seen when used on Image:Exaple.jpg (sunflowers image), an image with a white background is used --><br />
|<br />
<code><nowiki>[[Image:Example-white-bg.jpg|border|100px]]</nowiki></code><br />
|<br />
[[Image:Example-white-bg.jpg|border|100px]]<br />
|-<br />
|Frameless<br />Like thumbnail, respect user preferences for image width but without border and no right float.<br />
|<br />
<code><nowiki>[[Image:Example.jpg|frameless]]</nowiki></code><br />
|<br />
[[Image:Example.jpg|frameless]]<br />
|}<br />
<br />
== Syntax ==<br />
The full syntax for displaying an image is:<br />
<code><nowiki>[[Image:{name}|{options}]]</nowiki></code><br />
Where options can be zero or more of the following, separated by pipes:<br />
*<code>thumb</code>, <code>thumbnail</code>, <code>frame</code>, or <code>frameless</code>: Controls how the image is formatted<br />
*<code>left</code>, <code>right</code>, <code>center</code>, <code>none</code>: Controls the alignment of the image on the page<br />
*<code>baseline</code>, <code>sub</code>, <code>super</code>, <code>top</code>, <code>text-top</code>, <code>middle</code>, <code>bottom</code>, <code>text-bottom</code>: Controls the vertical alignment of the image on the page<br />
*<code>{width}px</code>: Resizes the image to the given width in pixels<br />
* Special cases:<br />
** <code>page=1</code>: Displays the specified page when showing a djvu file<br />
*<code>link={destination}</code>: Allows to link to an arbitrary title, URL or just nowhere ([[rev:41727|1.14+]])<br />
*<code>alt={alternative text}</code>: For changing the alternative text (<code>alt=""</code>) of an image ([[rev:41837|1.14+]])<br />
<br />
The options can be given in any order. If a given option does not match any of the other possibilities, it is assumed to be the caption text. Caption text can contain wiki links or other formatting.<br />
<br />
== Other files ==<br />
You can link to an external file using the same syntax used for linking to an external web page. <br />
*<code><nowiki>[http://url.for/some/image.png]</nowiki></code><br />
Or with different text:<br />
*<code><nowiki>[http://url.for/some/image.png link text here]</nowiki></code><br />
<br />
If it is enabled on your wiki (see {{mediawiki|Manual:$wgAllowExternalImages}}), you can also embed external images. To do that, simply insert the image's url:<br />
*<code><nowiki>http://url.for/some/image.png</nowiki></code><br />
<br />
== Gallery of images ==<br />
It's easy to make a gallery of '''thumbnails only''', not other images, with the <code><nowiki><gallery></nowiki></code> tag. The syntax is:<br />
<pre><br />
<gallery><br />
Image:{filename}|{caption}<br />
Image:{filename}|{caption}<br />
{...}<br />
</gallery><br />
</pre><br />
Note that the image code is not enclosed in brackets when enclosed in gallery tags. <br><br />
Captions are optional, and may contain wiki links or other formatting.<br />
<br />
for example:<br />
<pre><br />
<gallery><br />
Image:Example.jpg|Item 1<br />
Image:Example.jpg|a link to [[Help:Contents]]<br />
Image:Example.jpg<br />
Image:Example.jpg<br />
Image:Example.jpg|''italic caption''<br />
Image:Example.jpg|on page "{{PAGENAME}}"<br />
</gallery><br />
</pre><br />
is formatted as:<br />
<gallery><br />
Image:Example.jpg|Item 1<br />
Image:Example.jpg|a link to [[Help:Contents]]<br />
Image:Example.jpg<br />
Image:Example.jpg<br />
Image:Example.jpg|''italic caption''<br />
Image:Example.jpg|on page "{{PAGENAME}}"<br />
</gallery><br />
<br />
== See also ==<br />
* [[Help:Linked images|Linked images]]<br />
<br />
==External Link==<br />
* [[wikipedia:Project:Extended image syntax|Wikipedia:Extended image syntax]]<br />
<br />
{{Languages|Help:Images}}<br />
<br />
[[Category:Help|Images]]</div>Panicum