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 add links in the middle of a sentence, including links to another part of the site or to a person entry. 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.

Anchor Code

You may use the [ANCHOR:anchor-name] code to create an anchor with the given anchor-name at the location in the text where the code appears.

The Anchor Code is the text equivalent of the Anchor User Item.

Example

To create an Anchor with the name "john-smith-immigration", you could add the following text to a Text User Item:

[ANCHOR:john-smith-immigration].

For more information, see the Anchors help page.

You may use the [ALINK:anchor-name:text] code to create a link to the location indicated by the anchor-name, which must be the Anchor Name of an Anchor in the site. This code will be replaced by an HTML link where clicking the text navigates to the location of the Anchor.

The Anchor Link Code is the text equivalent of the Anchor Link User Item.

Example

To create a link to the Anchor with the name "john-smith-immigration", you could add the following text to a Text User Item:

Read the full details of his ordeal in the
[ALINK:john-smith-immigration:Immigration of John Smith].

For more information, see the Anchors help page.

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

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 code. So, [CITE:text] and [FOOTNOTE:text] will produce the same footnote output. Also, if you add a source number parameter to a Footnote code, 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.

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.
On This Page