Reference:Replace Text: Difference between revisions

m (1 revision imported)
No edit summary
 
(6 intermediate revisions by one other user not shown)
Line 4: Line 4:
|developer=Yaron Koren, Niklas Laxström
|developer=Yaron Koren, Niklas Laxström
|type=MediaWiki
|type=MediaWiki
|edition=BlueSpice free, BlueSpice pro, BlueSpice Farm, BlueSpice Cloud
|edition=BlueSpice pro, BlueSpice free (deactivated), BlueSpice Farm, BlueSpice Cloud
|active=Yes
|compatible=MediaWiki
|compatible=MediaWiki
|category=Administration
|category=Administration
|license=GPL v2+
|license=GPL v2+
|docu=https://www.mediawiki.org/wiki/Extension:Replace_Text
|docu=https://www.mediawiki.org/wiki/Extension:Replace_Text
|features=<div class="hw-messagebox notification-note "><span class="boxlabel">Note:</span>The replace text operation is a deferred operation and is placed in the job queue. It is possible that the changes are not immediately shown on all affected pages.
''runJobs.php'' can be run from the ''maintenance'' folder to do the replacement immediately and to process the job queue.</div><span></span>
}}
}}
The '''ReplaceText''' extension from MediaWiki allows to change text passages in pages or page titles throughout the entire wiki. The existing text and the replacement text can be entered in a form. The extension searches for these words or text passages and replaces them after a confirmation screen. Filters and configurations are available. In addition to this, complex text changes can be achieved by using placeholders and regular expressions.  
{{wcagCheck
|wcagStatus=2-testing complete
|wcagCheckedfor=Authoring tool
|wcagTestdate=2022-08-08
|wcagLevel=AA
|wcagSupport=partially supports
|wcagWorkaround=no
|wcagComments=keyboard accessible.


Changes on the page title result in moving the original page - according to the wiki principle. There are some configurations for the moved page.
Screenreader issues: no form field labels, warning box has no aria-label; initial focus for replacement founds is not set, so it is difficult to select pages.
|extensionType=extended
|extensionFocus=admin
}}
'''ReplaceText''' is a  MediaWiki extension that provides both a special page and a command line script that allows administrators to search and replace any text in wiki pages and titles across the wiki.


For more information visit [[mediawikiwiki:Extension:Replace_Text|MediaWiki]].


{{Translation}}
Replacing the text is done in 3 steps on the ''Special:ReplaceText'' page:


[[Category:BlueSpice free]]
# Entering the existing and the new text as well as selecting the namespaces and other options
[[Category:MediaWiki]]
# Checking the pages on which the text appears. Possible adjustment of the page selection
[[Category:Extension]]
# Performing the replacement.

Latest revision as of 11:01, 22 May 2023

Extension: Replace Text

all extensions

Overview
Description: Provides a form to let administrators do string replacements on the entire wiki, for both page contents and page titles.
State: stable Dependency: MediaWiki
Developer: Yaron Koren, Niklas Laxström License: GPL v2+
Type: MediaWiki Category: Administration
Edition: BlueSpice pro, BlueSpice free (deactivated), BlueSpice Farm, BlueSpice Cloud Version: 4.1+
For more info, visit Mediawiki.

Features

Note:The replace text operation is a deferred operation and is placed in the job queue. It is possible that the changes are not immediately shown on all affected pages. runJobs.php can be run from the maintenance folder to do the replacement immediately and to process the job queue.

Accessibility

Test status: 2-testing complete
Checked for: Authoring tool
Last test date: 2022-08-08
WCAG level: AA
WCAG support: partially supports (workaround: no)
Comments:

keyboard accessible.

Screenreader issues: no form field labels, warning box has no aria-label; initial focus for replacement founds is not set, so it is difficult to select pages.

Extension type: extended
Extension focus: admin

ReplaceText is a MediaWiki extension that provides both a special page and a command line script that allows administrators to search and replace any text in wiki pages and titles across the wiki.


Replacing the text is done in 3 steps on the Special:ReplaceText page:

  1. Entering the existing and the new text as well as selecting the namespaces and other options
  2. Checking the pages on which the text appears. Possible adjustment of the page selection
  3. Performing the replacement.

Discussions