v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Screenshot"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(rules specify PNG, add macos steps, many formatting changes)
Line 1: Line 1:
''This works for any screenshot you want to save or post on a wiki, forum or elsewhere.''
+
These instructions explain how to create a '''screenshot''' to save or post on a wiki, forum, or elsewhere.
  
===Take the screenshot===
+
== Capturing the image  ==
 +
# Use one of the two standard graphics displays ([[Character table|ASCII]] or the included tileset), '''not''' a [[Tileset repository|custom graphics tileset]] that most players may not recognize, as required by this wiki's [[rules]].
 +
# Make the screen look how you want it.
 +
The next step depends on your operating system.
  
*1) Make the screen look how you want it. The screenshot will be the whole screen (though you can edit if you want.)
+
=== Windows ===
 +
# Make sure your Dwarf Fortress window has the focus.
 +
# Press {{k|Alt}}-{{k|Print Screen}} to capture the active window. The image will be placed in your operating system clipboard.
 +
#* If you want to capture the whole screen, press {{k|Print Screen}} instead.
 +
# Open your image editor (usually MSPaint).
 +
# Press {{k|Ctrl}}-{{k|v}} to paste the saved screenshot into paint.
 +
#* You now have a bitmap of the screenshot.  You can edit this as with any bitmap in paint. (Handy for circling key areas, adding arrows, blacking out personal/private info, cropping, whatever.)
 +
# Under <File>, select <Save As...>, and save your image as a PNG. (The wiki [[rules]] specify PNG rather than another format like JPEG.)
  
:Note - The standards of this wiki ask that you use one of the two standard graphics displays (the ascii or the included tileset), ''not'' a custom graphics tileset that most players may not recognize.
+
=== MacOS ===
 +
# Press {{k|Command}}-{{k|Shift}}-{{k|4}}; the mouse cursor will turn into a crosshairs.
 +
# Press {{k|Space}} to turn the mouse cursor into a camera icon.
 +
# Click on the window you want to capture.
 +
#* A new PNG file appears on your desktop, which you can rename and upload.
  
 +
== Adding an image to the wiki ==
  
*2) Hit the {{k|Print Screen}} button.
+
=== Upload to a new File: page ===
 +
First, your image needs to be uploaded to a simple wiki page that exists solely to contain your image.
 +
# Give the file on your PC a unique and meaninful name (as per the [[rules]]). "7dwarves" or "screenshot" probably aren't good choices!
 +
# In the lower left sidebar of any wiki page, in the lower section marked "toolbox", click '''[[Special:Upload|Upload file]]'''.
 +
# On the file upload page, use the '''Choose file''' button to select your file.
 +
# It is considerate to fill in the '''Summary''' field with either a short description or the same text you might include under the image in your article.
 +
# Click the '''Upload file''' button. This creates a new page in the wiki containing your file, using your file name.
  
Okay, now...
+
=== Add to an article ===
 +
Once your image is uploaded to a File: page, you can edit other pages to add it to them.
 +
# Copy the image's name, which is the page name minus the first word, "File:".
 +
#* If the image is on page [[:File:Copper_strike.PNG]], you want "Copper_strike.PNG".
 +
# Go to the article where you want the image to appear and click '''edit'''.
 +
# Add the name in double brackets, the same as creating any wiki active link, with the word "Image:", at the front of the image file name. Using just the file name gives the image as it was saved, so adding '''<nowiki>[[Image:Copper_strike.PNG]]</nowiki>''' to a wiki page gives this: <br/> [[Image:Copper_strike.PNG]] <br/> That is the actual file, actual size.
 +
# Click '''Show preview''' to make sure the layout <!--, sizing, caption and overall presentation are-->is to your satisfaction.
 +
# Click '''Save''' to commit your changes.
  
===Turn into jpeg===
+
=== Advanced layout ===
 +
