Recent changes transclusion and Reference:BlueSpiceDiscovery: Difference between pages

(Difference between pages)
No edit summary
 
No edit summary
 
Line 1: Line 1:
It is possible to include the results of the "Recent changes" special page in a wiki page.
{{BSExtensionInfo
 
|status=stable
== Adding the changelist to a page ==
|developer=Hallo Welt!
To show the Recent changes list on any page in the wiki, you can simply transclude it by adding the following to your page source:<syntaxhighlight lang="text">
|type=BlueSpice
{{Special:RecentChanges}}
|edition=BlueSpice pro, BlueSpice free, BlueSpice Farm, BlueSpice Cloud
</syntaxhighlight>This will simply output the same content as is shown on the page ''Special:RecentChanges''.
|compatible=BlueSpice
[[File:Include Recent changes.png|alt=Recent changes included in a wiki page|center|thumb|650x650px|Recent changes included in a wiki page]]
|category=Skinning
 
|features=Default skin for BlueSpice 4.1
== Limiting the displayed information ==
}}
Sometimes, you might want to limit the information that is shown for recent changes.
{{wcagCheck
[[File:recent changes filtered include.png|link=https://en.wiki.bluespice.com/wiki/File:recent%20changes%20filtered%20include.png|alt=Recent changes filtered view|center|thumb|500x500px|Recent changes filtered view]]
|wcagStatus=2-testing complete
 
|wcagCheckedfor=Web, Authoring tool
 
|wcagTestdate=2022-08-04
To do this, you need to make two changes:
|wcagLevel=AA
 
|wcagSupport=supports
# '''Add a wrapper and filter paramters:''' Apply a wrapper around your transclusion  for formatting purposes and add some filter parameters to limit the results in the list.
|extensionType=core
# '''Format the output:''' Remove the unnecessary information through some style adjustment in the page MediaWiki:Common.css (admin rights required)
|extensionFocus=reader
 
}}
=== Add a wrapper and filter parameters ===
You can set some parameters in the tag to filter some information. The following example shows up to the latest 100 changes in the last 7 days in the main namespace (Pages):<syntaxhighlight lang="text">
<div class="rcinclude">{{Special:RecentChanges|limit=100|days=7|namespace=0}}</div>
</syntaxhighlight>To show changes in additional namespaces, add them to the namepace parameter, separated by a semi-colon:<syntaxhighlight lang="text">
<div class="rcinclude">{{Special:RecentChanges|limit=100|days=7|namespace=0;3010}}</div>
</syntaxhighlight>
 
=== Format the output ===
After adding the <nowiki><div class="rinclude">...</div></nowiki> wrapper around your transclusion content, you can now use this rinclude class to style the output and to hide some unnecessary information. This class is important, because it ensures that  other pages in the wiki, such as the actual "Recent changes" special page or  the version history pages in your wiki are not affected by these changes.
 
To filter out additional detail information — such as change in file size, markers, or direct links to the version comparison —, add the following to the page ''MediaWiki:Common.css'' (admin rights required):<syntaxhighlight lang="text">
/** custom formatting for recent changes that are included on a wiki page with a div-wrapper of css-class .rcinclude **/
 
/* first style declaration hides all unnecessary info such as bytes, direct links to differences, links related to user, and markers */
.rcinclude .mw-changeslist-line-inner-userTalkLink,
.rcinclude .mw-diff-bytes,
.rcinclude .mw-tag-markers,
.rcinclude .mw-changeslist-legend,
.rcinclude .mw-changeslist-line-inner-rollback,
.rcinclude .mw-changeslist-links,
.rcinclude .mw-changeslist-separator,
.rcinclude.mw-rollback-link,
.rcinclude .mw-rollback-link {display:none}
 
/* remove the "New" indicator from the time in front of each entry - they can only be removed together */
.rcinclude td.mw-enhanced-rc {display:none}
 
/* increase spacing between entries */
.rcinclude .mw-changeslist-line {margin-bottom:0.6em}  
 
/* separate page title and user name */
.rcinclude .mw-title::after {content:" -"}
 
/* make the day heading more compact */
.rcinclude .mw-changeslist h4 {font-size:0.95em; margin:1em 0 0.5em 0} 
 
/* remove unnecessary space in the expanded version rows */
.rcinclude tr.mw-rcfilters-ui-highlights-enhanced-nested td:nth-child(3){display:none} 
 
/** end recent changes formatting  **/
</syntaxhighlight>After saving these changes in MediaWiki:Common.css, you should now see the modified output of the transcluded content as shown in the previous screenshot.
 
If you still see the original formatting, you will need to clear the network cache:
 
# '''Right-click''' on the wiki page that contains the "Recent changes" transclusion.
# '''Click''' ''Inspect''.
# Activate Disable cache
# '''Press''' ''F5'' on your keyboard to refresh the page.
 
[[File:disable caching.png|alt=disable network cache|center|thumb|650x650px|disable network cache]]
[[en:{{FULLPAGENAME}}]]
[[de:Letzte Änderungen Transklusion]]

Revision as of 09:18, 4 August 2022

Skin:BlueSpiceDiscovery

all extensions

Overview
Description:

BlueSpice skin

State: stable Dependency: BlueSpice
Developer: Hallo Welt! License: GPL-3.0-only
Type: BlueSpice Category: Skinning
Edition: BlueSpice pro, BlueSpice free, BlueSpice Farm, BlueSpice Cloud Version: 4.1+

Features

Default skin for BlueSpice 4.1

Technical Information

This information applies to BlueSpice 4. Technical details for BlueSpice Cloud can differ in some cases.

Requirements

  • MediaWiki: 1.39.0

Integrates into

  • BlueSpiceDiscovery
  • BlueSpicePrivacy
  • FlexiSkin
  • MenuEditor

Special pages

Configuration

Name Value
DiscoveryHardWiredLangLinks array ( )
DiscoveryLangLinksMode 'subpages'
DiscoveryMainLinksAllPages true
DiscoveryMainLinksCategories false
DiscoveryMainLinksListFiles false
DiscoveryMainLinksMainpage true
DiscoveryMainLinksRecentChanges true
DiscoveryMetaItemsFooter array ( )
DiscoveryMetaItemsHeader array ( )
DiscoverySidebarPrimaryMainTabPanelMenu 'mediawiki-sidebar'
DiscoveryTemplateDataProvider 'bluespice'
LayoutEnabled 'bluespice'
LayoutRenderer 'BlueSpice\\Discovery\\Renderer\\SkinLayoutRenderer::factory'

Hooks

Accessibility

Test status: 2-testing complete
Checked for: Web, Authoring tool
Last test date: 2022-08-04
WCAG level: AA
WCAG support: supports
Extension type: core
Extension focus: reader



To submit feedback about this documentation, visit our community forum.

Discussions