170 行
3.9 KiB
PHP
170 行
3.9 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Settings file for the Semantic Result Formats extension.
|
|
*
|
|
* @see http://www.semantic-mediawiki.org/wiki/Semantic_Result_Formats
|
|
*
|
|
* @author Jeroen De Dauw < jeroendedauw@gmail.com >
|
|
* @author Daniel Werner < danweetz@web.de >
|
|
*/
|
|
|
|
// The formats you want to be able to use.
|
|
// See the INSTALL file or
|
|
// http://www.semantic-mediawiki.org/wiki/Semantic_Result_Formats#Installation
|
|
$GLOBALS['srfgFormats'] = [
|
|
'icalendar',
|
|
'vcard',
|
|
'bibtex',
|
|
'calendar',
|
|
'eventcalendar',
|
|
'eventline',
|
|
'timeline',
|
|
'outline',
|
|
'gallery',
|
|
'jqplotchart',
|
|
'jqplotseries',
|
|
'sum',
|
|
'average',
|
|
'min',
|
|
'max',
|
|
'median',
|
|
'product',
|
|
'tagcloud',
|
|
'valuerank',
|
|
'array',
|
|
'tree',
|
|
'ultree',
|
|
'oltree',
|
|
'd3chart',
|
|
'latest',
|
|
'earliest',
|
|
'filtered',
|
|
'slideshow',
|
|
'timeseries',
|
|
'sparkline',
|
|
'listwidget',
|
|
'pagewidget',
|
|
'dygraphs',
|
|
'media',
|
|
'datatables',
|
|
'carousel',
|
|
'spreadsheet',
|
|
'gantt',
|
|
'graph',
|
|
'variance',
|
|
'samplevariance',
|
|
'standarddeviation',
|
|
'samplestandarddeviation',
|
|
'range',
|
|
'quartillower',
|
|
'quartilupper',
|
|
'quartillower.exc',
|
|
'quartilupper.exc',
|
|
'interquartilerange',
|
|
'interquartilerange.exc',
|
|
'mode',
|
|
'interquartilemean',
|
|
'prolog',
|
|
'dataframe'
|
|
// Boilerplate
|
|
// Enable access to the format identifier
|
|
// 'boilerplate',
|
|
|
|
// Disabled by default
|
|
|
|
// This format can influence performance during execution due to potential
|
|
// large number of incoming properties assigned to each selected entity
|
|
// @see Help:Incoming_format
|
|
// 'incoming',
|
|
|
|
// Still in alpha:
|
|
// 'jitgraph', // Several issues need to be fixed before this can be enabled, most notably it does not work properly with the RL.
|
|
|
|
// Disabled by default since they contact external sites:
|
|
// 'googlebar',
|
|
// 'googlepie',
|
|
|
|
// Unstable/broken:
|
|
// 'exhibit',
|
|
];
|
|
|
|
// Load hash format only if HashTables extension is initialised, otherwise 'Array' format is enough
|
|
// FIXME: According to the INSTALL file only formats should be enabled, that "do not require further software to be installed (besides SMW)"
|
|
if ( isset( $GLOBALS['wgAutoloadClasses']['ExtHashTables'] ) && defined( 'ExtHashTables::VERSION' )
|
|
&& version_compare( ExtHashTables::VERSION, '0.999', '>=' )
|
|
|| isset( $GLOBALS['wgHashTables'] ) // Version < 1.0 alpha
|
|
) {
|
|
$GLOBALS['srfgFormats'][] = 'hash';
|
|
}
|
|
|
|
// Used for Array and Hash formats.
|
|
// Allows value as string or object instances of Title or Article classes or an array
|
|
// where index 0 is the page title and 1 is the namespace-index (by default NS_MAIN)
|
|
// also allows defining optional template-arguments by index 'args' as array where a
|
|
// key represents an argument name and a keys associated value an argument value.
|
|
$GLOBALS['srfgArraySep'] = ', ';
|
|
$GLOBALS['srfgArrayPropSep'] = '<PROP>';
|
|
$GLOBALS['srfgArrayManySep'] = '<MANY>';
|
|
$GLOBALS['srfgArrayRecordSep'] = '<RCRD>';
|
|
$GLOBALS['srfgArrayHeaderSep'] = ' ';
|
|
|
|
/**
|
|
* Used if Array|Hash result format is not used inline and the standard config values
|
|
* defined in LocalSettings.php can not be used because they are page references which
|
|
* can only be evaluated in inline queries
|
|
*
|
|
* @var Array
|
|
*/
|
|
$GLOBALS['srfgArraySepTextualFallbacks'] = [
|
|
'sep' => $GLOBALS['srfgArraySep'],
|
|
'propsep' => $GLOBALS['srfgArrayPropSep'],
|
|
'manysep' => $GLOBALS['srfgArrayManySep'],
|
|
'recordsep' => $GLOBALS['srfgArrayRecordSep'],
|
|
'headersep' => $GLOBALS['srfgArrayHeaderSep']
|
|
];
|
|
|
|
// $srfgColorScheme
|
|
// Color schems are used among v1.8 jqPlot, and other printers if change
|
|
// those settings please ensure that the content of themes.js has to be
|
|
// altered as well
|
|
$GLOBALS['srfgColorScheme'] = [
|
|
'cc124',
|
|
'cc128',
|
|
'cc129',
|
|
'cc173',
|
|
'cc210',
|
|
'cc252',
|
|
'cc267',
|
|
'cc294' ,
|
|
'cc303',
|
|
'cc327',
|
|
'ylgn',
|
|
'ylgnbu',
|
|
'gnbu',
|
|
'bugn',
|
|
'pubugn',
|
|
'pubu',
|
|
'bupu',
|
|
'rdpu',
|
|
'purd',
|
|
'orrd',
|
|
'ylorrd',
|
|
'ylorbr',
|
|
'purples',
|
|
'blues',
|
|
'greens',
|
|
'oranges',
|
|
'reds',
|
|
'greys',
|
|
'puor',
|
|
'brbg',
|
|
'prgn',
|
|
'piyg',
|
|
'rdbu',
|
|
'rdgy',
|
|
'rdylbu',
|
|
'spectral',
|
|
'rdylgn'
|
|
];
|