Page MenuHomePhabricator

Parenthetical material after page links
Closed, ResolvedPublic


Reported at

William Gibson Patterson (1915-1974), is displaying with duplicated "(1915-1974)" on his own page as a sibling and on his father's page as a child. As we are almost certain to have parenthetical data as part of page names, as Wikipedia and other sites do, this shouldn't continue.

Event Timeline

Is there a general name for this sort of metadata? I'm thinking that it is basically what is called 'coverage' in archival terms:

The spatial or temporal topic of the resource, the spatial applicability of the resource, or the jurisdiction under which the resource is relevant.

Spatial topic and spatial applicability may be a named place or a location specified by its geographic coordinates. Temporal topic may be a named period, date, or date range. A jurisdiction may be a named administrative entity or a geographic place to which the resource applies. Recommended best practice is to use a controlled vocabulary such as the Thesaurus of Geographic Names [TGN]. Where appropriate, named places or time periods can be used in preference to numeric identifiers such as sets of coordinates or date ranges.

So I'm wondering whether we could, instead of having {{#genealogy:person|birth date=xxx|death date=yyy}} we could pull the coverage string from a definition elsewhere (e.g. add support for it to the Add HTML Meta and Title or WikiSEO extensions) and add it after the person links.

In fact, this could be done in [[Template:Person/list-item]], e.g.:

* {{{link}}} ({{#wikiseo:get|term=coverage|page={{{title}}}}})

Along with whatever else a wiki wanted to add in there (e.g. photo, long description, gender).

And of course, if wikis decide on a page nomenclature that contains coverage info in the page titles in parentheses, then it could just be left out of the person-list template all together.

Perhaps the proposed {{SHORTDESC:}} magic word could be a better solution to this? See T184000: Magic word on English WP to override display of Wikidata short description

Not that we'd be looking to display Wikidata descriptions, because there isn't any way to associate 3rd party wiki pages to Wikidata items, but the local definition of the short description would be very useful.

Change 423823 had a related patch set uploaded (by Samwilson; owner: Samwilson):
[mediawiki/extensions/Genealogy@master] Add descriptions

Change 423823 merged by jenkins-bot:
[mediawiki/extensions/Genealogy@master] Add descriptions

Samwilson claimed this task.

The description feature is working now.