Aller au contenu

Utilisateur:Botozor/RegexAWB

Une page de Wikipédia, l'encyclopédie libre.
  1. Pour ajouter un portail (si modèle portail existe) :
    1. <?xml version="1.0" encoding="utf-8"?><IRule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="Rule"><enabled_>false</enabled_><Children /><Name>Ajour portail</Name><ruletype_>InsideTemplate</ruletype_><replace_>Portail ?(\|? ?)?(.*)</replace_><with_>Portail | NOMPORTAILAAJOUTER|$2</with_><regex_>true</regex_><regexOptions_>IgnoreCase</regexOptions_><numoftimes_>1</numoftimes_><ifContains_ /><ifNotContains_>NOMPORTAILAAJOUTER</ifNotContains_><ifIsRegex_>false</ifIsRegex_><ifRegexOptions_>IgnoreCase</ifRegexOptions_></IRule>
  2. Pour trouver un modèle :
    1. <?xml version="1.0" encoding="utf-8"?><IRule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="Rule"><enabled_>true</enabled_><Children><IRule xsi:type="Rule"><enabled_>true</enabled_><Name>Rule</Name><ruletype_>OnWholePage</ruletype_><replace_>\| coordonnées = {{coord\|([0-9]{1,2})\|([0-9]{1,2})\|([0-9]{1,2})\|([NS])\|([0-9]{1,3})\|([0-9]{1,2})\|([0-9]{1,2})\|([EW])}}</replace_><with_>| latitude = $1/$2/$3/$4 | longitude = $5/$6/$7/$8</with_><regex_>true</regex_><regexOptions_>IgnoreCase</regexOptions_><numoftimes_>1</numoftimes_><ifContains_ /><ifNotContains_ /><ifIsRegex_>false</ifIsRegex_><ifRegexOptions_>None</ifRegexOptions_></IRule><IRule xsi:type="Rule"><enabled_>true</enabled_><Children /><Name>Rule</Name><ruletype_>OnWholePage</ruletype_><replace_>\| coordonnées = {{coord\|([0-9]{1,2})\|([0-9]{1,2})\|([NS])\|([0-9]{1,3})\|([0-9]{1,2})\|([EW])}}</replace_><with_>| latitude = $1/$2/$3 | longitude = $4/$5/$6</with_><regex_>true</regex_><regexOptions_>IgnoreCase</regexOptions_><numoftimes_>1</numoftimes_><ifContains_ /><ifNotContains_ /><ifIsRegex_>false</ifIsRegex_><ifRegexOptions_>None</ifRegexOptions_></IRule><IRule xsi:type="Rule"><enabled_>true</enabled_><Children /><Name>Rule</Name><ruletype_>OnWholePage</ruletype_><replace_>\| coordonnées = {{coord\|([0-9]{1,2})\|([0-9]{1,2})\|([0-9]{1,2})\|([NS])\|([0-9]{1,3})\|([0-9]{1,2})\|([EW])}}</replace_><with_>| latitude = $1/$2/$3/$4 | longitude = $5/$6/$7</with_><regex_>true</regex_><regexOptions_>IgnoreCase</regexOptions_><numoftimes_>1</numoftimes_><ifContains_ /><ifNotContains_ /><ifIsRegex_>false</ifIsRegex_><ifRegexOptions_>None</ifRegexOptions_></IRule><IRule xsi:type="Rule"><enabled_>true</enabled_><Children /><Name>Rule</Name><ruletype_>OnWholePage</ruletype_><replace_>\| coordonnées = {{coord\|([0-9]{1,2})\|([0-9]{1,2})\|([NS])\|([0-9]{1,3})\|([0-9]{1,2})\|([0-9]{1,2})\|([EW])}}</replace_><with_>| latitude = $1/$2/$3/ | longitude = $4/$5/$6/$7</with_><regex_>true</regex_><regexOptions_>IgnoreCase</regexOptions_><numoftimes_>1</numoftimes_><ifContains_ /><ifNotContains_ /><ifIsRegex_>false</ifIsRegex_><ifRegexOptions_>None</ifRegexOptions_></IRule></Children><Name>Rule</Name><ruletype_>InsideTemplate</ruletype_><replace_> *Infobox_Aire_protégée [^\{}]*({{[^\{}]*({{[^\{}]*}}[^\{}]*)*}}[^\{}]*)*</replace_><with_ /><regex_>true</regex_><regexOptions_>None</regexOptions_><numoftimes_>1</numoftimes_><ifContains_ /><ifNotContains_ /><ifIsRegex_>false</ifIsRegex_><ifRegexOptions_>None</ifRegexOptions_></IRule>
  • ERR
    • 67 Ponctuation devant ref <?xml version="1.0" encoding="utf-8"?><IRule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="Rule"><enabled_>true</enabled_><Name>Ponctuation après <ref></Name><ruletype_>OnWholePage</ruletype_><replace_>([\.\,\;\!\?\:]) ?< ?[Rr]ef( ?[^\<]*)> *([^\<]*)\< ?\/ ?[Rr]ef\>([^( ?\{\{)])</replace_><with_><ref$2>$3</ref>$1$4</with_><regex_>true</regex_><regexOptions_>IgnoreCase</regexOptions_><numoftimes_>1</numoftimes_><ifContains_ /><ifNotContains_ /><ifIsRegex_>false</ifIsRegex_><ifRegexOptions_>None</ifRegexOptions_></IRule>