Difference between revisions of "Examples of useful code"

From the Family Tree Forum Reference Library
Line 28: Line 28:
 
====One single image====
 
====One single image====
  
 +
[[image:name of image.jpg]]
  
  
 +
 +
[[image:name of image.jpg|size|alignment]] right, left or center - it will default to left.
 +
 +
[[image:name of image.jpg|size|alignment|thumb]] thumbnail
 +
 +
[[image:name of image.jpg|size|alignment|thumb|caption]] thumbnail with caption
 +
 +
[[image:name of image.jpg|size|alignment|frame|caption]] image with frame and caption
  
 
====More than one image on page====
 
====More than one image on page====

Revision as of 12:29, 12 May 2007

CLICK ON [Edit] to see the code.


Alphabetical Contents Lists

1. Each letter has its OWN page:

_A |_B |_C |_D |_E |_F |_G |_H |_I |_J |_K |_L |_M |_N |_O |_P |_Q |_R |_S |_T |_U |_V |_W |_XYZ

2. Links WITHIN the same page:

N.B. THIS USES THE SECTION HEADINGS SO IT APPEARS IN THE TOC/CONTENTS

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | XYZ

If there is nothing else on the page you can use . This avoids a long vertical list.

If you can't use you can do the following:

A CREATES THE ANCHOR FOR THE LETTER A

B CREATES THE ANCHOR FOR THE LETTER B

etc.

Displaying images

One single image

File:Name of image.jpg


alignment right, left or center - it will default to left.

thumbnail

thumbnail with caption

image with frame and caption

More than one image on page

1. Gallery - small thumbnails.



2. Clickpic - hyperlinked pictures

Register_fr2.jpg Certs_fr.jpg WIP2_fr2.jpg



3. Picture on the left, some text and picture on the right.

N.B. If the image has no "built in" border you need to use |thumb not |frame before the size.

Documents fr2.jpg
Construction.jpg

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec in enim. Aliquam erat volutpat. Maecenas id nibh ut turpis lobortis commodo. Phasellus sed neque. Proin fringilla euismod libero. Etiam vel lectus. Aliquam dui. Curabitur venenatis molestie neque. Integer mi dolor, gravida at, accumsan eget, fringilla eget, arcu. Suspendisse euismod. Nam et lorem accumsan magna venenatis pellentesque. In et ante. Etiam magna. Cras rutrum mi quis tellus.

Sed mi eros, lacinia mattis, gravida vel, placerat posuere, lacus. Duis accumsan tincidunt sapien. Morbi sed velit. Etiam quis orci. Donec at velit sed lorem elementum feugiat. Curabitur ut ligula. Quisque in eros. Morbi sed enim id sapien tristique fringilla. Nunc ligula augue, pellentesque ac, nonummy id, semper eget, ante. Sed mi eros, lacinia mattis, gravida vel, placerat posuere, lacus. Duis accumsan tincidunt sapien. Morbi sed velit. Etiam quis orci. Donec at velit sed lorem elementum feugiat. Curabitur ut ligula. Quisque in eros. Morbi sed enim id sapien tristique fringilla. Nunc ligula augue, pellentesque ac, nonummy id, semper eget, ante.