Help:Valuerank format

From semantic-mediawiki.org
Jump to: navigation, search
Valuerank format
Lists values based on their occurrence
Further Information
Provided by: Semantic Result Formats
Added: 1.7.0
Removed: still supported
Requirements: none
Format name: valuerank
Enabled by default: Indicates whether the result format is enabled by default upon installation of the respective extension. yes
Authors: Daniel Schuba, James Hong Kong
Categories: misc
Group:
Class: SRFValueRank, SMWResultPrinter
Folder: Commit history
Folder tree
Table of Contents

INFO

The result format valuerank, part of the Semantic MediaWiki extension, prints query results as a valuerank. In other words, it prints a list of all occuring values, with duplicates removed, together with their occurrence count. It is derived from the result format tagcloud.

Parameters

Parameter Type Default Description
includesubject yes/no no Subject names themselves should be included
min whole number 1 The minimum amount of times a value needs to occur to be listed
maxtags whole number 1000 The maximum amount of tags in the cloud
template text empty <srf-paramdesc-template>
userparam text empty <srf-paramdesc-userparam>
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
liststyle text ul <srf-paramdesc-liststyle>
class text empty Specify an additional cascading style sheet class

Features

Release Feature
Added in 1.8

I762cde6a

  • template support
  • list styles (ul, ol, or none)
  • parameter mincount has been renamed to min
  • class parameter for additional CSS class assignments

Usage

{{#ask:[[Type::+]]
 |?Type
 |format=valuerank
 |min=1
 |maxtags=1000
 ...
}}
{{#ask:[[Type::+]]
 |?Type
 |format=valuerank
 |template=Valuerank.example
 |introtemplate=Valuerank.example.intro
 |outrotemplate=Valuerank.example.outro
 |liststyle=none
 ...
}}

Example



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

Help:Value rank en 1.8.0