Help:Images: Difference between revisions
(Created page with "Adding images to Portal Wiki is a great way to enhance the content of an article. Here are some basics on how to use and format images. Image use is regulated by our [[Help:Image...") |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Adding images to Portal Wiki is a great way to enhance the content of an article. Here are some basics on how to use and format images. Image use is regulated by our [[Help:Image guidelines|Image use policy]]. | {{NS HELP navbar}} | ||
Adding '''images''' to the Portal Wiki is a great way to enhance the content of an article. Here are some basics on how to use and format images. Image use is regulated by our [[Help:Image guidelines|Image use policy]]. | |||
==Uploading images== | ==Uploading images== | ||
Line 27: | Line 29: | ||
[[Image:{file_name}|{options}]] | [[Image:{file_name}|{options}]] | ||
Where options can be zero or more of the following, separated by pipes: | Where options can be zero or more of the following, separated by pipes: | ||
* | * <code>border</code>, <code>frame</code>, <code>thumb</code>, or <code>frameless</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 within a text | ||
* | * <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 within a text | ||
* | * <code>{width}px</code>: Resizes the image to the given width in pixels | ||
* | * <code>{width}x{height}px</code>: Resizes the image to fit within the given width and height in pixels; it is possible to specify only the height by writing <code>x{height}px</code> | ||
** ''Note that the image will always retain its aspect ratio.'' | ** ''Note that the image will always retain its aspect ratio.'' | ||
* ''link={destination}'': Allows to link to an article or URL | * ''link={destination}'': Allows to link to an article or URL; '''e.g.''' <code><nowiki>[[Image:Name.jpg|20px|link=Help:Images]]</nowiki></code> [[Image:Logo.png|20px|link=Help:Images]]. | ||
** | ** <code>link=</code>: Will display an image without link. | ||
** ''Note that | ** ''Note that <code>link</code> cannot be used in conjunction with <code>thumb</code> as thumb is always meant to link to the larger version of the image. In addition, <code>link</code> cannot be used with <code>frame</code>.'' | ||
* | * <code>alt={alternative text}</code>: For changing the alternative text (<code>alt=""</code>) of an image. | ||
The options can be given in any order. If the given options conflict each other, the latter is applied, except for the format options, where the options take the priority in the order of | The options can be given in any order. If the given options conflict each other, the latter is applied, except for the format options, where the options take the priority in the order of <code>frame</code>, <code>thumb</code>, and <code>frameless</code> and/or <code>border</code>. 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. | ||
== Format == | == Format == | ||
Line 114: | Line 116: | ||
<u>text text [[Image:Wiki-logo.png|20px]] | <u>text text [[Image:Wiki-logo.png|20px]] | ||
text text [[Image:Wiki-logo.png|20px|baseline]] | text text [[Image:Wiki-logo.png|20px|baseline]] | ||
text text [[Image:Wiki-logo.png|20px|sub]] | text text [[Image:Wiki-logo.png|20px|sub]] | ||
text text [[Image:Wiki-logo.png|20px|super]] | text text [[Image:Wiki-logo.png|20px|super]] | ||
text text [[Image:Wiki-logo.png|20px|text-top]] | text text [[Image:Wiki-logo.png|20px|text-top]] | ||
text text [[Image:Wiki-logo.png|20px|middle]] | text text [[Image:Wiki-logo.png|20px|middle]] | ||
text text [[Image:Wiki-logo.png|20px|bottom]] | text text [[Image:Wiki-logo.png|20px|bottom]] | ||
text text [[Image:Wiki-logo.png|20px|text-bottom]]</u> | text text [[Image:Wiki-logo.png|20px|text-bottom]]</u> | ||
Line 151: | Line 160: | ||
== Stopping text flow == | == Stopping text flow == | ||
On occasion it is desirable to stop text from flowing around an image. | On occasion it is desirable to stop text from flowing around an image. Depending on the web browser's screen resolution and such, text flow on the right side of an image may cause a section header (for instance, <code>== My Header ==</code>) to appear to the right of the image, instead of below it, as a user may expect. The text flow can be stopped by placing <code><br style="clear: both" /></code> before the text that should start after the image. | ||
== Links == | == Links == | ||
Line 176: | Line 185: | ||
[[{{ns:media}}:Wiki-logo.png|Wiki Logo]] | [[{{ns:media}}:Wiki-logo.png|Wiki Logo]] | ||
== List of Files in Portal Wiki == | == List of Files in The Portal Wiki == | ||
There are a number of special pages to help you view and manage files which have been uploaded. Go to “{{int:specialpages}}” (in the {{lcfirst:{{int:toolbox}}}} on the left) and then see... | There are a number of special pages to help you view and manage files which have been uploaded. Go to “{{int:specialpages}}” (in the {{lcfirst:{{int:toolbox}}}} on the left) and then see... | ||
Line 184: | Line 193: | ||
== See also == | == See also == | ||
*[[Help:Image guidelines]] - Image guidelines for Portal Wiki | *[[Help:Image guidelines]] - Image guidelines for The Portal Wiki | ||
*[[:Category:Images]] - Main image category, sub categories should be filed under this. | *[[:Category:Images]] - Main image category, sub categories should be filed under this. | ||
Latest revision as of 03:24, 25 June 2024
|
Adding images to the Portal Wiki is a great way to enhance the content of an article. Here are some basics on how to use and format images. Image use is regulated by our Image use policy.
Uploading images
- Prepare the file for upload. Make sure the image is cropped to eliminate unecessary space and focused on the image subject.
- In the sidebar, under “tools”, click “upload file”.
- Click “Browse” next to the “Source filename:” to locate the file on your computer (the name of the “browse” button depends on your web browser).
- Change the “Destination filename:” to something descriptive, if necessary.
- Fill in the “Summary,” if necessary.
- Select the appropriate license of the file.
- Click the “Upload file” button.
If it is a large file, you may have to wait several seconds for the upload to complete.
- Important: after uploading, you may not see the new version immediately. Try clearing your page cache (CTRL+F5 on most browsers, see here). Don't revert to an older version or attempt to upload again.
Using Images and File Description Pages
After you've uploaded a file, you can use it in an article, with some special wiki syntax to create the link (see below).
Your file gets its very own “File Description Page” within the File namespace of the wiki. You should edit this page to provide more information about the file. You should use the description page to explain where you got the file from, and what its copyright status is. Any other useful descriptive notes could also be added there.
Licensing and copyrights
- Tag all images with the applicable license template.
- Images that violate the terms of use of this website or infringe copyright will be subject to deletion.
Syntax
The full syntax for displaying an image is:
[[Image:{file_name}|{options}]]
Where options can be zero or more of the following, separated by pipes:
border
,frame
,thumb
, orframeless
: Controls how the image is formattedleft
,right
,center
,none
: Controls the alignment of the image within a textbaseline
,sub
,super
,top
,text-top
,middle
,bottom
,text-bottom
: Controls the vertical alignment of the image within a text{width}px
: Resizes the image to the given width in pixels{width}x{height}px
: Resizes the image to fit within the given width and height in pixels; it is possible to specify only the height by writingx{height}px
- Note that the image will always retain its aspect ratio.
- link={destination}: Allows to link to an article or URL; e.g.
[[Image:Name.jpg|20px|link=Help:Images]]
.link=
: Will display an image without link.- Note that
link
cannot be used in conjunction withthumb
as thumb is always meant to link to the larger version of the image. In addition,link
cannot be used withframe
.
alt={alternative text}
: For changing the alternative text (alt=""
) of an image.
The options can be given in any order. If the given options conflict each other, the latter is applied, except for the format options, where the options take the priority in the order of frame
, thumb
, and frameless
and/or border
. 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.
Format
The following table shows the effect of all available formats.
Description | You type | You get |
---|---|---|
no format specified |
... text text text [[Image:Wiki-logo.png|caption]] text text text ... |
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
border results in a very small gray border |
... text text text [[Image:Wiki-logo.png|border|caption]] text text text ... |
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
frame |
... text text text [[Image:Wiki-logo.png|frame|caption]] text text text ... |
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
thumb |
... text text text [[Image:Wiki-logo.png|thumb|caption]] text text text ... |
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
frameless, like thumbnail, respect user preferences for image width but without border and no right float |
... text text text [[Image:Wiki-logo.png|frameless|caption]] text text text ... |
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
frameless and border |
... text text text [[Image:Wiki-logo.png|frameless|border|caption]] text text text ... |
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
internal link |
... text text text [[Image:Wiki-logo.png|link=Main Page|caption]] text text text ... |
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
external link |
... text text text [[Image:Wiki-logo.png|link=http://thinkwithportals.com|caption]] text text text ... |
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
no link (external or file page) |
... text text text [[Image:Wiki-logo.png|link=|caption]] text text text ... |
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text |
When the height of an image in thumbnail is bigger than its width and you find it too outstanding, you may try the option upright
, which will try to adjust its size to more desirable size.
Note that by writing thumb={filename}
, you can use a different image for the thumbnail.
Alignment
Note that when using frame
or thumb
, the default alignment will be right
.
Vertical alignment
text text [[Image:Wiki-logo.png|20px]] text text [[Image:Wiki-logo.png|20px|baseline]] text text [[Image:Wiki-logo.png|20px|sub]] text text [[Image:Wiki-logo.png|20px|super]] text text [[Image:Wiki-logo.png|20px|text-top]] text text [[Image:Wiki-logo.png|20px|middle]] text text [[Image:Wiki-logo.png|20px|bottom]] text text [[Image:Wiki-logo.png|20px|text-bottom]]
results in (the text is underlined to show the result more clearly)
Size and Frame
Among different formats, the effect of the size parameter may be different, as shown below.
- When the format is not specified, or only
border
ed, the size can be both reduced and enlarged. - An image with
frame
always ignores the size specification. - The size of an image with
thumb
andframeless
can be reduced, but can not be enlarged beyond the original size of the image.
For how it appears when its size is not specified, see Format section above.
Format | Reduced | Enlarged |
---|---|---|
(not specified) |
[[Image:Wiki logo.png|50px]] |
[[Image:Wiki logo.png|300px]] |
border |
[[Image:Wiki logo.png|border|50px]] |
[[Image:Wiki logo.png|border|300px]] |
frame |
[[Image:Wiki logo.png|frame|50px]] |
[[Image:Wiki logo.png|frame|300px]] |
thumb |
[[Image:Wiki logo.png|thumb|50px]] |
[[Image:Wiki logo.png|thumb|300px]] |
frameless |
[[Image:Wiki logo.png|frameless|50px]] |
[[Image:Wiki logo.png|frameless|300px]] |
Stopping text flow
On occasion it is desirable to stop text from flowing around an image. Depending on the web browser's screen resolution and such, text flow on the right side of an image may cause a section header (for instance, == My Header ==
) to appear to the right of the image, instead of below it, as a user may expect. The text flow can be stopped by placing
before the text that should start after the image.
Links
Link to description page
If you put a colon (:
) before Image:
, the image will not be embedded and the link will lead to the description page of the file.
[[:Image:Wiki-logo.png]] [[:Image:Wiki-logo.png|Wiki Logo]]
results in
Link directly to file
You can use the pseudo-namespace “Media” to link directly to a file, bypassing the description page.
[[Media:Wiki-logo.png]] [[Media:Wiki-logo.png|Wiki Logo]]
results in
List of Files in The Portal Wiki
There are a number of special pages to help you view and manage files which have been uploaded. Go to “Special pages” (in the tools on the left) and then see...
- Gallery of new files - If you just uploaded one, you will see it here.
- File list shows all of the files
- Unused files helps you track down files which might not be needed.
See also
- Help:Image guidelines - Image guidelines for The Portal Wiki
- Category:Images - Main image category, sub categories should be filed under this.