Template:gallery: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
 
No edit summary
 
Line 9: Line 9:
{{#ifeq: {{#var: nmax }} | 0 | |
{{#ifeq: {{#var: nmax }} | 0 | |
==Images==
==Images==
{{{!}} class="gallery" cellspacing="0" cellpadding="0"
{{{!}} class="gallery"
{{#ask:[[showonpage::{{FULLPAGENAME}}]]|?pagename|format=template|template=gallery_image|limit=5|searchlabel=}}
{{#ask:[[showonpage::{{FULLPAGENAME}}]]|?pagename|format=template|template=gallery_image|limit=5|searchlabel=}}
{{#vardefine: i | 5 }}{{
{{#vardefine: i | 5 }}{{

Latest revision as of 12:00, 22 July 2013

This template serves to display a gallery of thumbnails, comparable to the MeidaWiki-internal function <gallery>). It uses a semantic query and the Template:gallery_image.

For a thumbnail to be displayed on a page, it is necessary:

  • to specify, on the page proper to the image, via the Property:showonpage those pages in which the image shall be displayed.
  • to include on those pages in which the image will be displayed the Template:gallery – either by manually entering the code {{gallery}} or by using another template which in its turn makes use of this template.