« Relabel ask templates test » : différence entre les versions
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/) |
|||
Ligne 45 : | Ligne 45 : | ||
* But why does it work only with the en/fr parameter-name, and not with original property name '''P106'''? | * 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). | * Shouldn't it work also with property's page name? (or else, one edit breaks all existing #ask queries). | ||
[[Category:Relabel ask templates]] |
Version du 29 novembre 2018 à 15:05
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)
Page | occupationqualité 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) ᵖ | Occupation | Ocupación | overridenqualité d'une personne (métier, hobby...), voir aussi domaine d'activité (Property:P101) et fonction (Property:P39) |
---|---|---|---|---|---|
Andrew Gomenyuk | Student | Student | Student | ||
Ben Brode | Small Indie Developer at Blizzard | Small Indie Developer at Blizzard | Small Indie Developer at Blizzard | ||
... 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(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
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).