Help:Images

From Bugwoodwiki

Author: Bugwood Network Staff

Adding images from BugwoodIDS

This command is a custom extension of MediaWiki that will talk to our image database and retrieve the image and the image citation and display it at the size you indicate. The full command to insert an image for BugwoodIDS is:

<bimage>IMAGE NUMBER|SIZE|ALIGNMENT|CAPTION</bimage>

Pipes (vertical lines) are used to seperate the options when they are used. The options are:

IMAGE NUMBER
This is the 7-digit number given to the image in BugwoodIDS. It is on the image tag in the lower-right corner as well as on the image detail page, search pages, adn anywhere else you find the image.
SIZE
Your choices for this are S, M, or L. Intuitavely, these stand for Small, Medium, and Large. The Small image is 192x128, the Medium is 384x256, and the Large is 768x512. When nothing is entered, the default is S.
ALIGNMENT
This is the horizontal alignment of the image. The choices are right or left. The default is right.
CAPTION
This is whatever text you would like to be displayed below the image. The image citation is automatically displayed for each image. The caption text you enter will appear below the image but above the image citation.

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.

Examples of images inserted from BugwoodIDS

The minimum WikiText you can enter is:
<bimage>1241418</bimage>
1241418
Here are some other examples:
<bimage>5292058|left</bimage>
5292058
<bimage>5342042|m|right|The flower of a cucumber plant</bimage>
5342042
<bimage>5304019|Left|L|The Colorado tarantula is a fierce hunting machine!</bimage>
5304019

Adding logos, personal images, and other images 'NOT' in BugwoodIDS

Adding images that are uploaded into the BugwoodWiki but are NOT a part of the Bugwood Image Database has not changed from the way MediaWiki usually handles images. The full syntax for displaying an image is:

[[Image:IMAGENAME|ALIGNMENT|WIDTH|FORMAT|CAPTION]]

Pipes (vertical lines) are used to seperate the options when they are used. The options are:

IMAGENAME
The image name with extension (.jpg, .png, .gif)
ALIGNMENT
This is the horizontal alignment of the image. The choices are right, left or center. The default is left.
WIDTH
Resizes the image to the given width in pixels. It is entered as {width}px. The default is the original image size.
FORMAT
Controls how the image is formatted. A frame or thumb is required to show a caption. Options are thumb and frame. Thumb will show a smaller version of the image and set the alignment to right. Frame just adds a box around the image. The default is no frame or border.
CAPTION
This is whatever text you would like to be displayed below the image.

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.

Examples of images added that are not in BugwoodIDS

The minimum WikiText you can enter is:
[[Image:douce.jpg]]
Here are some other examples:
[[Image:LaForest.jpg|thumb|Joe out on a limb]]
Joe out on a limb
[[Image:chuck.jpg|frame|center|200px|This is our IT specialist]]
This is our IT specialist

Adding a gallery of images not in BugwoodIDS

Image galleries have fewer options to select. The command to show a gallery of images is:


<gallery>
Image:IMAGE1|CAPTION
Image:IMAGE2|CAPTION
</gallery>

Example of a non-BugwoodIDS image gallery

This section of WikiText...


<gallery>
Image:moorhead.jpg|Dr. Moorhead
Image:Dangerous-Exotic-Introducti.jpg|Information and sample flow for exotic pests
Image:douce.jpg|Dr. Douce
Image:chuck.jpg|This is our IT specialist
Image:LaForest.jpg|IPM and Forest Health Specialist
</gallery>

...gives the following gallery.

Adding a gallery of images can be quite useful in illustrating a species, a concept, or to give a clearer idea of the subject being discussed. Our image galleries fall into two groups:

  1. Images hand selected by a user on any topic. (See Image Collections for details)
  2. Images selected by the Bugwood Network Staff to represent a species

Adding a gallery of user selected images

<bgallery collection=####/>

...where #### is the number of the collection. The collection number is only available to the user that created the collection unless they share it.

Adding a gallery of representative images selected for a particular species

There are 2 ways to call the gallery of images that Bugwood has selected.

Using the scientific name

<bsubjectgallery sciname='XXXX'/>

...where XXXX is the scientific name for the organism you want. The single quotes around the name are required.

Using the Bugwood Subject ID

<bsubjectgallery subject=####/>

...where #### is the subject number. The steps for finding the subject number are:

  1. Go to look-up tool for Subjects with Image Collections. It is Flash based so please be patient as it loads.
  2. Use the drop-down menu at the top to select "Name", "Genus", "Species", or "Variety" based on what you'd like to look the subject up by.
  3. Start typing in the blank and the table will start to sort.
  4. When you find what you are looking for copy the ID (or Valid ID if that exists).
  5. Copy the Subject number (####) and use it. If you notice that there are not many images for a subject and you have some to contribute, please contact the Bugwood Network Staff.

Examples

<bgallery collection=1864/> - User selected images for CAPS Calendar
0002111
0581047
0581048
0949056
1673046
1929072
2634017
2652044
2652079
2652080
3047055
3225082
3943030
4212034


<bsubjectgallery sciname='Megacopta cribraria'/> - Gallery for bean plataspid
5407719
5407720
5407721
5407722
5407723
5407724
5407725
5407726
5407727
5407728
5407729
5407730
5407731
5407732
5407733
5407734
5407735
5407736
5407737
5407738
5407739
5407740
5407741
5407742
5407743
5407744
5407745
5407746
5407747
5407748
5407749
5407750
5407751
5407752
5407753
5407754
5407755
5407756
5407757
5407758
5407759
5407760
5407761
5407762
5425633
5425634
5425635
5425636
5425637
5425638


<bsubjectgallery subject=2425/> - Gallery for Kudzu
0001071
0002155
0002156
0016123
0016125
0016126
0016127
0016128
0016129
0016246
0016247
0016248
0016249
0016250
0016251
0016252
0016253
0016254
0016255
0016256
0016257
0016258
0016260
0016261
0016262
0016263
0016265
0016266
0016267
0016268
0016269
0016302
0364060
0581050
0581051
0581052
0581053
0581054
1116098
1116100
1120421
1120422
1120423
1120424
1148150
1157116
1157117
1162001
1162002
1162003