Template:Lopbn L2 links head

From Wikipedia, the free encyclopedia

The purpose of this page, Template:Lopbn L2 links head, concerns the infrastructure for the LoPbN tree, specifically supporting the creation of pages with titles beginning with

Template:List of people

and ending with

Links

(All such pages are normally listed on Template:List of people by name exhaustive page-index (sectioned) and (same contents but different format) Template:List of people by name exhaustive page-index (unsectioned).) This page is not included on any such Links page, but rather on such a page's corresponding "Template talk"-namespace page, where its rendering contributes to the markup there that is intended for copy-and-pasting onto the Links page itself.

This page's purpose is two-fold:

  1. For many Links pages on whose talk page it is included, it provides for "head" links (see the 3 paragraphs following "Head vs. Body links" below) needed on that Links page. (For the exceptions -- pages with no head links -- it adds no links or text to the rendered page.)
  2. With respect to many Links pages, an inclusion of it on the talk page (also or instead) provides markup that may be important, after small modifications, in creating the next revision of the talk page and in turn the Links page.

Head vs. Body links
An LoPbN Links page consists, beyond light formatting, of two to 28 links, each to a child of an "index-only" page of the LoPbN tree. (These index-only pages can also be described as the parent nodes of the LoPbN tree other than the root page (List of people by name), or as the child nodes that are also parents within the tree.)

The body links of a Links page are one to 26 links to pages whose titles consist of "List of people by name: " followed by either

  • a string of letters and spaces (e.g. "List of people by name: Thom"), or
  • a pair of strings of letters and spaces, differing from each other only at the last letters (e.g. a child of the tree page just mentioned, "List of people by name: Thomb-Thomz").

Without going into quite so much detail, a Links page's head links likewise begin with "List of people by name: ", and each one's title uses at least one of the words "name" or "prefix" (after the usual phrase "by Name: "). They are zero to two in number; where one appears, it is needed, but collectively they are far less prominent than the body links.

Parameters:

These specs are simplified by being stated in terms of a specific hypothetical case, namely the arg-1 string Xyz, the template Template: List of people Xyz Links, and the page Template talk: List of people Xyz Links.
  • arg 1: a string, typically the first letter or few letters that will be common to the names in all the entries on pages of a subtree of LoPbN; this string will always be what goes between "List of people " and " Links" in the title of the template-talk page that renders this template's included content, and in the title of its accompanying template page, onto which the template-call's rendering is to be pasted.
  • name=yes causes presence of a lk to either List of people by name: name Xyz or List of people by name: name or prefix Xyz
  • prefix=yes causes presence of a lk to either List of people by name: prefix Xyz or List of people by name: name or prefix Xyz
  • joint=no has no effect, unless name=yes and prefix=yes are both in the call, in which case the List of people by name: name or prefix Xyz will be present and neither List of people by name: name Xyz nor List of people by name: name or prefix Xyz will be present

Thus the template talk page has in its rendering the markup for zero to two of these lks. This markup provides piping for rendering the lk(s) with (in the order each is first mentioned above) "Name Xyz", "Name/prefix Xyz", or "Prefix Xyz" respectively.