You can modify the appearance of your image in the wiki by adding [http://www.mediawiki.org/wiki/Help:Images additional options] after the file name, with pipes ( | ) between them.  The most useful options are:
 +
; Thumbnail : "thumb" reduces the file size, making it fit in a wiki article better.  Clicking the thumbnail image takes the reader to the actual file page with the full-size image.
 +
; Size : You can specify the size of the thumbnail by designating the maximum width in pixels, such as "150px" or "300px".
 +
; Alignment : "left" or "right" of text (default is centered above/below.)
 +
; Caption : adds comments below the image.  All wiki editing tags can be used.  No tag is needed, just a final pipe ( | ) and the text.
 +
[[Image:Copper_strike.PNG|thumb|right|200px|''(click to enlarge)''<br />
 +
'''Copper Strike'''<br />This dwarf has struck copper.]]
 +
For example, if we type this:
 +
<nowiki>[[Image:Copper_strike.PNG|thumb|right|200px|''(click to enlarge)''<br />
 +
'''Copper Strike'''<br />This dwarf has struck copper.]]</nowiki>
 +
We get an image that is (as shown to the right):
 +
* Smaller (thumbnailed)
 +
* Aligned right
 +
* Sized to 200 pixels wide
 +
* Labeled with text below it
  
 
+
== Posting an image in a forum ==
*3) Open Paint (or the equivalent)
+
To post an image in a forum on the web takes a little more work, but the steps are parallel to the above.
 
+
# Create the file as above.
 
+
# You have to '''host''' it somewhere.  There are many good free web-hosts available; do a web search for "image hosting" and you'll find all you need (and will probably recognize a few).  Follow the instructions to upload the image - should be generally similar to the '''Upload file''' steps for the wiki, above.
*4) Hit {{k|ctl}} + {{k|v}} - yes, you are "pasting" the saved screenshot into paint.
+
#:''(If you find an image on the web, it's possible to right-click and, in "properties", get the address there and use that as the hosted image.  However, this is unreliable - if that image gets removed or that page changed, you can lose your link, and some sites prevent such linking.  Uploading your own copy of an image to your own hosting site account is the only reliable method.)
 
+
#* Note - Do '''not''' use this wiki to host images for linking on the forum or web - that is against the Terms of Use of most wikis, including this one.
You now have a bitmap of the screenshot.  You can edit this as with any bitmap in paint.  (Handy for circling key areas, adding arrows, blacking out personal/private info, cropping, whatever.)
+
# Once you have it hosted, copy the name - it will usually be something like  
 
+
#: <nowiki>http://i696.freeimagehostingsite.com/albums/blah/blah/blah/myimage.jpg</nowiki>
 
+
# Each forum or bulletin board uses slightly different code; the [http://www.bay12games.com/forum/index.php DF/Bay12 games forum] uses:
*5) Under <File>, select <Save As>... a jpg or jpeg.  (Or a .png/ping file - similar, and slightly smaller size.)
+
#: '''<nowiki>[img]http://i696.freeimagehostingsite.com/albums/blah/blah/blah/myimage.jpg[/img]</nowiki>'''
 
+
#* ''(To see the code that a different forum uses, find a post with an image in it and click '''quote''' - you should be able to see the coding that precedes and follows the file name (the <nowiki>"http://...etc etc"</nowiki>).  You can copy that, paste it into your post, and then replace that file name with your hosted image file name - done.)
===Linking to a page/post===
+
# Use '''preview''' to make sure it looks right, and then post.
Then, it depends whether your adding the pic to this wiki or a forum post...
 
 
 
====in this wiki====
 
 
 
*6w) In the lower left sidebar of any wiki page, in the lower section marked "toolbox", there's a link - "Upload file" - this will open a browser where you select your file and (oddly enough) upload it to the wiki.  This creates a new page in the wiki with your file, and your file name. (Consider giving the file on your PC a unique and meaninful name.  "7dwarves" or "screenshot" probably aren't good choices!)
 
 
 
''(It would be considerate to include some information on that page about the image, either a short description or the same text you might include under the image in your article.)''
 
 
 
 
 
*7w) Copy that image's name, which is the page name minus the first word, "file:".  So, if the image is on page "File:Veins revealed.PNG", you want "Veins revealed.PNG".
 
 
 
 
 
*8w) Add that name in double brackets, the same as creating any wiki active link, with the word "Image:", at the front of the image file name.
 
 
 
