Modifiche

Creata pagina con "<includeonly><div class="srf-gallery" data-redirect-type="_wpg" data-ns-text="File"><ul class="gallery mw-gallery-traditional"> {{#arraydefine: photosubjexts|{{#ask: Categor..."
<includeonly><div class="srf-gallery" data-redirect-type="_wpg" data-ns-text="File"><ul class="gallery mw-gallery-traditional">
{{#arraydefine: photosubjexts|{{#ask: [[Category:{{{category}}}]] [[{{{property}}}::{{{value}}}]]
|?PhotoID
|format=plainlist
|mainlabel=-
|headers=hide
|link=none
}}|, |sort=asc, unique}}
{{#loop: n
|0
|{{#arraysize:photosubjexts}}
|<li class="gallerybox">{{#ask: [[{{{property}}}::{{{value}}}]] [[PhotoID::{{#arrayindex:photosubjexts|{{#var:n}}}}]]
|format=gallery
|?=#
|?PhotoID
|limit=100
|link=none
|widget=slideshow
|navigation=auto
|width=300px
|height=300px
}}</li>}}
</ul></div></includeonly>
<noinclude>Template per generare delle gallerie di foto di penne specificando una categoria, una proprietà ed il suo valore, in cui viene generato una singola slideshow per ciascun esemplare fotografato (analogo a quanto usato in {{:Template:GenerateMaterialGallery}}.
===Usage===
<pre>
==Galleria cappucci==
{{SingledModelsGallery
|category=Foto
|property=Photographed detail
|value=cap
}}
</pre>
Genera:
==Galleria cappucci==
{{SingledModelsGallery
|category=Foto
|property=Photographed detail
|value=cap
}}
[[Category:Templates using Semantic Mediawiki|{{PAGENAME}}]]
[[Category:Photo Templates]]
[[Category:Model Templates]]
</noinclude>