Anonymous

Help:Images: Difference between revisions

From OS-Tan Collections Wiki
3,755 bytes added ,  21 December 2023
no edit summary
(New page: {| align=center border=1 style=background-color:#D3F1FF; cellpadding=6 cellspacing=0 |align=right | left|C-chan '''These instructions were obtained from [h...)
 
No edit summary
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| align=center border=1 style=background-color:#D3F1FF; cellpadding=6 cellspacing=0
{{PD Help Page}}
|align=right | [[image:Cchan.png|left|C-chan]] '''These instructions were obtained from [http://www.mediawiki.org/wiki/Help:Images MediaWiki's Help:Images.]'''
 
- '''[[User:C-Chan|C-Chan]]'''
{{mbox
|}
| text=       '''These instructions were obtained from [http://www.mediawiki.org/wiki/Help:Images MediaWiki's Help:Images.]''' —C-chan
| image=      Cchan.png
| caption=    C-chan's avatar
| border=      black
| background=  #D3F1FF
}}


{{mbox
| text=        '''The thumbnail feature should work properly now. Please report any problems if any.''' —Fedora-tan
| image=      Fedora_logo.png
| caption=    Fedora-tan's avatar
| border=      black
| background=  yellow
}}


{| border=1 cellpadding=4 cellspacing=0  
{| border=1 cellpadding=4 cellspacing=0  
Line 10: Line 22:
!You get
!You get
|-
|-
|Embed image br / (with alt text)
|Embed image <br /> (with alt text)<br /><br />'''Note : Please use thumbnails when you post pictures (see below). All pictures larger than 300x300 pixels not thumbnailed will be removed.'''
|codenowiki[[Image:Example2.jpg|Linux-tan]]/nowiki/code
|<code><nowiki>[[Image:Example2.jpg|Linux-tan]]</nowiki></code>
|
|
[[Image:Example2.jpg|Linux-tan]]
[[Image:Example2.jpg|Linux-tan]]
Line 18: Line 30:
|Link to description page
|Link to description page
|
|
codenowiki[[:Image:Example2.jpg]]/nowiki/codebr /
<code><nowiki>[[:Image:Example2.jpg]]</nowiki></code><br />
codenowiki[[:Image:Example2.jpg|Linux-tan]]/nowiki/code
<code><nowiki>[[:Image:Example2.jpg|Linux-tan]]</nowiki></code>
|
|
[[:Image:Example2.jpg]]br /
[[:Image:Example2.jpg]]<br />
[[:Image:Example2.jpg|Linux-tan]]
[[:Image:Example2.jpg|Linux-tan]]
|-
|-
|Link directly to file
|Link directly to file
|
|
codenowiki[[Media:Example2.jpg]]/nowiki/codebr /
<code><nowiki>[[Media:Example2.jpg]]</nowiki></code><br />
codenowiki[[Media:Example2.jpg|Linux-tan]]/nowiki/code
<code><nowiki>[[Media:Example2.jpg|Linux-tan]]</nowiki></code>
|
|
[[Media:Example2.jpg]]br /
[[Media:Example2.jpg]]<br />
[[Media:Example2.jpg|Sunflowers]]
[[Media:Example2.jpg|Sunflowers]]
|-
|Simple Thumbnail<br /> (Just the thumb option)
|
<code><nowiki>[[Image:Example2.jpg|thumb]]</nowiki></code>
|
[[Image:Example2.jpg|thumb]]
|-
|Advanced Thumbnail<br /> (centered, 100 pixels<br /> wide, with caption)
|
<code><nowiki>[[Image:Example2.jpg|center|thumb|100px|Linux-tan]]</nowiki></code>
|
[[Image:Example2.jpg|center|thumb|100px|Linux-tan]]
|}
|}
==Uploaded files==
__TOC__
To use an image or other file which has been [[Help:Managing files|uploaded to the wiki]], use:
*<code><nowiki>[[Image:Example2.jpg]]</nowiki></code>
If you add a pipe (|) and some text after the filename, the text will be used as alternative text for text-only browsers:
*<code><nowiki>[[Image:Example2.jpg|alternative text]]</nowiki></code>
If you don't want to display the image, you can link to the file's description page, by adding a colon:
*<code><nowiki>[[:Image:Example2.jpg]]</nowiki></code>
To bypass the description page and link directly to a file , use the Media pseudo-namespace:
*<code><nowiki>[[Media:Example2.jpg]]</nowiki></code>
You can also make piped links if you want some other text to be used:
*<code><nowiki>[[:Image:Example2.jpg|link text]]</nowiki></code>
*<code><nowiki>[[Media:Example2.jpg|link text]]</nowiki></code>
===Advanced options===
The full syntax for displaying an image is:
<code><nowiki>[[Image:{name}|{options}]]</nowiki></code>
Where options can be zero or more of the following, separated by pipes:
*<code>thumb</code>, <code>thumbnail</code>, or <code>frame</code>: Controls how the image is formatted
*<code>left</code>, <code>right</code>, <code>center</code>, <code>none</code>: Controls the alignment of the image on the page
*<code>{width}px</code>: Resizes the image to the given width in pixels
*<code>{caption text}</code>
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.
===Gallery of images===
It's easy to make a gallery of thumbnails with the <code><nowiki>gallery</nowiki></code> tag. The syntax is:
<pre>
<gallery>
Image:{filename}|{caption}
Image:{filename}|{caption}
{...}
</gallery>
</pre>
Captions are optional, and may contain wiki links or other formatting.
for example:
<pre>
<gallery>
Image:Example2.jpg|Item 1
Image:Example2.jpg|a link to [[Help:Contents]]
Image:Example2.jpg
Image:Example2.jpg
Image:Example2.jpg|''italic caption''
</gallery>
</pre>
is formatted as:
<gallery>
Image:Example2.jpg|Item 1
Image:Example2.jpg|a link to [[Help:Contents]]
Image:Example2.jpg
Image:Example2.jpg
Image:Example2.jpg|''italic caption''
</gallery>
==Other files==
You can link to an external file using the same syntax used for [[Help:Links#External links|linking to an external web page]]. This feature has to be enabled by the admin; in the new releases of MediaWiki its disabled due to security reasons.
*<code><nowiki>[http://url.for/some/image.png]</nowiki></code>
Or with different text:
*<code><nowiki>[http://url.for/some/image.png link text here]</nowiki></code>
If it is enabled on your wiki, you can also embed external images. To do that, simply insert the url:
*<code><nowiki>http://url.for/some/image.png</nowiki></code>
==External Links==
[http://www.mediawiki.org/wiki/Help:Images MediaWiki Help:Images]