User:SOTO/bot tricks: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
Line 52: Line 52:
=== Piped italics ===
=== Piped italics ===
<pre style="background:black!important;color:white">
<pre style="background:black!important;color:white">
python pwb.py replace -regex "\[\[(.*?) \((.*?)\)\|''\1''\]\]" "''[[\1 (\2)|\1]]''" "\[\[(.*?)\|''\1''\]\]" "''[[\1]]''" -summary:"Piped italics fix" -pt:2 -start:!
python pwb.py replace -regex "\[\[(TV|AUDIO|COMIC|PROSE|GAME|REF|DOC|WC|NOTVALID)\]\]: \[\[(.*?) \((.*?)\)\|''(.*?)''\]\]" "[[\1]]: ''[[\2 (\3)|\4]]''" -summary:"Piped italics fix: P1" -start:! -pt:2
</pre>
<pre style="background:black!important;color:white">
python pwb.py replace -regex "\[\[(.*?)\|''\1''\]\]" "''[[\1]]''" "\[\[(.*?) \((.*?)\)\|''\1''\]\]" "''[[\1 (\2)|\1]]''" -summary:"Piped italics fix: P2" -start:! -pt:2
</pre>
<pre style="background:black!important;color:white">
python pwb.py replace -regex "\[\[(.*?)\|''(.*?)''\]\]" "''[[\1|\2]]''" -summary:"Piped italics fix: P3" -start:! -pt:2
</pre>
</pre>


Cookies help us deliver our services. By using our services, you agree to our use of cookies.