Relabel ask templates test
De Semantic MediaWiki - Sandbox
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[modifier | modifier le wikicode]
(edit to view its source)
Page | occupationoccupation of a person; see also field of work (Property:P101) ᵖ | occupationoccupation of a person; see also field of work (Property:P101) ᵖ | Occupation | Ocupación | overridenoccupation of a person; see also field of work (Property:P101) |
---|---|---|---|---|---|
Alexey Gorobecky | General | General | General | ||
Anastasia Zhyrkova | Student | Student | Student | ||
... further results |
Plainlist + template + named args[modifier | modifier le wikicode]
template[modifier | modifier le wikicode]
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[modifier | modifier le wikicode]
(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
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).