Template:Archaeogloss/doc

The template is used to create links from a word or phrase to corresponding entry in the glossary of archaeology article. It makes proper use of the  HTML element (as documented at the parent meta-template, Template:glossary link). The variant, which does not use that markup (it is reserved for term entries), is usually used only inside the glossary itself, for cross-references to other entries within it, though it can also be used in other articles where the same term is linked twice because of article length (  should only be used once per term per page, as it means "this is the defining instance of this term on this page").

Usage
Syntax: From an article to the glossary: If the text being linked matches the name of (or an anchor present at) the glossary entry, regardless of upper or lower case, you can simply do: It will also handle suffixes like plurals, etc., added onto it:

or in glossary of archaeology itself, or for duplicate links in same article):

This template makes it very simple to add links, in article prose, talk pages, etc., to entries in the glossary of archaeology, a stand-alone glossary list article. It takes one or two parameters, depending on needs, as detailed below.

If term in glossary (or text in article that is a term in glossary ) contains a double quote (") character, it be escaped as   or the second half of tooltip will not show up [Note to maintainers: This should be fixed at Template:Glossary link and Template:Glossary link internal with URL encoding or some other form of detection and escaping.] :     Right:  which gives

Wrong: which gives It is easiest to simply create an anchor in the glossary at that entry with, so we can do. This has already been done for this entry, but keep this in mind when adding any new entries that include double quotes.

Wikitext example:

Result:

The amphora was discovered whilst the trench at the end of the, a source of embarrassment for all involved.

This template also supports this sort of usage, exactly as a regular wikilink would:.

The first parameter is the exact name of the term to be linked to in glossary of cue sports terms (or any alias of it as defined in the glossary with ), and the second parameter is the text string to be wikilinked from in the article.