« Issue/2677/combine with align » : différence entre les versions

De Semantic MediaWiki - Sandbox
(chg)
(chg)
 
Ligne 23 : Ligne 23 :
  |?Has book rating=rating |+width=5% |+align=center
  |?Has book rating=rating |+width=5% |+align=center
  |mainlabel=title
  |mainlabel=title
|sort=Has book publishing year, Has book author
|order=descending,asc
|headers=plain
|link=all
|limit=3
}}
== wrong ==
; 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=center
|mainlabel=title |+width=20% |+align=right
|sort=Has book publishing year, Has book author
|order=descending,asc
|headers=plain
|link=all
|limit=3
}}
; mainlabel being ignored since no preceding printout is available
{{#ask:
[[Category:Book]]
[[Has book title::+]]
|mainlabel=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=center
|sort=Has book publishing year, Has book author
|order=descending,asc
|headers=plain
|link=all
|limit=3
}}
== workaround ==
; 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=center
|mainlabel=-
  |sort=Has book publishing year, Has book author
  |sort=Has book publishing year, Has book author
  |order=descending,asc
  |order=descending,asc

Dernière version du 26 septembre 2017 à 10:25

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