Page MenuHomePhabricator

GWToolset should allow wrapping metadata values during the metadata mapping
Closed, DeclinedPublic

Description

On Wikimedia Commons we love wrapping metadata in all sorts of templates.

This may be for many reasons:

  • i18n purposes, like {{Technique|oil on canvas}} which outputs “Huile sur toile” in French
  • language labelling, like |description = {{fr|<description>}}
  • linking purposes, like |references={{Augustins online|<ACCESSION NUMBER>}} (to link to an authoritative database based on the identifier)

The GWToolset mapping process should allow to specify a template to wrap the metadata field with.

This can become fairly complex, for example with the template {{Size}} where one might want to do stuff like
{{Size|unit=<UNIT>|width={{{LARGEUR|}}}|height={{{HAUTEUR|}}}|depth={{{PROFONDEUR|}}}|diameter={{{DIAMETRE|}}}}}>

with UNIT, HAUTEUR, PROFONDEUR and DIAMETRE being distincts metadata fields.


Version: unspecified
Severity: normal

Details

Reference
bz61389