Différences entre les versions de « Gallery format - data stored in subobjects »

De Semantic MediaWiki - Sandbox

(chg)
(chg)
 
(4 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
 
; Data
 
; Data
 
<pre>
 
<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=A typical situation in the consulting business.}}
{{#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=Always good to have long wind.}}
 
</pre>
 
</pre>
 
<div style="display: none">
 
<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:Client-brief client-budget.jpg|Has title={{PAGENAME}}|Has note=A typical situation in the consulting business.}}
{{#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=Always good to have long wind.}}
<div>
+
</div>
  
 
; Syntax
 
; Syntax
Ligne 21 : Ligne 21 :
 
  |heights=400
 
  |heights=400
 
}}
 
}}
<pre>
+
</pre>
  
 
; Result
 
; Result
Ligne 34 : Ligne 34 :
 
  |heights=400
 
  |heights=400
 
}}
 
}}
 +
 
[[Category:Gallery example]]
 
[[Category:Gallery example]]

Dernière version du 26 août 2019 à 15:33

Data
{{#subobject:|Has page=Fichier:Client-brief client-budget.jpg|Has title={{PAGENAME}}|Has note=A typical situation in the consulting business.}}
{{#subobject:|Has page=Fichier:NietzscheGod.jpg|Has title={{PAGENAME}}|Has note=Always good to have long wind.}}


Syntax
{{#ask:
 [[Has title::{{PAGENAME}}]]
 |?Has page
 |?Has note
 |imageproperty=Has page
 |captionproperty=Has note
 |format=gallery
 |widths=400
 |heights=400
}}
Result
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.