Difference between revisions of "Help:Images"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Licensing and copyrights: Added link to TFW:Licensing images.)
(14 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 
{{Help navbar}}
 
{{Help navbar}}
  
Adding images to Team Fortress 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]].  
+
Adding '''images''' to Team Fortress 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 [[Team Fortress Wiki:Images|Image use policy]].  
  
 
==Uploading images==
 
==Uploading images==
 
# Prepare the file for upload. Make sure the image is cropped to eliminate unecessary space and focused on the image subject.
 
# 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 “{{lcfirst:{{int:toolbox}}}}”, click “'''{{lcfirst:{{int:upload}}}}'''”.
+
# In the sidebar, under “'''{{lcfirst:{{int:toolbox}}}}'''”, click “'''{{lcfirst:{{int:upload}}}}'''”.
 
# Click “'''Browse'''” next to the “'''{{int:sourcefilename}}'''” to locate the file on your computer (the name of the “browse” button depends on your web browser).
 
# Click “'''Browse'''” next to the “'''{{int:sourcefilename}}'''” to locate the file on your computer (the name of the “browse” button depends on your web browser).
 
# Change the “'''{{int:destfilename}}'''” to something descriptive, if necessary.
 
# Change the “'''{{int:destfilename}}'''” to something descriptive, if necessary.
Line 13: Line 13:
  
 
If it is a large file, you may have to wait several seconds for the upload to complete.
 
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 ({{Key|Ctrl}} + {{Key|F5}} on most browsers, see [[w:WP:BYPASS|here]]). Don't revert to an older version or attempt to upload again.
  
 
== Using Images and File Description Pages ==
 
== 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).
+
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 "{{ns:image}}" 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.
 +
 
 +
== Image Categories ==
 +
It can be useful to add categories to your images. This allows users to check if similar images have already been uploaded before.
 +
 
 +
The full syntax for adding categories is:
  
Your file gets its very own “File Description Page” within the {{ns:image}} 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.
+
  [[Category: {category name}]]
 +
The categories may be placed in the image summary during initial file uploading or anytime afterwards. All categories can be found [[Special:Categories|here]]. If you are having trouble deciding which categor(ies) your image belongs, try finding a similar image used in the same context and looking up what categories they use.
  
 
==Licensing and copyrights==
 
==Licensing and copyrights==
 +
{{Main|Team Fortress Wiki:Licensing images}}
 
* Tag all images with the applicable [[:Category:License templates|license template]].
 
* Tag all images with the applicable [[:Category:License templates|license template]].
 
* Images that violate the terms of use of this website or infringe copyright will be subject to deletion.
 
* Images that violate the terms of use of this website or infringe copyright will be subject to deletion.
Line 33: Line 44:
 
