20160726Person

De Semantic MediaWiki - Sandbox

Révision datée du 21 février 2018 à 19:30 par Kghbln (discussion | contributions) (add)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

Query to avoid introtemplate

This hack is needed on SMW 1.8.x since this version does not allow queries within the introtemplate. Starting with SMW 3.0.x latest queries within the introtemplate are allowed too, though I very much suspect that it will be possible with earlier versions of SMW too. See 20160726PersonAlt for the standard way to do it.

syntax
{{#ask:
 [[Category:20160726Person]]
 |?20160726PersonFirstName
 |?20160726PersonLastName
 |format=template
 |template=20160726PersonBody
 |outrotemplate=20160726PersonFooter
}}
result


| Rudi || |-


| aksjldf || Doe |-


| Jane || |-


| Jane || Doe |-


| John || Doe |-


| Hello || Doe |-

|}

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.