advertisement

Overview

Text Codes are special formatting instructions that produce output that would be tedious or error-prone to create manually.

Using Text Codes, you can create a link to a person in the middle of other text you are adding. You can also add citations and footnotes without worrying about links, sequential numbering, or other details.

You may use Text Codes in:

For example, if you want to link to a person entry from text you enter on the main page of your site, add a PERSON code in the page's Main Content property, or in a Text User Item.

PERSON Code

You may use the [PERSON:personId] code to create a link to the person indicated by the personId, which must be the ID number of a person in the site. This code will be replaced by an HTML link where clicking the person's name opens the associated person entry.

Example

To create a link to a person entry for person #1, you could add the following text to a Text User Item:

[PERSON:1] had many descendants.

Variation

You may use the [PERSON:personId:linkText] code to create a link to the person. When you include the linkText parameter, that text will be used in the link rather than the person's name.

Example

To create a link to a person entry for person #1 using the text "His father", you could add the following text to a Text User Item:

[PERSON:1:His father] had many siblings.

FOOTNOTE Code

You may use the [FOOTNOTE:text] code to create a footnote. A sequential footnote number will be assigned to the text, and that number will appear in place of the [FOOTNOTE:text] code. The text will appear in a list of citations and footnotes.

Example

To create a footnote "According to local legend", add the following text to a Text User Item:

[FOOTNOTE:According to local legend]

CITE Code

You may use the [CITE:sourceNumber:text] code to create a citation to a source. The sourceNumber must be the ID number of a source. A sequential citation number will be assigned to the text, and that number will appear in place of the [CITE:sourceNumber:text] code. The text will appear in the next list of citations and footnotes.

The sourceNumber parameter must contain only the digits 0 through 9. Any other characters, including spaces, will produce unexpected results. You may reference a source even if it has not been referenced by genealogy records elsewhere in the site.

If you omit the text parameter, the citation will be formatted without the citation detail.

Example

To create a citation to source number 27 and with the detail text "p. 182", add the following text to a Text User Item:

[CITE:27:p. 182]

FOOTNOTE and CITE

The FOOTNOTE and CITE codes are aliases. When using the CITE code, if you omit the source number, it treats it as a FOOTNOTE. So, [CITE:text] and [FOOTNOTE:text] will produce the same footnote output. Also, if you add a source number parameter to a FOOTNOTE, it will produce a citation to that source, so [FOOTNOTE:27:p. 182] will produce the same output as [CITE:27:p. 182].

The citation list inserted via the use of the FOOTNOTE and CITE codes will use the same heading as the Person Entry Citation List item. That string is specified in the Person Entry Strings section under the Edit Strings... command.

On This Page