Wiki talk:LocalSettings.php
From Vermont Area Group of Unix Enthusiasts
I run these Emacs search and replacement regular expressions and perform them globally on LocalSettings.php.
"^\$\(\w+\)\(.*?\)[ ]*=[ ]*\(.*\);.*$" -> "; [[MW:Manual:$\1|\1]]<nowiki>\2</nowiki>: <nowiki>\3</nowiki>"
<nowiki></nowiki> -> ""
@ -> " at "
A more appropriate solution is written as a Perl and Grep pipeline.
perl -p -e 's"^\$(\w+)(.*?)[ ]*=[ ]*(.*);.*$"; [[MW:Manual:\$\1|\1]]<nowiki>\2</nowiki>: <nowiki>\3</nowiki>";' \
-e 's"<nowiki></nowiki>"";' \
-e 's/@/ at /g;' \
| grep -ve 'wg\(DB\(server\|name\|user\|password\)\|ProxyKey\)' \
-e configdate \
| grep -vFe '$path' \
| grep -e '^; '

