Issue/2677/mainlabel
De Semantic MediaWiki - Sandbox
- mainlable actually applied to the last result column overriding the value explicitly stated for it
{{#ask:
[[Category:Book]]
[[Has book title::+]]
|?Has book author=author |+width=20%
|?Has book publishing year=year |+width=5% |+align=center
|?Has book ISBN=ISBN |+width=10% |+align=center
|?Has book rating=rating |+width=5% |+align=right
|mainlabel=title |+width=20% |+align=center
|sort=Has book publishing year, Has book author
|order=descending,asc
|headers=plain
|link=all
|limit=3
}}
- hide first result column via mainlabel and add it via a first column statement including a width format
{{#ask:
[[Category:Book]]
[[Has book title::+]]
|?=title |+width=20%
|?Has book author=author |+width=20%
|?Has book publishing year=year |+width=5% |+align=center
|?Has book ISBN=ISBN |+width=10% |+align=center
|?Has book rating=rating |+width=5% |+align=right
|mainlabel=-
|sort=Has book publishing year, Has book author
|order=descending,asc
|headers=plain
|link=all
|limit=3
}}
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.