Reference:MergeArticles: Difference between revisions

Redaktion (talk | contribs)
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 19: Line 19:
<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
$GLOBALS['wgExtensionFunctions'][] = static function() {
$GLOBALS['wgExtensionFunctions'][] = static function() {
foreach( $GLOBALS['wgContentTransferTargets'] as $instanceName => $config ) {
    foreach( $GLOBALS['wgContentTransferTargets'] as $instanceName => $config ) {
if ( isset( $GLOBALS['bsgTranslateTransferTargets'][strtolower( $instanceName )] ) ) {
        if ( isset( $GLOBALS['bsgTranslateTransferTargets'][strtolower( $instanceName )] ) ) {
// Skip language variant wikis
            // Skip language variant wikis
continue;
        continue;
}
    }
$GLOBALS['wgContentTransferTargets'][$instanceName]['pushToDraft'] = true;
    $GLOBALS['wgContentTransferTargets'][$instanceName]['pushToDraft'] = true;
}
    }
};
};
</syntaxhighlight>
</syntaxhighlight>
Line 32: Line 32:
<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
$GLOBALS['wgExtensionFunctions'][] = static function() {
$GLOBALS['wgExtensionFunctions'][] = static function() {
foreach( $GLOBALS['wgContentTransferTargets'] as $instanceName => $config ) {
    foreach( $GLOBALS['wgContentTransferTargets'] as $instanceName => $config ) {
$GLOBALS['wgContentTransferTargets'][$instanceName]['pushToDraft'] = true;
        $GLOBALS['wgContentTransferTargets'][$instanceName]['pushToDraft'] = true;
}
    }
};
};
</syntaxhighlight>
</syntaxhighlight>

Revision as of 12:47, 2 July 2025

all extensions


Overview
Description:

Allows merging comparing and merging articles

State: stable Dependency: BlueSpice
Developer: HalloWelt License: GPL-3.0-only
Type: BlueSpice Category: Quality Assurance
Edition: BlueSpice farm (deactivated) Version:

Features

MergeArticles allows you to merge revisions of a wiki page.

If a page in BlueSpice farm is transferred to other wiki instances via the ContentTransfer extension or via BlueSpiceTranslationTransfer, the page can be saved in a draft namespace for further processing. Users then manually merge the page with an existing page revision.

Activation

Activation is done in LocalSettings.php.

Activating the draft namespace for all non-language wikis (i.e., wikis named DE, EN, NL, etc.)

$GLOBALS['wgExtensionFunctions'][] = static function() {
    foreach( $GLOBALS['wgContentTransferTargets'] as $instanceName => $config ) {
        if ( isset( $GLOBALS['bsgTranslateTransferTargets'][strtolower( $instanceName )] ) ) {
            // Skip language variant wikis
        continue;
    }
    $GLOBALS['wgContentTransferTargets'][$instanceName]['pushToDraft'] = true;
    }
};

Activating the draft namespace all wikis:

$GLOBALS['wgExtensionFunctions'][] = static function() {
    foreach( $GLOBALS['wgContentTransferTargets'] as $instanceName => $config ) {
        $GLOBALS['wgContentTransferTargets'][$instanceName]['pushToDraft'] = true;
    }
};

More info about working with the draft namespace can be found on the MergeArticles help page.

Technical Information

Technical details for BlueSpice cloud can differ in some cases.

Requirements

  • MediaWiki: 1.43.0

Integrates into

  • MergeArticles

Special pages

  • MergeArticles

Permissions

Name Description Role
merge-articles Merge pages admin

Configuration

Name Value
MADraftFilePrefix 'Draft_'
MAEnableBetaFeatures false
MAUseLineByLineDiff false

API Modules

  • ma-discard-draft
  • ma-merge-page-existing
  • ma-merge-page-new
  • ma-set-related-titles




PDF exclude - start

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

PDF exclude - end