Help:Pagewidget format

From semantic-mediawiki.org
Jump to: navigation, search
Pagewidget format
Widget for embedded page content
Image collection
Further Information
Provided by: Semantic Result Formats
Added: 1.8.0
Removed: still supported
Requirements: none
Format name: pagewidget
Enabled by default: 
Indicates whether the result format is enabled by default upon installation of the respective extension.
yes
Authors: James Hong Kong
Categories: misc
Group:
Class: SMWEmbeddedResultPrinter, SRFPageWidget
Table of Contents

↓ INFO ↓


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

Parameter Type Default Description
embedformat text ul The HTML tag used to define headings
embedonly yes/no no Display no headings
class text empty Specify an additional cascading style sheet class
widget text 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

Example presentation



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

Help:Pagewidget format en 1.8.0