Difference between revisions of "Examples of useful code"

From the Family Tree Forum Reference Library
Line 133: Line 133:
 
[[image:InitialsC.jpg|75px]]
 
[[image:InitialsC.jpg|75px]]
 
[[image:InitialsD.jpg|75px]]
 
[[image:InitialsD.jpg|75px]]
 +
[[image:InitialsE.jpg|75px]]
 +
[[image:InitialsF.jpg|75px]]
 +
[[image:InitialsG.jpg|75px]]
 +
[[image:InitialsH.jpg|75px]]
 +
[[image:InitialsI.jpg|75px]]
 +
[[image:InitialsJ.jpg|75px]]
 +
[[image:InitialsK.jpg|75px]]
 +
[[image:InitialsL.jpg|75px]]
 +
[[image:InitialsM.jpg|75px]]
 +
[[image:InitialsN.jpg|75px]]
 +
[[image:InitialsO.jpg|75px]]
 +
[[image:InitialsP.jpg|75px]]
 +
[[image:InitialsQ.jpg|75px]]
 +
[[image:InitialsR.jpg|75px]]
 +
[[image:InitialsS.jpg|75px]]
 +
[[image:InitialsT.jpg|75px]]
 +
[[image:InitialsU.jpg|75px]]
 +
[[image:InitialsV.jpg|75px]]
 +
[[image:InitialsW.jpg|75px]]
 +
[[image:InitialsXYZ.jpg|75px]]
  
 
[[image:InitialsA.jpg|75px]]
 
 
http://www.familytreeforum.com/wiki/images/thumb/5/5c/InitialsA.jpg/75px-InitialsA.jpg
 
http://www.familytreeforum.com/wiki/images/thumb/5/5c/InitialsA.jpg/75px-InitialsA.jpg
  

Revision as of 10:55, 13 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 ____NOTOC__ <nowiki>__. This avoids a long vertical list. If you can't use <nowiki>__NOTOC__ you can do the following:

A CREATES THE ANCHOR FOR THE LETTER A

B CREATES THE ANCHOR FOR THE LETTER B

etc.

Code with image for pages under construction

Construction.jpg


Displaying images

One single image

name | alignment | size | thumb or frame | caption



1. You can just put in the image

It will come out full size and aligned to the left with no border or caption.

[[image:name of image.jpg]]

InitialsA.jpg



2. You can choose horizontal alignment - right, left or center

[[image:name of image.jpg|alignment]]

InitialsA.jpg





3. You can choose the size

[[image:name of image.jpg||size]]

Construction.jpg



4. To get a frame round your picture

[[image:name of image.jpg|alignment|size|thumb]]

Construction.jpg














5. To get a frame and have a caption for the picture
Work in progress

[[image:name of image.jpg|alignment|size|thumb|caption]]





Warning - combining more than one picture with or without text can give very unpredictable results.

As you will see from the examples on this page you often need to press enter several times in order to get a sensible page layout!!







More than one image on page



1. Gallery - small thumbnails



2. Clickpic - hyperlinked pictures

To change the size of clickpx - add xxxpx- before the image name - I think

And thumb and it looks as thought you have to actually make the image smaller in adavance ...

InitialsB.jpg InitialsC.jpg InitialsD.jpg InitialsE.jpg InitialsF.jpg InitialsG.jpg InitialsH.jpg InitialsI.jpg InitialsJ.jpg InitialsK.jpg InitialsL.jpg InitialsM.jpg InitialsN.jpg InitialsO.jpg InitialsP.jpg InitialsQ.jpg InitialsR.jpg InitialsS.jpg InitialsT.jpg InitialsU.jpg InitialsV.jpg InitialsW.jpg InitialsXYZ.jpg

75px-InitialsA.jpg

Register fr2.jpg 75px-Register_fr2.jpg

Register_fr2.jpg Certs_fr.jpg WIP2_fr2.jpg



75px-InitialsA.jpg 75px-Register_fr2.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|.


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.


Example of colour band for titles

ENGLISH COUNTIES