Semantic MediaWiki and related extensions
|
This file describes the configuration of the Semantic Breadcrumb Links (SBL) extension.
parent > grandparent > great-grandparent
etc.) that can be found relative to the current subject. If multiple parents or children are available for a subject then only one of each can be displayed due to the nature of the breadcrumb trail.Note that the display of these aforementioned decendants is limited to 20 (1 shown directly and 19 via the dropdown) for best experience even though more may exist. This limit cannot be changed.
The output can easily be adjusted using the deployed styles (in res/sbl.styles.css
) together with the available configuration settings.
is used to assign a styling class to the breadcrumb trail and deploys with
sbl-breadcrumb-trail-boxed,
sbl-breadcrumb-trail-light, or
sbl-breadcrumb-trail-light-boxed. -
$GLOBALS['egSBLBreadcrumbDividerStyleClass']is used to assign a divider styling class and deploys with
sbl-breadcrumb-arrowand
sbl-breadcrumb-pipe`.if enabled SBL will try to match a hierarchy based on the
Foo/Bar/Bazsubpage notation for when a property search returns empty results or a namespace did not describe a property search strategy. If
egSBLUseSubpageFinderFallback` is not enabled then SBL will not try to resolve a possible subpage hierarchy.wgNamespacesWithSubpages
setting.supports the auto-generation of
Has parent page annotations for subpages. Yet, it will not create any additional assignment if
Has parent pageis already part of the
SemanticData. -
$GLOBALS['egSBLDisableTranslationSubpageAnnotation']` supports avoiding to create annotations for pages like e.g. "Example/en" where "en" is identified as translation page by the "Translate" extension. Note that this works only for any new translation revision but not for revisions in retrospect.```php $GLOBALS['egSBLBreadcrumbTrailStyleClass'] = 'sbl-breadcrumb-trail-light'; $GLOBALS['egSBLBreadcrumbDividerStyleClass'] = 'sbl-breadcrumb-arrow';
$GLOBALS['egSBLPageTitleToHideSubpageParent'] = true; $GLOBALS['egSBLEnabledSubpageParentAnnotation'] = true; $GLOBALS['egSBLDisableTranslationSubpageAnnotation'] = true;
$GLOBALS['egSBLTryToFindClosestDescendant'] = true; $GLOBALS['egSBLUseSubpageFinderFallback'] = true;
$GLOBALS['egSBLPropertySearchPatternByNamespace'] = [
// Search for a three level sub-category hierarchy NS_CATEGORY => [ '_SUBC', '_SUBC', '_SUBC' ], // Search for a three level sub-property hierarchy SMW_NS_PROPERTY => [ '_SUBP', '_SUBP', '_SUBP' ], // Search for a three level antecedent hierarchy that contains a `Has parent page` // annotation to follow a `parent > grandparent > great-grandparent` schema NS_MAIN => [ SBL_PROP_PARENTPAGE, SBL_PROP_PARENTPAGE, SBL_PROP_PARENTPAGE ], NS_HELP => [ SBL_PROP_PARENTPAGE, SBL_PROP_PARENTPAGE, SBL_PROP_PARENTPAGE ]
];