Demo:Gallery/Redirects

From semantic-mediawiki.org
Jump to: navigation, search
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

{{#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

Using a property

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
}}

Using =- option

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=-
}}