« Gallery format - data stored in subobjects » : différence entre les versions

De Semantic MediaWiki - Sandbox

(add)
(chg)
Ligne 1 : Ligne 1 :
; Data
<pre>
{{#subobject:|Has page=Fichier:Client-brief client-budget.jpg|Has title={{PAGENAME}}|Has note=This is the first file}}
{{#subobject:|Has page=Fichier:Client-brief client-budget.jpg|Has title={{PAGENAME}}|Has note=This is the first file}}
{{#subobject:|Has page=Fichier:NietzscheGod.jpg|Has title={{PAGENAME}}|Has note=This is the second file}}
{{#subobject:|Has page=Fichier:NietzscheGod.jpg|Has title={{PAGENAME}}|Has note=This is the second file}}
</pre>
<div style="display: none">
{{#subobject:|Has page=Fichier:Client-brief client-budget.jpg|Has title={{PAGENAME}}|Has note=This is the first file}}
{{#subobject:|Has page=Fichier:NietzscheGod.jpg|Has title={{PAGENAME}}|Has note=This is the second file}}
<div>


; Syntax
<pre>
{{#ask:
{{#ask:
  [[Has title::{{PAGENAME}}]]
  [[Has title::{{PAGENAME}}]]
Ligne 12 : Ligne 21 :
  |heights=400
  |heights=400
}}
}}
<pre>


; Result
{{#ask:
[[Has title::{{PAGENAME}}]]
|?Has page
|?Has note
|imageproperty=Has page
|captionproperty=Has note
|format=gallery
|widths=400
|heights=400
}}
[[Category:Gallery example]]
[[Category:Gallery example]]

Version du 26 août 2019 à 15:27

Data
{{#subobject:|Has page=Fichier:Client-brief client-budget.jpg|Has title={{PAGENAME}}|Has note=This is the first file}}
{{#subobject:|Has page=Fichier:NietzscheGod.jpg|Has title={{PAGENAME}}|Has note=This is the second file}}


Syntax


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