Topic on Project:Support desk

Move piece of text into the infobox

3
Gachangi (talkcontribs)
MediaWiki 1.35.4
PHP 7.4.26 (apache2handler)
MariaDB 10.3.32-MariaDB-0ubuntu0.20.04.1
ICU 66.1

I have about 12,000 pages that have this piece of text in this format (- Reference number: ORG1234\PUB) in the wrong place at the bottom after citations. The number that keeps changing is the one in bold but the rest remains the same in all the affected pages. I have created an infobox field to capture this in future and the challenge I now have is how to mass copy that piece of text across all pages having this to the new infobox field.

AhmadF.Cheema (talkcontribs)

See Manual:Edit.php.

The maintenance scripts edit.php in combination with getText.php should work. However, you'll have to work out the somewhat complicated text transformation steps which will work for your purpose.

Bawolff (talkcontribs)
Reply to "Move piece of text into the infobox"