Using just the file name gives the image as it was saved, so adding <nowiki>[[Image:Copper_strike.PNG]]</nowiki> to a wiki page gives this:
 
 
 
[[Image:Copper_strike.PNG]]
 
 
 
That is the actual file, actual size.  You can modify that in the wiki using rules found here: [[http://www.mediawiki.org/wiki/Help:Images images]]
 
 
 
The various tags are added after the file, with pipes ( | ) between them.  The most useful tags are...
 
 
 
:* thumbnail - "thumb" reduces the file size, making it fit in a wiki article better.  Clicking the thumbnail image takes the reader to the actual file page with the full-size image.
 
::* sizing - You can specify the size of the thumbnail by designating the max number of pixels, such as "150px" or "300px".
 
:* align - "left" or "right" of text (default is centered above/below.)
 
:* caption - adds comments below the image.  All wiki editing tags can be used.  No tag is needed, just a final pipe ( | ) and the text.
 
[[Image:Copper_strike.PNG|thumb|right|200px|''(click to enlarge)''<br />'''Copper Strike'''<br />This dwarf has struck copper.]]
 
So, by improving our link to: <br /><nowiki>[[Image:Copper_strike.PNG|thumb|right|200px|''(click to enlarge)''<br />'''Copper Strike'''<br />This dwarf has struck copper.]]</nowiki>,<br /> we get an image that is...
 
:* smaller (thumbnailed)
 
:* aligned right
 
:* sized to 200 pixels
 
:* and with that text below it... ->
 
 
 
 
 
*9w) Preview the page to make sure the layout, sizing, caption and overall presentation are to your satisfaction... then edit or Save, and you're done.
 
 
 
====in the forum====
 
To post a pic in a forum on the web takes a little more work, but the steps are parallel to the above. Get the jpg/.png as above, saved on your computer, but then...
 
 
 
*6f) You have to "Host" it somewhere.  There are many good free web-hosts available; do a web-search for "image hosting" and you'll find all you need (and will probably recognize a few).  Follow the instructions to upload the image - should be generally similar to step 6w for the wiki, above.
 
 
 
:''(If you find an image on the web, it's possible to right-click and, in "properties", get the address there and use that as the hosted image.  However, this is unreliable - if that image gets removed or that page changed, you can lose your link, and some sites prevent such linking.  Uploading your own copy of an image to your own hosting site account is the only reliable method.)
 
 
 
 
 
*7f) once you have it hosted, copy the name - it will usually be something like  
 
 
 
::<nowiki>http://i696.freeimagehostingsite.com/albums/blah/blah/blah/myimage.jpg</nowiki>
 
 
 
 
 
*8f) Each forum or bulletin board uses slightly different code, but it should look something like...
 
 
 
::[img]<nowiki>http://i696.freeimagehostingsite.com/albums/blah/blah/blah/myimage.jpg</nowiki>[/img]
 
