Différences entre les versions de « SMW Sandbox:Setup information »
De Semantic MediaWiki - Sandbox
(→composer.local.json : fluff) |
(→LocalSettings.php : upd) |
||
Ligne 44 : | Ligne 44 : | ||
=== selected other extensions === | === selected other extensions === | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
+ | ## Page Forms | ||
+ | // wfLoadExtension( 'PageForms' ); | ||
+ | require 'extensions/PageForms/PageForms.php'; | ||
+ | $wgPageForms24HourTime = true; | ||
+ | $wgPageFormsRenameEditTabs = true; | ||
+ | $wgPageFormsRedLinksCheckOnlyLocalProps = true; | ||
+ | $wgPageFormsAutocompleteOnAllChars = true; | ||
+ | $wgPageFormsAutoCreateUser = 'AutoCreateBot'; | ||
+ | |||
## Summary Card | ## Summary Card | ||
// Composer | // Composer | ||
Ligne 113 : | Ligne 122 : | ||
$sespUseAsFixedTables = true; | $sespUseAsFixedTables = true; | ||
$wgSESPExcludeBots = true; | $wgSESPExcludeBots = true; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
// ## Semantic Forms Select | // ## Semantic Forms Select |
Version du 1 novembre 2016 à 23:21
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 release candidate or stable version of MediaWiki core as well as the installed extensions, except for most of the semantic extensions which run on master. This page shows some of the setup information. See also the update log for MediaWiki core on this wiki.
composer.local.json
{
"require": {
"mediawiki/chameleon-skin": "@dev",
"mediawiki/lingo": "@dev",
"mediawiki/maps": "@dev",
"mediawiki/parser-hooks": "@dev",
"mediawiki/scribunto": "@dev",
"mediawiki/summary-cards": "@dev",
"mediawiki/validator": "@dev",
"mediawiki/whats-nearby": "@dev",
"mediawiki/semantic-breadcrumb-links": "@dev",
"mediawiki/semantic-cite": "@dev",
"mediawiki/semantic-compound-queries": "@dev",
"mediawiki/semantic-external-query-lookup": "@dev",
"mediawiki/semantic-extra-special-properties": "@dev",
"mediawiki/semantic-glossary": "@dev",
"mediawiki/semantic-interlanguage-links": "@dev",
"mediawiki/semantic-media-wiki": "@dev",
"mediawiki/semantic-meta-tags": "@dev",
"mediawiki/semantic-notifications": "@dev",
"mediawiki/semantic-result-formats": "@dev",
"mediawiki/semantic-scribunto": "@dev",
"mediawiki/semantic-sifter": "@dev",
"mediawiki/semantic-watchlist": "@dev",
"phpoffice/phpexcel": "~1"
},
"config": {
"preferred-install": "source",
"optimize-autoloader": true
}
}
LocalSettings.php
selected other extensions
## Page Forms
// wfLoadExtension( 'PageForms' );
require 'extensions/PageForms/PageForms.php';
$wgPageForms24HourTime = true;
$wgPageFormsRenameEditTabs = true;
$wgPageFormsRedLinksCheckOnlyLocalProps = true;
$wgPageFormsAutocompleteOnAllChars = true;
$wgPageFormsAutoCreateUser = 'AutoCreateBot';
## Summary Card
// Composer
$sucgBackendParserCacheType = CACHE_MEMCACHED;
$sucgEnabledNamespaceWithTemplate = array(
NS_MAIN => 'SimpleSummaryCard',
NS_HELP => 'SimpleSummaryCard',
NS_FILE => 'SimpleSummaryCard',
SMW_NS_PROPERTY => 'SimpleSummaryCard',
);
semantic extensions
$wgSearchType = 'SMWSearch';
## Semantic MediaWiki
// Composer
enableSemantics( $smwSemanticName );
$smwgNamespacesWithSemanticLinks[NS_EXTRA] = true;
// $smwgLinksInValues = true;
$smwgAdminRefreshStore = false;
$smwgPageSpecialProperties = array_merge(
$smwgPageSpecialProperties, array(
'_CDAT', '_NEWP', '_LEDT', '_MEDIA', '_MIME'
)
);
$smwgEnabledQueryDependencyLinksStore = true;
$smwgDVFeatures = $smwgDVFeatures | SMW_DV_PVUC;
$smwgQueryDependencyAffiliatePropertyDetectionlist = array(
'_DTITLE'
);
$smwgEnabledFulltextSearch = true;
## Semantic Breadcrumb Links
// Composer
## Semantic Cite
// Composer
## Semantic Compound Queries
// Composer
## Semantic Drilldown
$sdgNamespaceIndex = 112;
require "extensions/SemanticDrilldown/SemanticDrilldown.php";
$sdgShowCategoriesAsTabs = true;
## Semantic External Query Lookup
// Composer
$smwgQuerySources = array(
'smworg' => 'SMWExternalQueryLookup',
);
$seqlgExternalRepositoryEndpoints = array(
'smworg' => array(
'https://www.semantic-mediawiki.org/w/index.php/$1',
'https://www.semantic-mediawiki.org/w/api.php',
true
)
);
## Semantic Extra Special Properties
// Composer
$sespSpecialProperties = array(
'_EUSER', '_CUSER', '_REVID', '_PAGEID', '_NREV', '_NTREV',
'_SUBP', '_USERREG', '_USEREDITCNT', '_EXIFDATA'
);
$sespUseAsFixedTables = true;
$wgSESPExcludeBots = true;
// ## Semantic Forms Select
// Composer
## Semantic Glossary
// Composer
## Semantic Interlanguage Links
// Composer
## Semantic Meta Tags
// Composer
$smtgTagsProperties = array(
'keywords' => 'Meta element keywords',
'description' => 'Meta element description'
);
$smtgTagsStrings = array(
'og:site_name' => 'Semantic MediaWiki - Sandbox',
'og:image' => 'http://sandbox.semantic-mediawiki.org/w/SMWSandBoxLogo.png',
'og:image:type' => 'image/png',
'og:image:width' => '142',
'og:image:height' => '142'
);
## Semantic Notifications
// Composer
## Semantic Rating
require "extensions/SemanticRating/SemanticRating.php";
## Semantic Result Formats
// Composer
$srfgFirstDayOfWeek = 'monday';
## Semantic Scribunto
// Composer
## Semantic Sifter
// Composer
## Semantic Title
require "extensions/SemanticTitle/SemanticTitle.php";
$wgSemanticTitleProperties = array(
NS_MAIN => "Has pagetitle"
);
## Semantic Watchlist
// Composer
exception and event logging
## Exception and event logging
$wgDebugLogGroups = array(
'authentication' => "/var/log/mediawiki/{$wgDBname}-debug-authentication.log",
'smw' => "/var/log/mediawiki/{$wgDBname}-debug-smw.log"
);