* ''{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 writing ''x{height}px''
 
* ''{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 writing ''x{height}px''
 
** ''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, e.g. <code><nowiki>[[</nowiki>Image:Name.jpg|20px|link=Help:Images]]</code> → [[Image:Tf2wiki logo.png|20px|link=Help:Images]].
+
*  ''link={destination}'': Allows to link to an article or URL, e.g. <code><nowiki>[[</nowiki>Image:Name.jpg|20px|link=Help:Images]]</code> → [[Image:Logo.png|20px|link=Help:Images]].
 
** ''link= '': Will display an image without link.
 
** ''link= '': Will display an image without link.
 
** ''Note that ''link'' cannot be used in conjunction with ''thumb'' as thumb is always meant to link to the larger version of the image.  In addition, ''link'' cannot be used with ''frame''.''
 
** ''Note that ''link'' cannot be used in conjunction with ''thumb'' as thumb is always meant to link to the larger version of the image.  In addition, ''link'' cannot be used with ''frame''.''
Line 69: Line 80:
 
|-
 
|-
 
|colspan="3" style="border-top:1px solid #FFE4C4;"|
 
|colspan="3" style="border-top:1px solid #FFE4C4;"|
{{Help:Images/frame|2=link=http://wikipedia.org|ex=external link}}
+
{{Help:Images/frame|2=link=http://teamfortress.com|ex=external link}}
 
|-
 
|-
 
|colspan="3" style="border-top:1px solid #FFE4C4;"|
 
|colspan="3" style="border-top:1px solid #FFE4C4;"|
Line 102: Line 113:
  
 
=== Vertical alignment ===
 
=== Vertical alignment ===
  text text <nowiki>[[</nowiki>Image:Tf2wiki_logo.png|20px]]
+
  text text <nowiki>[[</nowiki>Image:Logo.png|20px]]
  text text <nowiki>[[</nowiki>Image:Tf2wiki_logo.png|20px|baseline]]
+
  text text <nowiki>[[</nowiki>Image:Logo.png|20px|baseline]]
  text text <nowiki>[[</nowiki>Image:Tf2wiki_logo.png|20px|sub]]
+
  text text <nowiki>[[</nowiki>Image:Logo.png|20px|sub]]
  text text <nowiki>[[</nowiki>Image:Tf2wiki_logo.png|20px|super]]
+
  text text <nowiki>[[</nowiki>Image:Logo.png|20px|super]]
  text text <nowiki>[[</nowiki>Image:Tf2wiki_logo.png|20px|text-top]]
+
  text text <nowiki>[[</nowiki>Image:Logo.png|20px|text-top]]
  text text <nowiki>[[</nowiki>Image:Tf2wiki_logo.png|20px|middle]]
+
  text text <nowiki>[[</nowiki>Image:Logo.png|20px|middle]]
  text text <nowiki>[[</nowiki>Image:Tf2wiki_logo.png|20px|bottom]]
+
  text text <nowiki>[[</nowiki>Image:Logo.png|20px|bottom]]
  text text <nowiki>[[</nowiki>Image:Tf2wiki_logo.png|20px|text-bottom]]
+
  text text <nowiki>[[</nowiki>Image:Logo.png|20px|text-bottom]]
  
 
results in (the text is underlined to show the result more clearly)
 
results in (the text is underlined to show the result more clearly)
  
<u>text text [[Image:Tf2wiki_logo.png|20px]]
+
<u>text text [[Image:Logo.png|20px]]
text text [[Image:Tf2wiki_logo.png|20px|baseline]]
+
text text [[Image:Logo.png|20px|baseline]]
text text [[Image:Tf2wiki_logo.png|20px|sub]]
+
text text [[Image:Logo.png|20px|sub]]
text text [[Image:Tf2wiki_logo.png|20px|super]]
+
text text [[Image:Logo.png|20px|super]]
text text [[Image:Tf2wiki_logo.png|20px|text-top]]
+
text text [[Image:Logo.png|20px|text-top]]
text text [[Image:Tf2wiki_logo.png|20px|middle]]
+
text text [[Image:Logo.png|20px|middle]]
text text [[Image:Tf2wiki_logo.png|20px|bottom]]
+
text text [[Image:Logo.png|20px|bottom]]
text text [[Image:Tf2wiki_logo.png|20px|text-bottom]]</u>
+
text text [[Image:Logo.png|20px|text-bottom]]</u>
  
 
== Size and Frame ==
 
== Size and Frame ==
Line 157: Line 168:
 
If you put a colon (<code>:</code>) before <code>Image:</code>, the image will not be embedded and the link will lead to the description page of the file.
 
If you put a colon (<code>:</code>) before <code>Image:</code>, the image will not be embedded and the link will lead to the description page of the file.
  
  <nowiki>[[</nowiki>:Image:Tf2wiki_logo.png]]
+
  <nowiki>[[</nowiki>:Image:Logo.png]]
  <nowiki>[[</nowiki>:Image:Tf2wiki_logo.png|TF2 Wiki Logo]]
+
  <nowiki>[[</nowiki>:Image:Logo.png|TF Wiki Logo]]
  
 
results in
 
results in
  
[[:Image:Tf2wiki_logo.png]]
+
[[:Image:Logo.png]]<br>
[[:Image:Tf2wiki_logo.png|TF2 Wiki Logo]]
+
[[:Image:Logo.png|TF Wiki Logo]]
  
 
=== Link directly to file ===
 
=== Link directly to file ===
 
You can use the pseudo-namespace “{{ns:media}}” to link directly to a file, bypassing the description page.
 
You can use the pseudo-namespace “{{ns:media}}” to link directly to a file, bypassing the description page.
  
  <nowiki>[[</nowiki>{{ns:media}}:Tf2wiki_logo.png]]
+
  <nowiki>[[</nowiki>{{ns:media}}:Logo.png]]
  <nowiki>[[</nowiki>{{ns:media}}:Tf2wiki_logo.png|TF2 Wiki Logo]]
+
  <nowiki>[[</nowiki>{{ns:media}}:Logo.png|TF Wiki Logo]]
  
 
results in
 
results in
  
[[{{ns:media}}:Tf2wiki_logo.png]]
+
[[{{ns:media}}:Logo.png]]<br>
[[{{ns:media}}:Tf2wiki_logo.png|TF2 Wiki Logo]]
+
[[{{ns:media}}:Logo.png|TF Wiki Logo]]
  
== List of Files in TF2 Wiki ==
+
== List of files in Team Fortress 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 195:
  
 
== See also ==
 
== See also ==
*[[TF2 Wiki:Images]] - Image guidelines for TF2 Wiki
+
*[[Team Fortress Wiki:Images]] - Image guidelines for Team Fortress Wiki.
*[[:Category:Images]] - Main image category, sub categories should be filed under this.
+
* [[Help:Taking Screenshots]]
 +
*[[:Category:Images]] - Main image category; subcategories should be filed under this.

Revision as of 08:42, 12 September 2020

Adding images to Team Fortress 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

  1. Prepare the file for upload. Make sure the image is cropped to eliminate unecessary space and focused on the image subject.
  2. In the sidebar, under “tools”, click “upload file”.
  3. 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).
  4. Change the “Destination filename:” to something descriptive, if necessary.
  5. Fill in the “Summary,” if necessary.
  6. Select the appropriate license of the file.
  7. 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.

Image Categories

It can be useful to add categories to your images. This allows users to check if similar images have already been uploaded before.

The full syntax for adding categories is:

 [[Category: {category name}]]

The categories may be placed in the image summary during initial file uploading or anytime afterwards. All categories can be found here. If you are having trouble deciding which categor(ies) your image belongs, try finding a similar image used in the same context and looking up what categories they use.

Licensing and copyrights

Main article: Team Fortress Wiki:Licensing images
  • 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, or frameless: Controls how the image is formatted
  • left, right, center, none: Controls the alignment of the image within a text
  • baseline, 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 writing x{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]]Logo.png.
    • link= : Will display an image without link.
    • Note that link cannot be used in conjunction with thumb as thumb is always meant to link to the larger version of the image. In addition, link cannot be used with frame.
  • 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.

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.

Description You type You get
no alignment specified, or default alignment
... text text text
[[File: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 caption text text text text text text text text text text text text text text text text text text text text text text text

specify alignment as none
... text text text
[[File:Logo.png|none|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

caption

text text text text text text text text text text text text text text text text text text text text text text text

center
... text text text
[[File:Logo.png|center|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

caption

text text text text text text text text text text text text text text text text text text text text text text text

left
... text text text
[[File:Logo.png|left|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

caption

text text text text text text text text text text text text text text text text text text text text text text text

right
... text text text
[[File:Logo.png|right|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

caption

text text text text text text text text text text text text text text text text text text text text text text text

Vertical alignment

text text [[Image:Logo.png|20px]]
text text [[Image:Logo.png|20px|baseline]]
text text [[Image:Logo.png|20px|sub]]
text text [[Image:Logo.png|20px|super]]
text text [[Image:Logo.png|20px|text-top]]
text text [[Image:Logo.png|20px|middle]]
text text [[Image:Logo.png|20px|bottom]]
text text [[Image:Logo.png|20px|text-bottom]]

results in (the text is underlined to show the result more clearly)

text text Logo.png text text Logo.png text text Logo.png text text Logo.png text text Logo.png text text Logo.png text text Logo.png text text Logo.png

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 bordered, the size can be both reduced and enlarged.
  • An image with frame always ignores the size specification.
  • The size of an image with thumb and frameless 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)
[[File:Logo.png|50px]]

Logo.png

[[File:Logo.png|300px]]

Logo.png

border
[[File:Logo.png|border|50px]]

Logo.png

[[File:Logo.png|border|300px]]

Logo.png

frame
[[File:Logo.png|frame|50px]]
Logo.png
[[File:Logo.png|frame|300px]]
Logo.png
thumb
[[File:Logo.png|thumb|50px]]
Logo.png
[[File:Logo.png|thumb|300px]]
Logo.png
frameless
[[File:Logo.png|frameless|50px]]

Logo.png

[[File:Logo.png|frameless|300px]]

Logo.png

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 <br style="clear: both" /> 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:Logo.png]]
[[:Image:Logo.png|TF Wiki Logo]]

results in

Image:Logo.png
TF Wiki Logo

Link directly to file

You can use the pseudo-namespace “Media” to link directly to a file, bypassing the description page.

[[Media:Logo.png]]
[[Media:Logo.png|TF Wiki Logo]]

results in

Media:Logo.png
TF Wiki Logo

List of files in Team Fortress 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...

See also