Help:Pagewidget format

From Linux Web Expert

Pagewidget format
Widget for embedded page content
Collection
Further Information
Provided by: Semantic Result Formats
Added: 1.8.0
Removed: still supported
Requirements: none
Format name: pagewidget
Enabled? Indicates whether the result format is enabled by default upon installation of the respective extension. yes
Authors: James Hong Kong
Categories: misc
Table of Contents

A widget that generates a navigation control on embedded page content allowing for grained control as to which embedded content is being displayed (much like that of a slideshow or PowerPoint/Impress presentation).

Parameters

⧼validator-describe-header-parameter⧽ ⧼validator-describe-header-type⧽ ⧼validator-describe-header-default⧽ ⧼validator-describe-header-description⧽
embedformat ⧼validator-type-string⧽ ul The HTML tag used to define headings
embedonly ⧼validator-type-boolean⧽ no Display no headings
class ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ Specify an additional cascading style sheet class
widget ⧼validator-type-string⧽ carousel Available widget

Usage

{{#ask: ...
|format=pagewidget
|link=all
|embedformat=ul
|widget=carousel
}}

Styling

Styling can be influenced using the class parameter and some examples below will demonstrate on how a "normal" wiki page can be transformed into a presentation platform.

.smw-presentation .slide h1 {
 color: #006699;
 font-size: 38px;
 ...
}

Source

If you want to hide the page source in your presentation, you need to change the following setting to:

...
|embedonly=1 
...

Navigation

Both mouse and right/left arrow key navigation are supported.

Examples


Property "Namespace" has a restricted application area and cannot be used as annotation property by a user.Property "Docinfo editor" (as page type) with input value "User:>Kghbln" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

This documentation page applies to all SMW versions from 1.8.0 to the most current version.