diff options
author | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
commit | fc7369835258467bf97eb64f184b93691f9a9fd5 (patch) | |
tree | daabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/SemanticResultFormats/DefaultSettings.php |
first commit
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/DefaultSettings.php')
-rw-r--r-- | www/wiki/extensions/SemanticResultFormats/DefaultSettings.php | 157 |
1 files changed, 157 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/DefaultSettings.php b/www/wiki/extensions/SemanticResultFormats/DefaultSettings.php new file mode 100644 index 00000000..b7482584 --- /dev/null +++ b/www/wiki/extensions/SemanticResultFormats/DefaultSettings.php @@ -0,0 +1,157 @@ +<?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 > + */ + +if ( !defined( 'MEDIAWIKI' ) ) { + die( "This file is part of the Semantic Result Formats extension. It is not a valid entry point.\n" ); +} + +// 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', + 'spreadsheet', + 'gantt', + 'graph' + // 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( array_key_exists( 'ExtHashTables', $GLOBALS['wgAutoloadClasses'] ) && 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' +]; |