Esc3300 added a comment.

As you noted, solution #1 isn't possible, so we need to find another way. Asking others to set up redirects might be an easy solution, but I'm not sure if using another redirect service is really good practice.

I can understand that you don't want to include code specific to each url, but between doing this and writing a module that allows freely configurable transformations, there should be middle way.

One solution could be to add simply offer a list of transformations that can be applied. A qualifier on the formatter url can select that.

  • Qualifier value "1" would be the default: replace $1 with value (As it's currently done).
  • Qualifier value "2": strip whitespaces, then replace $1 with value
  • Qualifier value "3": only apply values starting with a specific string (defined in another qualifier).

Ideally these could also be built in SPARQL when needed.


TASK DETAIL
https://phabricator.wikimedia.org/T151329

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Esc3300
Cc: Esc3300, Aklapper, Stigmj, Nikki, hoo, Lydia_Pintscher, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to