:::(This is the code that the [[http://www.bay12games.com/forum/index.php DF/Bay12 games forum]] uses.)
 
 
 
:''(To see the code that a different forum uses, find a post with an image in it.  Then just hit "quote" - you should be able to see the coding that precedes and follows the file name (the <nowiki>"http://...etc etc"</nowiki>).  You can copy that, paste it into your post, and then replace that file name with your hosted image file name - done.)
 
 
 
Note - Do '''not''' use this wiki to host images for linking on the forum or web - that is against the Terms of Use of most wikis, including this one.
 
 
 
 
 
*9f) Again, use "preview" to make sure it looks right, and the post.
 

Revision as of 00:10, 8 November 2009

These instructions explain how to create a screenshot to save or post on a wiki, forum, or elsewhere.

Capturing the image

  1. Use one of the two standard graphics displays (ASCII or the included tileset), not a custom graphics tileset that most players may not recognize, as required by this wiki's rules.
  2. Make the screen look how you want it.

The next step depends on your operating system.

Windows

  1. Make sure your Dwarf Fortress window has the focus.
  2. Press Alt-Print Screen to capture the active window. The image will be placed in your operating system clipboard.
    • If you want to capture the whole screen, press Print Screen instead.
  3. Open your image editor (usually MSPaint).
  4. Press Ctrl-v to paste the saved screenshot into paint.
    • You now have a bitmap of the screenshot. You can edit this as with any bitmap in paint. (Handy for circling key areas, adding arrows, blacking out personal/private info, cropping, whatever.)
  5. Under <File>, select <Save As...>, and save your image as a PNG. (The wiki rules specify PNG rather than another format like JPEG.)

MacOS

  1. Press Command-Shift-4; the mouse cursor will turn into a crosshairs.
  2. Press Space to turn the mouse cursor into a camera icon.
  3. Click on the window you want to capture.
    • A new PNG file appears on your desktop, which you can rename and upload.

Adding an image to the wiki

Upload to a new File: page

First, your image needs to be uploaded to a simple wiki page that exists solely to contain your image.

  1. Give the file on your PC a unique and meaninful name (as per the rules). "7dwarves" or "screenshot" probably aren't good choices!
  2. In the lower left sidebar of any wiki page, in the lower section marked "toolbox", click Upload file.
  3. On the file upload page, use the Choose file button to select your file.
  4. It is considerate to fill in the Summary field with either a short description or the same text you might include under the image in your article.
  5. Click the Upload file button. This creates a new page in the wiki containing your file, using your file name.

Add to an article

Once your image is uploaded to a File: page, you can edit other pages to add it to them.

  1. Copy the image's name, which is the page name minus the first word, "File:".
  2. Go to the article where you want the image to appear and click edit.
  3. Add the name in double brackets, the same as creating any wiki active link, with the word "Image:", at the front of the image file name. Using just the file name gives the image as it was saved, so adding [[Image:Copper_strike.PNG]] to a wiki page gives this:
    Copper strike.PNG
    That is the actual file, actual size.
  4. Click Show preview to make sure the layout is to your satisfaction.
  5. Click Save to commit your changes.

Advanced layout

You can modify the appearance of your image in the wiki by adding additional options after the file name, with pipes ( | ) between them. The most useful options are:

Thumbnail
"thumb" reduces the file size, making it fit in a wiki article better. Clicking the thumbnail image takes the reader to the actual file page with the full-size image.
Size
You can specify the size of the thumbnail by designating the maximum width in pixels, such as "150px" or "300px".
Alignment
"left" or "right" of text (default is centered above/below.)
Caption
adds comments below the image. All wiki editing tags can be used. No tag is needed, just a final pipe ( | ) and the text.
(click to enlarge)
Copper Strike
This dwarf has struck copper.

For example, if we type this:

[[Image:Copper_strike.PNG|thumb|right|200px|''(click to enlarge)''<br />
'''Copper Strike'''<br />This dwarf has struck copper.]]

We get an image that is (as shown to the right):

  • Smaller (thumbnailed)
  • Aligned right
  • Sized to 200 pixels wide
  • Labeled with text below it

Posting an image in a forum

To post an image in a forum on the web takes a little more work, but the steps are parallel to the above.

  1. Create the file as above.
  2. You have to host it somewhere. There are many good free web-hosts available; do a web search for "image hosting" and you'll find all you need (and will probably recognize a few). Follow the instructions to upload the image - should be generally similar to the Upload file steps for the wiki, above.
    (If you find an image on the web, it's possible to right-click and, in "properties", get the address there and use that as the hosted image. However, this is unreliable - if that image gets removed or that page changed, you can lose your link, and some sites prevent such linking. Uploading your own copy of an image to your own hosting site account is the only reliable method.)
    • Note - Do not use this wiki to host images for linking on the forum or web - that is against the Terms of Use of most wikis, including this one.
  3. Once you have it hosted, copy the name - it will usually be something like
    http://i696.freeimagehostingsite.com/albums/blah/blah/blah/myimage.jpg
  4. Each forum or bulletin board uses slightly different code; the DF/Bay12 games forum uses:
    [img]http://i696.freeimagehostingsite.com/albums/blah/blah/blah/myimage.jpg[/img]
    • (To see the code that a different forum uses, find a post with an image in it and click quote - you should be able to see the coding that precedes and follows the file name (the "http://...etc etc"). You can copy that, paste it into your post, and then replace that file name with your hosted image file name - done.)
  5. Use preview to make sure it looks right, and then post.