« Dynamic Property List » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
I'm trying to dynamically specify which properties to return/print in an #ask query. Aim is to be able to supply the property names via queryform to a template and have it display. I'm not sure this is possible. Trying with something like this in the template: | I'm trying to dynamically specify which properties to return/print in an #ask query. Aim is to be able to supply the property names via queryform to a template and have it display. I'm not sure this is possible. Trying with something like this in the template: | ||
<nowiki>{{#ask: [[some::constraints]] | <nowiki>{{#ask: [[some::constraints]] | ||
|{{{ | |{{{Properties I Want to Print|}}} | ||
}}</nowiki> | }}</nowiki> | ||
Dernière version du 15 novembre 2017 à 17:59
I'm trying to dynamically specify which properties to return/print in an #ask query. Aim is to be able to supply the property names via queryform to a template and have it display. I'm not sure this is possible. Trying with something like this in the template:
{{#ask: [[some::constraints]] |{{{Properties I Want to Print|}}} }}
It seems the pipe has to 'hardcoded' in the #ask.
Date« Date » est un type et une propriété prédéfinie fournie par MediaWiki Sémantique pour représenter des valeurs de date. | Date de création« Date de création <span style="font-size:small;">(Creation date)</span> » est une propriété prédéfinie fournie par MediaWiki Sémantique et qui correspond à la date de première révision d’un sujet. | |
---|---|---|
AloUh | 22 juin 2001 | 14 novembre 2021 10:11:26 |
CoordinatesAndRecordValue | 1450 JL | |
CoordinatesAndRecordValue | 29 mai 1953 | |
... autres résultats |
Could I specify more than one property dynamically? Something like:
Date« Date » est un type et une propriété prédéfinie fournie par MediaWiki Sémantique pour représenter des valeurs de date. | |
---|---|
AloUh | 22 juin 2001 |
CoordinatesAndRecordValue | 1450 JL |
CoordinatesAndRecordValue | 29 mai 1953 |
... autres résultats |