Difference between revisions of "User:Megavolt/regex"

m
added "remove misc" and "prepare categories"
m (">" to "<")
m (added "remove misc" and "prepare categories")
Line 9: Line 9:
|-
|-
| rowspan="2"|Add "Special:MyLanguage" to internal links
| rowspan="2"|Add "Special:MyLanguage" to internal links
| <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 '+-_]+)\]\]</nowiki>
| <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 '+-_#]+)\]\]</nowiki>
| <nowiki>[[Special:MyLanguage/$6|&lt;translate>$6&lt;/translate>]]</nowiki>
| <nowiki>[[Special:MyLanguage/$5|&lt;translate>$5&lt;/translate>]]</nowiki>
|-
|-
| <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 '+-_]+)\|([A-Za-z0-9 '+-_]+)\]\]</nowiki>
| <nowiki>(?!\[\[(C|c)ategory:|\[\[(F|f)ile:|\[\[(I|i)mage:|\[\[(S|s)pecial:MyLanguage/)\[\[([A-Za-z0-9 '+-_#]+)\|([A-Za-z0-9 '+-_#]+)\]\]</nowiki>
| <nowiki>[[Special:MyLanguage/$5|&lt;translate>$6&lt;/translate>]]</nowiki>
| <nowiki>[[Special:MyLanguage/$5|&lt;translate>$6&lt;/translate>]]</nowiki>
|-
| Remove misc tags of the translate extension
| <nowiki>&lt;!--T:\d+--></nowiki><br /><nowiki><(/|)translate></nowiki>
|
|-
| rowspan="2" | prepare categories
| <nowiki>\[\[(:(C|c)ategory:([A-Za-z0-9 '+-_#]+))\]\]</nowiki>
| <nowiki>[[$3{{#translation:}}|&lt;translate>$3&lt;/translate>]]</nowiki>
|-
| <nowiki>\[\[(:(C|c)ategory:([A-Za-z0-9 '+-_#]+)\|([A-Za-z0-9 '+-_#]+))\]\]</nowiki>
| <nowiki>[[$3{{#translation:}}|&lt;translate>$4&lt;/translate>]]</nowiki>
|}
|}
translator
278

edits