Page MenuHomePhabricator

Output ignored citation template parameters
Open, Needs TriagePublic

Description

To extract citation metadata from citation templates in Wikipedia articles, we rely on a collaboratively maintained list of citation templates indicating which parameters map to each of our basic citation metadata fields.

It has been noticed that in some cases some of these parameters may be missing from our list of citation templates. For example, for the Spanish Wikipedia's Cita libro template, only the parameter apellido had been mapped to our authorLast citation field, and the parameter autor was missing.

To aid in spotting this issues, consider making the script output a list of parameters ignored for each supported citation template.

Event Timeline

Because we ignore citation templates that don't have a value for the "url" parameter (or its aliases when T301516 is addressed), we won't list parameters ignored for these ignored citation templates. Therefore, we won't know that we are ignoring this parameters.

Thus, instead of following this order:

  1. Checking that a template's name is listed in our list of citation templates. Ignore template otherwise.
  2. Checking that it has a value for the "url" parameter (or one of its aliases, see T301516). Ignore template otherwise.
  3. Map parameters to one of our Web2Cit fields using our list of citation templates.
  4. Output parameters not mapped.

Consider moving 2 to the bottom.