Difference between revisions of "Mixing Text and Images"

From the Family Tree Forum Reference Library
m
m
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:Help|Text]]
 
__NOEDITSECTION__
 
__NOEDITSECTION__
[[image:building3.jpg|center|frame|Page being edited by [[User:Caroline|Caroline]]]]  
+
[[image:mixtop.jpg]]
  
 +
{|  width="100%" border="0" cellspacing="5" cellpadding="5"
 +
|-valign="top"
 +
| style="width:250px"| __TOC__
 +
|Adding pictures and text vertically down the page is not a problem, but if you want your text to wrap around one or more pictures, then you need to add special codes to the pictures.
 +
 +
For more information, see '''[[Working With Images]]'''
 +
 +
You need to put the code in for the picture first, then all your text.
 +
 +
The picture will align to the left by default.
  
==Basic code==
+
This method is rather unpredictable, especially if you need the list of Contents (TOC) to show and/or captions underneath either or both of the pictures as this can cause problems with getting the line spacing correct for every viewer.
  
This method is rather unpredictable, especially if you need the list of Contents (TOC) to show and/or captions underneath either or both of the pictures.
+
'''A more controlled layout can be achieved by using tables: [[Working With Tables]]'''
 +
|}
  
 +
==Adding one picture==
  
N.B. If the image has no "built in" border you need to use |''thumb''| not |''frame''| as you cannot cotrol the size of the image with |''frame''|.
+
====Left align====
  
This causes problems with getting the line spacing correct for every viewer.  
+
'''TYPE:''' <nowiki>[[Image:Documents_fr2.jpg|left|150px|]]</nowiki>
  
 +
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.
  
See [[Adding Content to The Wiki ~ Images and Tables]] for explanation of codes for images.
+
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.  
  
  
[[Image:Documents_fr2.jpg|left|150px|]]
+
'''RESULT:'''
[[image:building3.jpg|right|200px|]]
+
 
 +
[[image:basic1.jpg|center]]
  
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.
+
====Right align====
  
 +
'''TYPE:''' <nowiki>[[Image:Documents_fr2.jpg|right|200px|]]</nowiki>
  
==Using tables to control layout on a page==
+
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.
  
This example consists of three columns with four rows in each columns.
+
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.  
  
{|  width="100%" border="0" cellspacing="5" cellpadding="5"
 
|-valign="top"
 
| <div align="center">'''Family History''' </div>
 
| <div align="center">'''Military History''' </div>
 
| <div align="center">'''Learning and Research''' </div>
 
|-valign="top"
 
| <div align="center">[[image:fammenu.jpg]] </div>
 
| <div align="center">[[image:milmenu.jpg]] </div>
 
| <div align="center">[[image:learnmenu.jpg]] </div>
 
|-valign="top"
 
|Direct links to sources and background information for Census records,  Births, marriages &amp; deaths, Wills, Adoption records and Outward passenger  lists. ||Direct links to sources and background information for the British Army,  Royal Navy, Royal Marines, Royal Air Force, WW1 medals, Merchant navy, WW1  soldiers&rsquo; records. ||Direct links to The Catalogue and Documents Online together with very detailed (searchable) lists of what is available at The National Archives in Kew.
 
|-valign="top"
 
|<span class="plainlinks">[http://www.nationalarchives.gov.uk/familyhistory/?homepage=fr-more more family history...]</span> takes you to a detailed explanation about how to begin your research into your family history.||<span class="plainlinks">[http://www.nationalarchives.gov.uk/militaryhistory/?homepage=mh-more more  military history..]</span> takes you to a detailed explanation about how to research military history.
 
|}
 
  
==Help Pages for The Wiki==
+
'''RESULT:'''
 +
 
 +
[[image:basic2.jpg|center]]
  
====Adding content====
 
  
* [[Help:Notes for Users|Help for Users]] being rewritten
+
====Right align with caption====
  
* [[Help:Notes for Editors|Help for Editors]] being rewritten
+
'''TYPE:''' <nowiki>[[Image:Documents_fr2.jpg|right|200px|thumb|Caption]]</nowiki>
  
* [[Authoring|Formatting Text]]
+
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.
  
* [[Style and Presentation in The Wiki]]
+
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.
  
* [[Adding Content to The Wiki ~ New Pages]]
 
  
* [[Adding Content to The Wiki ~ Images and Tables]]
+
[[image:basic3.jpg|center]]
  
* [[Adding Content to The Wiki ~ Images and Tables 2]]
 
  
* [[Adding Content to The Wiki ~ Mixing Text and Images]]
+
'''N.B.''' If the image has no "built in" border you need to use |''thumb''| not |''frame''| as you cannot cotrol the size of the image with |''frame''|. Unless you want a caption, you are better off making a frame on your image before uploading it.
  
  
====Visual Reference====
+
==Two pictures==
  
* [[Navigating the Wiki|Navigating The Wiki]]
+
'''TYPE:''' <nowiki> [[Image:Documents_fr2.jpg|left|200px|thumb|Caption]]</nowiki>
  
* [[Searching the Wiki|Searching The Wiki]]
+
'''TYPE:''' <nowiki> [[image:building3.jpg|right|200px|thumb|Caption]]</nowiki>
  
* [[Help:Hyperlink Code|Coding a Hyperlink for The Wiki]]
+
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.
  
* [[Uploading images to The Wiki]]
+
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.
  
* [[Editing Your User Page]]
 
  
* [[Surname Help|Adding Surnames to The Surname Directory]]
+
[[image:basic4.jpg|center]]
  
* [[County model|Template for County Pages]]
 
  
* [[Examples of useful code|Miscellaneous Code]]
 
  
 +
==Other Help Pages==
  
*[[Main Page]]
+
[[image:minibad.jpg]] '''[[:Category:Help|The Wiki Guide]]'''

Latest revision as of 09:56, 23 April 2008


Mixtop.jpg

Adding pictures and text vertically down the page is not a problem, but if you want your text to wrap around one or more pictures, then you need to add special codes to the pictures.

For more information, see Working With Images

You need to put the code in for the picture first, then all your text.

The picture will align to the left by default.

This method is rather unpredictable, especially if you need the list of Contents (TOC) to show and/or captions underneath either or both of the pictures as this can cause problems with getting the line spacing correct for every viewer.

A more controlled layout can be achieved by using tables: Working With Tables

Adding one picture

Left align

TYPE: [[Image:Documents_fr2.jpg|left|150px|]]

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.


RESULT:

Basic1.jpg


Right align

TYPE: [[Image:Documents_fr2.jpg|right|200px|]]

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.


RESULT:

Basic2.jpg


Right align with caption

TYPE: [[Image:Documents_fr2.jpg|right|200px|thumb|Caption]]

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.


Basic3.jpg


N.B. If the image has no "built in" border you need to use |thumb| not |frame| as you cannot cotrol the size of the image with |frame|. Unless you want a caption, you are better off making a frame on your image before uploading it.


Two pictures

TYPE: [[Image:Documents_fr2.jpg|left|200px|thumb|Caption]]

TYPE: [[image:building3.jpg|right|200px|thumb|Caption]]

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.


Basic4.jpg


Other Help Pages

Minibad.jpg The Wiki Guide