Templates for displaying images
|
This page shows an example for the template format used to display a table of images.
|
Format
|
|
|
Keywords
|
|
Table of Contents
|
|
Simple example[edit]
Query not using a template[edit]
- Syntax
{{#ask:
[[Category:City]]
[[Has image::+]]
|?Has image=image
|offset=0
|limit=5
}}
- Result
Advanced examples[edit]
Query using three templates[edit]
- Syntax
{{#ask:
[[Category:City]]
[[Has image::+]]
|?Has image
|format=plainlist
|headers=show
|link=none
|template=Demo/Template/City/Image
|introtemplate=Demo/Template/City/Image/Intro
|outrotemplate=Demo/Template/City/Image/Outro
|offset=0
|limit=20
}}
- Result
The above query will yield a table output containing images of selected cities.
... further results
- Templates used
Query using one template in three modes[edit]
- Syntax
{{Demo/Template/City/ImageShow|userparam=intro}}
{{#ask:
[[Category:City]]
[[Has image::+]]
|?Has image=image
|format=plainlist
|headers=show
|link=none
|template=Demo/Template/City/ImageShow
|userparam=row
|named args=yes
|offset=0
|limit=5
}}
{{Demo/Template/City/ImageShow|userparam=outro}}
- Result
... further results
- Template used