« SMW Sandbox:Setup information » : différence entre les versions
De Semantic MediaWiki - Sandbox
(aaaaaargh) |
(retrived directly from database) |
||
Ligne 1 : | Ligne 1 : | ||
<big>'''Welcome to the sandbox of the [[semantic-mw:Help:SMW Project|SMW project]]. It allows to text features provided by [[semantic-mw:Semantic MediaWiki|Semantic MediaWiki]] as well as related semantic extensions.'''</big> | |||
This wiki is designed to always run on the latest stable version of MediaWiki core as well as the installed extensions. Note that it is required to create and account as well as confirm your e-mail to use this wiki. | |||
== composer.local.json == | |||
<syntaxhighlight lang="text"> | |||
{ | |||
"require": { | |||
"mediawiki/semantic-media-wiki": "@dev", | |||
"mediawiki/semantic-cite": "@dev", | |||
"mediawiki/semantic-breadcrumb-links": "@dev", | |||
"mediawiki/semantic-extra-special-properties": "@dev", | |||
"mediawiki/semantic-forms": "@dev", | |||
"mediawiki/semantic-forms-select": "@dev", | |||
"mediawiki/semantic-glossary": "@dev", | |||
"mediawiki/semantic-interlanguage-links": "@dev", | |||
"mediawiki/semantic-maps": "@dev", | |||
"mediawiki/semantic-meta-tags": "@dev", | |||
"mediawiki/semantic-result-formats": "@dev", | |||
"mediawiki/semantic-sifter": "@dev", | |||
"mediawiki/semantic-watchlist": "@dev", | |||
"phpoffice/phpexcel": "~1" | |||
} | |||
} | |||
</syntaxhighlight> | |||
== LocalSettings.php == | |||
; Semantic extensions only | |||
<syntaxhighlight lang="php"> | |||
## Semantic MediaWiki | |||
// Composer | |||
enableSemantics( $smwSemanticName ); | |||
$smwgAdminRefreshStore = false; | |||
$smwgPageSpecialProperties = array_merge( | |||
$smwgPageSpecialProperties, array( | |||
'_CDAT', '_NEWP', '_LEDT', '_MEDIA', '_MIME' | |||
) | |||
); | |||
## Semantic Compound Queries | |||
require "extensions/SemanticCompoundQueries/SemanticCompoundQueries.php"; | |||
## Semantic Drilldown | |||
$sdgNamespaceIndex = 112; | |||
require "extensions/SemanticDrilldown/SemanticDrilldown.php"; | |||
$sdgShowCategoriesAsTabs = true; | |||
## Semantic Extra Special Properties | |||
// Composer | |||
$sespSpecialProperties = array( | |||
'_EUSER', '_CUSER', '_REVID', '_PAGEID', '_VIEWS', '_NREV', | |||
'_NTREV', '_SUBP', '_USERREG', '_USEREDITCNT', '_EXIFDATA' | |||
); | |||
$sespUseAsFixedTables = true; | |||
$wgSESPExcludeBots = true; | |||
## Semantic Forms | |||
// Composer | |||
$sfg24HourTime = true; | |||
$sfgRenameEditTabs = true; | |||
$sfgRedLinksCheckOnlyLocalProps = true; | |||
$sfgAutocompleteOnAllChars = true; | |||
## Semantic Forms Inputs | |||
require "extensions/SemanticFormsInputs/SemanticFormsInputs.php"; | |||
## Semantic Maps | |||
// Composer | |||
## Semantic Meta Tags | |||
// Composer | |||
$smtgTagsProperties = array( | |||
'keywords' => 'Meta-element keywords', | |||
'description' => 'Meta-element description' | |||
); | |||
## Semantic Rating | |||
require "extensions/SemanticRating/SemanticRating.php"; | |||
## Semantic Result Formats | |||
// Composer | |||
$srfgFirstDayOfWeek = 'monday'; | |||
</syntaxhighlight> |
Version du 25 octobre 2015 à 02:09
Welcome to the sandbox of the SMW project. It allows to text features provided by Semantic MediaWiki as well as related semantic extensions.
This wiki is designed to always run on the latest stable version of MediaWiki core as well as the installed extensions. Note that it is required to create and account as well as confirm your e-mail to use this wiki.
composer.local.json
{
"require": {
"mediawiki/semantic-media-wiki": "@dev",
"mediawiki/semantic-cite": "@dev",
"mediawiki/semantic-breadcrumb-links": "@dev",
"mediawiki/semantic-extra-special-properties": "@dev",
"mediawiki/semantic-forms": "@dev",
"mediawiki/semantic-forms-select": "@dev",
"mediawiki/semantic-glossary": "@dev",
"mediawiki/semantic-interlanguage-links": "@dev",
"mediawiki/semantic-maps": "@dev",
"mediawiki/semantic-meta-tags": "@dev",
"mediawiki/semantic-result-formats": "@dev",
"mediawiki/semantic-sifter": "@dev",
"mediawiki/semantic-watchlist": "@dev",
"phpoffice/phpexcel": "~1"
}
}
LocalSettings.php
- Semantic extensions only
## Semantic MediaWiki
// Composer
enableSemantics( $smwSemanticName );
$smwgAdminRefreshStore = false;
$smwgPageSpecialProperties = array_merge(
$smwgPageSpecialProperties, array(
'_CDAT', '_NEWP', '_LEDT', '_MEDIA', '_MIME'
)
);
## Semantic Compound Queries
require "extensions/SemanticCompoundQueries/SemanticCompoundQueries.php";
## Semantic Drilldown
$sdgNamespaceIndex = 112;
require "extensions/SemanticDrilldown/SemanticDrilldown.php";
$sdgShowCategoriesAsTabs = true;
## Semantic Extra Special Properties
// Composer
$sespSpecialProperties = array(
'_EUSER', '_CUSER', '_REVID', '_PAGEID', '_VIEWS', '_NREV',
'_NTREV', '_SUBP', '_USERREG', '_USEREDITCNT', '_EXIFDATA'
);
$sespUseAsFixedTables = true;
$wgSESPExcludeBots = true;
## Semantic Forms
// Composer
$sfg24HourTime = true;
$sfgRenameEditTabs = true;
$sfgRedLinksCheckOnlyLocalProps = true;
$sfgAutocompleteOnAllChars = true;
## Semantic Forms Inputs
require "extensions/SemanticFormsInputs/SemanticFormsInputs.php";
## Semantic Maps
// Composer
## Semantic Meta Tags
// Composer
$smtgTagsProperties = array(
'keywords' => 'Meta-element keywords',
'description' => 'Meta-element description'
);
## Semantic Rating
require "extensions/SemanticRating/SemanticRating.php";
## Semantic Result Formats
// Composer
$srfgFirstDayOfWeek = 'monday';