v1.8.0+
| Status: | effective |
| Progress: | 100% |
| Version: | 1.8.0+ |
English
Help:Slideshow format
From semantic-mediawiki.org
| Slideshow format | |
|---|---|
| Displays query results as a slideshow | |
| Further Information | |
| Provided by: | Extension "Semantic Result Formats" |
| Added: | 1.8.0 |
| Removed: | still supported |
| Requirements: | JavaScript |
| Format name: | slideshow |
| Enabled? Indicates whether the result format is enabled by default upon installation of the respective extension. | yes |
| Authors: | Stephan Gambke |
| Categories: | media |
| Keywords | |
| Table of Contents | |
The result format slideshow, part of the Extension "Semantic Result Formats" extension, can be used to display the query result as a slideshow, i.e. showing one element of the result set then switching to the next automatically after a while. Be aware that this format only works on JavaScript enabled browsers.
Users of MediaWiki 1.26 and later need to update to version 2.4.2 and later of extension "Semantic Result Formats"Provides additional formats for semantic queries1 to be able to continue using this result format. A fix was required due to a formerly required dependency which was removed from MediaWiki.2
Parameters
General
| ⧼validator-describe-header-parameter⧽ | ⧼validator-describe-header-type⧽ | ⧼validator-describe-header-default⧽ | ⧼validator-describe-header-description⧽ |
|---|---|---|---|
| source | ⧼validator-type-string⧽ | ⧼validator-describe-empty⧽ | Alternative query source |
| limit | ⧼validator-type-integer⧽ | 50 | The maximum number of results to return |
| offset | ⧼validator-type-integer⧽ | 0 | The offset of the first result |
| cursor | ⧼validator-type-string⧽ | ⧼validator-describe-empty⧽ | The cursor token as provided by a previous page of results, used instead of "offset" to continue the pagination |
| link | ⧼validator-type-string⧽ | all | Show values as links |
| sort | ⧼validator-type-string-list⧽ | ⧼validator-describe-empty⧽ | Property to sort the query by |
| order | ⧼validator-type-string-list⧽ | ⧼validator-describe-empty⧽ | Order of the query sort; use none to disable sorting
|
| headers | ⧼validator-type-string⧽ | show | Display the headers/property names |
| mainlabel | ⧼validator-type-string⧽ | no | The label to give to the main page name |
| intro | ⧼validator-type-string⧽ | ⧼validator-describe-empty⧽ | The text to display before the query results, if there are any |
| outro | ⧼validator-type-string⧽ | ⧼validator-describe-empty⧽ | The text to display after the query results, if there are any |
| searchlabel | ⧼validator-type-string⧽ | ... further results | Text for continuing the search |
| default | ⧼validator-type-string⧽ | ⧼validator-describe-empty⧽ | The text to display if there are no query results |
Format specific
| ⧼validator-describe-header-parameter⧽ | ⧼validator-describe-header-type⧽ | ⧼validator-describe-header-default⧽ | ⧼validator-describe-header-description⧽ |
|---|---|---|---|
| template | ⧼validator-type-string⧽ | ⧼validator-describe-empty⧽ | ⧼smw_paramdesc_template⧽ |
| class | ⧼validator-type-string⧽ | ⧼validator-describe-empty⧽ | Specify an additional cascading style sheet class |
| height | ⧼validator-type-string⧽ | 100px | Height |
| width | ⧼validator-type-string⧽ | 200px | Width |
| delay | ⧼validator-type-integer⧽ | 5 | The delay between slides in seconds |
| nav controls | ⧼validator-type-boolean⧽ | no | Show navigation controls or not |
| effect | ⧼validator-type-string⧽ | none | The effect to be used to switch from slide to slide |
Available values for parameters:
effect:none,slide left,slide right,slide up,slide down,fadeandhide
Example
A query for this format could look like:
{{#ask:
[[Category:City]]
[[Area::+]]
[[Population::+]]
|?Population=Inhabitants
|?Area#km²=Size in km²
|format=slideshow
|template=Query output demo
|nav controls=yes
|delay=5
|height=50px
|width=500px
|effect=slide left
|limit=3
}}
Result:
Sponsorship
This extension was kindly sponsored by Prescient Software
Note
There are issues integrating this result format on a wiki using the VisualEditor extension.34
References
- ^ Semantic Result Formats: GitHub issue gh:srf:137
- ^ Semantic MediaWiki: Gerrit commit phab:mw:5472c66d7831
- ^ Semantic MediaWiki: GitHub issue gh:smw:1055
- ^ Semantic MediaWiki: Phabricator task phab:mw:T76278