Relabel ask templates test

De Semantic MediaWiki - Sandbox

Révision datée du 29 novembre 2018 à 15:52 par Ankostis (discussion | contributions) (Git issue #3548)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

Trying to understand how the Property:Has preferred property label interacts with #ask queries with plainlist+template, as reported in issue: https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/3548

Regular query

(edit to view its source)

Pageoccupationoccupation of a person; see also field of work (Property:P101) occupationoccupation of a person; see also field of work (Property:P101) OccupationOcupaciónoverridenoccupation of a person; see also field of work (Property:P101)
Andrew GomenyukStudentStudentStudent
Ben BrodeSmall Indie Developer at BlizzardSmall Indie Developer at BlizzardSmall Indie Developer at Blizzard
... further results

Plainlist + template + named args

template

From Relabel ask templates test/ask_template:

<hr>
* Page({{{Page}}})
* P106({{{P106}}}): FAILS
* P106@es({{{P106@es}}}): FAILS
* occupation@en/fr({{{occupation}}}): ok
* ocupación@es({{{ocupación}}}): FAILS
* overriden({{{overriden}}}): ok

Query results

(edit to view its source)


  • Page(Andrew Gomenyuk)
  • P106(Student): FAILS
  • P106@es({{{P106@es}}}): FAILS
  • occupation@en/fr({{{occupation}}}): ok
  • ocupación@es({{{ocupación}}}): FAILS
  • overriden(Student): ok

  • Page(Ben Brode)
  • P106(Small Indie Developer at Blizzard): FAILS
  • P106@es({{{P106@es}}}): FAILS
  • occupation@en/fr({{{occupation}}}): ok
  • ocupación@es({{{ocupación}}}): FAILS
  • overriden(Small Indie Developer at Blizzard): ok

... further results

Questions:

  • But why does it work only with the en/fr parameter-name, and not with original property name P106?
  • Shouldn't it work also with property's page name? (or else, one edit breaks all existing #ask queries).
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.