Différences entre les versions de « Relabel ask templates test »

De Semantic MediaWiki - Sandbox

Ligne 35 : Ligne 35 :
 
  |?occupation@es
 
  |?occupation@es
 
  |?P106=overriden
 
  |?P106=overriden
  |format=plainlist
+
  |format=template
 
  |template=:Relabel_ask_templates_test/ask template
 
  |template=:Relabel_ask_templates_test/ask template
|template arguments=named
+
  |named args=1
  |named args=yes
 
 
  |limit=2
 
  |limit=2
 
}}
 
}}

Version du 29 novembre 2018 à 15:36

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/

Regular query

(edit to view its source)

Pageoccupationqualité d'une personne (métier, hobby...), voir aussi domaine d'activité (Property:P101) et fonction (Property:P39) occupationqualité d'une personne (métier, hobby...), voir aussi domaine d'activité (Property:P101) et fonction (Property:P39) OccupationOcupaciónoverridenqualité d'une personne (métier, hobby...), voir aussi domaine d'activité (Property:P101) et fonction (Property:P39)
Alexey GorobeckyGeneralGeneralGeneral
Anastasia ZhyrkovaStudentStudentStudent
... autres résultats

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(Alexey Gorobecky)
  • P106(General): FAILS
  • P106@es({{{P106@es}}}): FAILS
  • occupation@en/fr({{{occupation}}}): ok
  • ocupación@es({{{ocupación}}}): FAILS
  • overriden(General): ok

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

... autres résultats

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.