Tech, Bureaucrats, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Suppressors, Administrators, threadmoderator
118,971
edits
No edit summary Tag: sourceedit |
No edit summary Tag: sourceedit |
||
Line 4: | Line 4: | ||
=== Step 2 === | === Step 2 === | ||
<pre>python replace.py -cat:"New category" -regex "\[\[Category:(New category)\]\]\r\n([\s\S]*)\r\n\[\[Category:(.*?)\]\]" "\2\n[[Category:\3]]\n[[Category:\1]]" -pt:1</pre> | <pre>python replace.py -cat:"New category" -regex "\[\[Category:(New category)\]\]\r\n([\s\S]*)\r\n\[\[Category:(.*?)\]\]" "\2\n[[Category:\3]]\n[[Category:\1]]" -pt:1</pre> | ||
== Adding FTRW category only if contains {{tl|wikipediainfo}} == | |||
<pre>python replace.py -catr:"Example" -regex "\{\{[Ww]ikipediainfo([\s\S]*)\[\[Category:(.*?)\]\]" "{{wikipediainfo\1[[Category:\2]]\n[[Category:Example from the real world]]" -excepttext:"Example from the real world" -pt:1</pre> | |||
[[Category:User SOTO]] | [[Category:User SOTO]] |
edits