Template:Lopbn L3 by cores

From Wikipedia, the free encyclopedia


Internals are ugly: some of the many templates it calls, directly or indirectly, are pretty much trying to make up for the inability to use recursion or a straightforward loop to handle the variable number of "cores", while avoiding some repetitive template-coding effort.

Usage via examples:

  1. "Break out Edw... names as a separate page"
    {{Lopbn L3 by cores|Ed|name=no|prefix=no|w}}
    (used on a talk page) generates this markup:
    [[List of people by name: Eda-Edv|Eda-Edv]] | [[List of people by name: Edw|Edw]] | [[List of people by name: Edx-Edz|Edx-Edz]]
    which (pasted onto the appropriate template page, Template:List of people Ed Links in this case) would render as
    Eda-Edv | Edw | Edx-Edz
  2. "Break out both Mer... and Mey... names as separate pages"
    {{Lopbn L3 by cores|Me|name=no|prefix=no|r|y}}
    (used on a talk page) generates this markup:
    [[List of people by name: Mea-Meq|Mea-Meq]] | [[List of people by name: Mer|Mer]] | [[List of people by name: Mes-Mex|Mes-Mex]] | [[List of people by name: Mey|Mey]] | [[List of people by name: Mez|Mez]]
    which (pasted onto the appropriate template page, Template:List of people Me Links in this case) would render as
    Mea-Meq | Mer | Mes-Mex | Mey | Mez

Cases not documented here

  1. If you're scratching your head about how to get "two adjacent ranges", instead of a "core" between every two "ranges", please be patient, or complain to Jerzyt. At least two more parallel templates are planned, one pretty quickly, for such cases.
  2. If you're scratching your head only about something else, a collection of special cases of using this template (changing the "name" and/or "prefix" parameters) can be pretty much inferred by
    1. knowing that this template includes Template:Lopbn L2 links head,
    2. reading the documentation at that page, and
    3. looking at the contents of LoPbN-tree pages that have titles like those targeted by the "head links" discussed in that documentation.

--Jerzyt 21:29, 22 March 2007 (UTC)


new version as of 12:56, 15 March 2007 (UTC), using new head-lks portion and with body lks portion unchanged, and with inc-only & no-inc sections

Fully converted (mostly via what it calls) for use in generating markup on talk page to cut & paste to its accompanying Links page.
--Jerzyt 21:29, 22 March 2007 (UTC)