Difference between revisions of "Examples of useful code"

From the Family Tree Forum Reference Library
m
m
Line 4: Line 4:
 
__TOC__
 
__TOC__
  
===THE CONTENT ON THIS PAGE IS BEING MOVED TO OTHER PAGES===
+
THE CONTENT ON THIS PAGE IS BEING MOVED TO OTHER PAGES===
  
  
 
==Alphabetical Contents Lists==
 
==Alphabetical Contents Lists==
  
1. Each letter has its OWN page:
+
====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]]
 
[[_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:
 
  
 +
====2. Links WITHIN the same page:====
 +
 +
 +
'''N.B. THIS USES THE SECTION HEADINGS SO THAT IT APPEARS IN THE TOC/CONTENTS'''
  
N.B. THIS USES THE SECTION HEADINGS SO IT APPEARS IN THE TOC/CONTENTS
 
  
 
<div align="center"> [[#A|A]] | [[#B|B]] | [[#C|C]] | [[#D|D]] | [[#E|E]] | [[#F|F]] | [[#G|G]] | [[#H|H]] | [[#I|I]] | [[#J|J]] | [[#K|K]] | [[#L|L]] | [[#M|M]] | [[#N|N]] | [[#O|O]] | [[#P|P]] | [[#Q|Q]] | [[#R|R]] | [[#S|S]] | [[#T|T]] | [[#U|U]] | [[#V|V]] | [[#W|W]] | [[#XYZ|XYZ]]</div>
 
<div align="center"> [[#A|A]] | [[#B|B]] | [[#C|C]] | [[#D|D]] | [[#E|E]] | [[#F|F]] | [[#G|G]] | [[#H|H]] | [[#I|I]] | [[#J|J]] | [[#K|K]] | [[#L|L]] | [[#M|M]] | [[#N|N]] | [[#O|O]] | [[#P|P]] | [[#Q|Q]] | [[#R|R]] | [[#S|S]] | [[#T|T]] | [[#U|U]] | [[#V|V]] | [[#W|W]] | [[#XYZ|XYZ]]</div>
Line 23: Line 25:
  
 
'''Example of the code:''' <nowiki>[[#A|A]]</nowiki>
 
'''Example of the code:''' <nowiki>[[#A|A]]</nowiki>
 +
  
 
<nowiki>#A </nowiki> is the name of the section. By putting |after it you can call the link anything you like.
 
<nowiki>#A </nowiki> is the name of the section. By putting |after it you can call the link anything you like.
  
  
If there is '''nothing else''' on the page you can use  <nowiki>____NOTOC__ </nowiki>.  
+
If there is '''nothing else''' on the page you can use  <nowiki>____NOTOC__ </nowiki>.
 +
  
 
This avoids a long vertical list in the contents.
 
This avoids a long vertical list in the contents.
Line 47: Line 51:
  
  
See [[Adding Content to The Wiki ~ Images and Tables 2]] for using hyperlinked pictures.
+
See [[Surname Directory]] for an example of how this code works.
 +
 
 +
 
 +
See [[Adding Content to The Wiki ~ Images and Tables 2]] for using hyperlinked pictures.
  
  

Revision as of 05:14, 5 April 2008

Page being edited by Caroline

THE CONTENT ON THIS PAGE IS BEING MOVED TO OTHER PAGES===


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 THAT 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


Example of the code: [[#A|A]]


#A is the name of the section. By putting |after it you can call the link anything you like.


If there is nothing else on the page you can use ____NOTOC__ .


This avoids a long vertical list in the contents.


N.B. If you do use __NOTOC__ anywhere on the page this overules the __TOC__.


If you can't use __NOTOC__ on a page because it already uses __TOC__ you can do the following:


'''A'''<span id="A"></span> This creates the anchor for the letter A


'''B'''<span id="B"></span> This creates the anchor for the letter B


Then you can use the code [[#A|A]] as above.


See Surname Directory for an example of how this code works.


See Adding Content to The Wiki ~ Images and Tables 2 for using hyperlinked pictures.




Example of colour band for titles

ENGLISH COUNTIES


Help Pages for The Wiki

Adding content


Visual Reference