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
5475144
5475143
5475142
5475141
5475140
5475139
5425726
5425724
5425721
5425720
5425718
5425713
5425712
5425711
5425710
5425708
5425707
5425706
5425705
5425704
5425702
5425701
5425700
5425699
5425698
5425697
5425696
5425694
5425692
5425691
5425690
5425689
5425688
5425687
5425686
5425685
5425684
5425683
5425682
5425681
5425680
5425679
5425678
5425677
5425676
5425675
5425673
5425671
5425669
5425668


<bsubjectgallery subject=2425/> - Gallery for Kudzu
5483451
5483452
5483453
5483454
5483455
5483456
5483457
5483458
5483459
5483460
5483461
5483462
5483463
5483464
5483465
5483466
5483467
5483468
5483469
5483470
5483471
5483472
5483473
5483474
5483475
5483476
5483477
5483478
5483479
5483480
5483481
5483482
5483483
5483484
5483485
5483486
5483487
5483488
5483489
5483490
5483491
5483492
5483493
5483494
5483495
5483496
5483497
5483498
5483499
5483500