1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Check it out in the NAWCC Events forum:
    Talk about the upcoming National Meeting
    Preregistration is now closed.
    Visit the site for our New Member Walk In Deal.

Using Images in Articles

The [image] code has been replaced with [file]


The [file]image name|parameters[/file] code is used to insert large images into articles.

The image name is the name of an image article in the image namespace or in any other area you have chosen to store your images. If you are using images in your private blog or story you may want to keep the images in the associated area.

The parameters, which are separated by |, allow you to control the size, position and border of the image and to add a caption. These parameters are:
WidthIn pixels (px)
Alignmentleft, right, center
Displayborder, frame, none
Thumbthumb, thumbnail
CaptionAny other text except one of the strings above
When the alignment is left or right the text in the article following the image is placed beside the image.

When the alignment is center the text in the article following the image is placed below the image.

The caption can contain text formatting codes such as [b] and [center].

No parameters

When there are no parameters, the image is displayed full size and aligned to the left. The image code:

[file]1883 Grade 35.jpg[/file]

produces:



This paragraph, which is immediately after the image code in the article, is placed beside the image. With large images a lot of the article's text might be placed beside the image and it may be necessary to use empty lines both before and after the text so that only the relevant information is placed there.

This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.

This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.

Heading

Even headings may be placed beside images, in which case inserting empty lines to get the heading in the right place can be necessary.

Of course you may intentionally want a heading beside an image.


Left, Center and Right work unambiguously with thumbnails, but may behave strangely without the sizing or thumbnail parameters.

[file]1883 Grade 35.jpg|right[/file]


Is an undecorated image on the right.

[file]1883 Grade 35.jpg|center[/file]


Is an undecorated image in the center.

Thumbnails

Images created in the image namespace should be as large possible. Consequently, they can be too large when placed in an article. The thumb or thumbnail parameter causes them to be scaled down to a more suitable size. The image code:

[file]1883 Grade 35.jpg|thumb[/file]

produces:


Now the image is on the right! Also, it is surrounded by a frame, and clicking on the image or the bottom right symbol will open a window showing the image full size.

Again the text following the image code is placed beside the image.

This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.

This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.

This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.

Alignment

Using the alignment parameter you can force an image to be placed left, right or in the center of the page.

[file]1883 Grade 35.jpg|left|thumb[/file]

produces:



Again the text following the image code is placed beside the image.

This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.

This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.

This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.

This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.



In contrast [file]1883 Grade 35.jpg|center|thumb[/file]

produces:



Centered images are quite different because the following text is placed below the image instead of beside it.

Width

An alternative to using thumbnails is to specify the width of the image in pixels. So

[file]1883 Grade 35.jpg|240px|right[/file]

produces:

Display

Thumbnails are automatically created with a frame, but you can use the display option to put a border or a frame around other images.

For example:

[file]Poljot_Marine_Chronometer_22618_Movement.jpg|450px|right|thumb|Poljot 22618[/file]

produces
Poljot 22618



where there is a plain border around the photograph.



Captions

In principle, captions are straighforward. So

[file]1883 Grade 35.jpg|right|thumb|[b]HC and OF 1883 Grade 35[/b][/file]

produces:


HC and OF 1883 Grade 35



Captions can be long and then they will wrap over 2 or more lines.


This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.

This paragraph is providing some text to fill in the space beside the photograph. However, changing the size of the window will affect how much space the text occupies and alter how it is displayed.







However captions are only displayed when there is a frame around the image; if you leave out the frame the caption parameter is ignored.

So

[file]1883 Grade 35.jpg|240px|right|This is a long caption to show that captions will wrap over several lines if needed.[/file]

produces:










In contrast

[file]1883 Grade 35.jpg|240px|right|thumb|This is a long caption to show that captions will wrap over several lines if needed.[/file]

produces:

This is a long caption to show that captions will wrap over several lines if needed.
This does seem to be working and may be a bug.
The caption will expand the size of the frame if thee is not competing material to use of the excess space and force the caption to fit withing the size of the image. We will repeat this text a few times to ensure it is large enough to impinge on the image space.
The caption will expand the size of the frame if thee is not competing material to use of the excess space and force the caption to fit withing the size of the image. We will repeat this text a few times to ensure it is large enough to impinge on the image space.The caption will expand the size of the frame if thee is not competing material to use of the excess space and force the caption to fit withing the size of the image. We will repeat this text a few times to ensure it is large enough to impinge on the image space.

Side-by-side images


If you do not put in enough text or empty lines between images then they will overlap. The extreme is:

[file]1883 Grade 35.jpg|240px|left|thumb|leftside picture[/file]
rightside picture


which produces:

leftside picture
rightside picture


And the following text appears in the middle between the two images, which is perfectly sensible.

Managing Image Files

There is an editor tool that is available in the Encyclopedia Editor. It is not shown when editing a post in the forums because it requires special processing that is part of the Encyclopedia feature.



The file button can be used to insert an existing file in the Encyclopedia collection. The file is selected by name from the dialog that appears when the button is clicked. You may select a new image from files on your workstation, or you may type the beginning of the name of the existing Encyclopedia file you want to use.

The dialog includes fields for the file parameters to be used by your article, or you may just edit those into the bbCode that is inserted as shown in the bbCode examples.

A potential problems

There may be a few display problems with some browsers.

When uploading a file to create an image, if the source file name contains space characters, they may be replaced with a substitute character like underscore. You may need to edit the image file name after uploading to ensure the name is consistent.
Categories: Category Tutorials

This page has been seen 2,031 times.

    • Created by
      Encyclopedia manager
      on
      Last updated by on
  • Contributors:

Current Discussion: Main discussion

  1. GEORGE A EDWARDS

    GEORGE A EDWARDS New Member

    Apr 15, 2019
    1
    2
    3
    Male
    In the FAQ regarding images it says to follow this parameter:
    .

    How do you know where 1883 Grade 35 image lives on my hard drive?
     
  2. Tom McIntyre

    Tom McIntyre Technical Admin
    Staff Member NAWCC Star Fellow NAWCC Ruby Member Sponsor

    Aug 24, 2000
    81,330
    1,116
    176
    Male
    retired SW dev
    Boston
    Hi and welcome to the NAWCC Message Board.

    Since this question in the Encyclopedia article writing tutorial is your very first post on this site, I will guess that just just want to know how to post a picture and perhaps ask a question about a watch or clock.

    To do that you navigate to one of the forums on watches or clocks and click on the button labeled Post New Thread.

    When you do that the editing window where you can enter your question will have a button below it labeled FROM PC. Clicking that will open your computer's file explorer and you can find an image file or files to select and post. Those will be uploaded and stored temporarily below the editing window. Each picture will have an associated "insert" button that will place a thumbnail of the image at the cursor location in your message.

    If you really want a picture of my 1883 Waltham movements, they are not on your computer, they are on the server in Columbia PA. :)
     
  3. GEORGE A EDWARDS

    GEORGE A EDWARDS New Member

    Apr 15, 2019
    1
    2
    3
    Male
    Ahhh, thanks. I wanted to post on what is it worth forum. There was a caution that it would be better to post elsewhere for your first post. I guess I though Encylopedia would be benign enough to comment. When I was there I tried to post an image. When I saw the I got lost. You made it clear.