Informal learning activities/Tmplts

&emsp; The templates described below are for use in coding the items within link lists of name trees. The three main classes of template, separately described, are for the coding of different kinds of item. Other templates are described way below.

Name Tree Items
&emsp; The following tables and their accompanying explanation are mostly separated by the class of item they are designed to encode. Because they were incrementally developed while this learning resource was being developed, they are not as systematically named as they might be.

&emsp;Within the following tables, the enclosing show where the components of the item code are to be used. Thus, if is the code then  stands for ogee while  stands for curve.

&emsp;The enclosing brackets generate the link, so that generates a Wikipedia link to  and displays   to be clicked on. The enclosure works the same way, but the link is to the Wiktionary.

Generic Items
&emsp; The following tables have two columns, where a left entry corresponds closely to the right entry. The idea here is that, because generic items turn out more frequently than specific items, it is useful to provide one template for the initial item of a new second letter in a sequence, and a corresponding template for a following item.

&emsp;Thus the first column of the following tables of this section shows the template for a new second letter, which provides for a new line in the display with a • prefix, while the code in the second column has no • and no new line. That's why the entries in the first column are dropped a little.

&emsp;Sometimes there are very few items with a particular second letter. For such cases the code can be used to put a • prefix in front of a second column code and not cause a line break, providing there is no space between the  and the following code.

Plain double Plain triple Parenthetic Wiktionary

&emsp;Note that the #English is used to get the link straight into the English section of a Wiktionary page. Note also that the use of Wikipedia links is much preferred to the Wiktionary ones.

Specific Items
&emsp;All these items have at least three components and an overall • prefix. One of the components that is in all of these is an adjunct and prefix to the hint and displayed in small letters.

&emsp;The variety of templates springs from the variety of names in the Wikipedia link. To make these links take the user directly to the person or place of the link, the name will often include prefixed titles or disambiguations after a following comma or within parentheses.

Men/Women Items
&emsp; The following table gives the templates for Men and Women and Extra Women & Men items.

&emsp;The main component to be explained here is the adjunctive hint, which conveys an indication of the person's time of life. One or two digits are shown to convey at least the major part of the person's life if not all of it. They give a year with the two low-order digits lopped off, so can be called the hundred. If the person lived from 1723 to 1786 then the adjunct is simply 17. &emsp;If the birth year and the death year are not the same when their last two digits are lopped off, then the hundred displayed as adjunct is that of the longer part of the person's life. A prefix or suffix is then used to indicate the length of the shorter part (this is explained here ).

Place/Building Items
&emsp; The following table gives the templates for Places and Buildings and Extra Buildings & Places items. &emsp; These are similar to the templates of the previous table, but the adjunctive hint in this case is an abbreviation of the country or region where the place or building is. It is also a link to the Wikipedia page for the country or region.

Country Codes
&emsp; The adjunctive codes to be put into the above items are given in the following two tables. The main table is for individual countries or regions, and the other and minor table is for combinations. (The code Mt is used to generate ?? for a reason lost in the mist of time.)

&emsp; Note that each table item has two components, the first and larger gives the code to go into the item as the adjunctive hint, and the second component gives the adjunct as it appears when its item is displayed. For example, displays as.

&emsp; In this last example the adjunctive hint,, is itself an another abbreviation, but if the cursor is brought over onto the adjunctive hint in the list item above then the displayed URL will show the full name.

Combinations &emsp; It may be that you want to add a Buildings and Places item, but a new country code template is needed. However, unless you are confident with coding in Wikimedia, especially in editting pages, it would be best to drop the idea.

&emsp; If you do feel confident, the following brief description should be followed.

&emsp; Pick a name for the country code template, usually one capital letter followed by one or a few lower case letters, and check that the name isn't already in use by looking in this or simply by setting up to edit it and expecting to be told that the name is not in use yet.

&emsp; Look at the code in an example like England by clicking on the Edit tag there. You might even copy the code but please don't alter it. Then go and create the new template.

&emsp; Document the new template by going here (it really is here) and putting your new template in the appropriate place in the table.

&emsp; All these steps should be taken before putting your item into its grove.

Miscellaneous Templates
&emsp; There are several rather minor templates that can be used in coding items. &emsp; These are used to change the presentation of their component (except for Clr). For example,   yields, and is needed to colour the eras of items for people who lived BC. This template really a special case of    which yields. &emsp; Yp is used for going to other pages, but the others are only very occasionally used to make links to Wikipedia or Wiktionary within the parenthetic hint.

&emsp; There are quite a few other templates, mostly used to format the lists of name trees. Anyone wanting to start new tree lists can see their use by looking at the code within existing lists, but they are quite specialised and new templates modelled on these examples would be needed for each new list group.