Help:Listwidget format

From semantic-mediawiki.org
Jump to: navigation, search
Listwidget format
Navigation widget for lists
Scenarios, examples, demos
Example: Examples
Image collection
Further Information
Provided by: Semantic Result Formats
Added: 1.8.0
Removed: still supported
Requirements: none
Format name: listwidget
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: SMWListResultPrinter, SRFListWidget
Folder: Commit history
Folder tree
Table of Contents

↓ INFO ↓

The result format listwidget, part of Semantic Result Formats, is a navigation widget that extends the standard list printer with:

  • An alphabet-based widget (either as list or menu) to any UL or OL list
  • A pagination widget

The navigation widget can be useful for larger list sets such as directories, alphabet lists etc.

Parameters

Parameter Type Default Description
sep text , The separator for values
template text empty The name of a template with which to display the printouts
named args yes/no no Name the arguments passed to the template
userparam text empty A value passed into each template call, if a template is used
introtemplate text empty The name of a template to display before the query results, if there are any
outrotemplate text empty The name of a template to display after the query results, if there are any
class text empty Specify an additional cascading style sheet class
listtype text unordered Specify the list type
widget text alphabet Available widget
pageitems whole number 5 Items per page
  • [listtype] = ( 'unordered', 'ordered' ) (default = unordered)
  • [widget] = alphabet, menu, pagination (default = alphabet)
  • [pageitems] = used for pagination and determines how many elements should be displayed per page unit (default = 5)

Usage

{{#ask:[[ ... ]]
|format=listwidget
|headers=show
|link=all
|listtype=unordered
|widget=pagination
|pageitems=15
}}

Examples



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

Help:Listwidget format en 1.8.0