Demo:Gallery/Redirects

From semantic-mediawiki.org
(Redirected from Demo:Gallery/Redirects)
GalleryDemo:Gallery/Redirects

The icon [ Srf-format-gallery-icon-redirect-original.png ] will indicate that an image is redirected to a different target other than its original source.

Redirect from an image page[edit]

{{#ask: [[has image collection::city images]]
|?Has description
|?Has redirect
|captionproperty=Has description
|limit=4
|redirects=Has redirect
|format=gallery
}}

... further results

Redirect from a content page[edit]

Using a property[edit]

A redirect is identified by Has redirect property from its corresponding content page.

{{#ask: [[Has species image::+]][[Has species kingdom::Plantae]]
| ?Has species image = Image
| ?Title = Title
| ?Has redirect
| format = gallery
| limit=
| imageproperty =Image   
| captionproperty=Title    
| redirects=Has redirect
}}

... further results

Using =- option[edit]

A redirect is identified by =- option related to its content page.

{{#ask: [[Has species image::+]][[Has species kingdom::Plantae]]
| ?Has species image = Image
| ?Title = Title
| ?Has redirect
| format = gallery
| imageproperty =Image   
| captionproperty=Title    
| redirects=-
}}