Jump to content

User:Phil Boswell/AWB/migrate to cite web

From Wikipedia, the free encyclopedia

Converting calls to deprecated template:web reference to template:cite web with WP:AWB.


Copy the code from the box below into a file settings-migrate-web-ref.xml and load that into WP:AWB.

USE AT YOUR OWN RISK. NO WARRANTY FOR CORRECTNESS.

Please carefully check each diff before saving!

<?xml version="1.0" encoding="utf-8"?>
<Settings>
  <Project>
    <projectlang proj="wikipedia" lang="en" />
  </Project>
  <Options>
    <selectsource index="1" text="Template:web reference" />
    <general general="False" tagger="False" />
    <categorisation index="0" text="" />
    <skip does="False" doesnot="True" regex="True" casesensitive="True" doestext="" doesnottext="[Ww]eb[ _]+[r]eference" />
    <message enabled="False" text="" />
  </Options>
  <FindAndReplaceSettings>
    <findandreplace enabled="True" regex="True" casesensitive="True" />
    <datagridFAR find="({{[ \r\n]*)[Tt]emplate[:]" replacewith="$1" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][ \r\n]*)[Dd]ate([ \r\n]*=)" replacewith="$1accessdate$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][^}]*[ \r\n|])[Dd]ate([ \r\n]*=)" replacewith="$1accessdate$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][ \r\n]*)[Yy]ear([ \r\n]*=)" replacewith="$1accessyear$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][^}]*[ \r\n|])[Yy]ear([ \r\n]*=)" replacewith="$1accessyear$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][ \r\n]*)Author([ \r\n]*=)" replacewith="$1author$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][^}]*[ \r\n|])Author([ \r\n]*=)" replacewith="$1author$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][ \r\n]*)[Pp]ublish[Yy]ear([ \r\n]*=)" replacewith="$1year$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][^}]*[ \r\n|])[Pp]ublish[Yy]ear([ \r\n]*=)" replacewith="$1year$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][ \r\n]*)URL([ \r\n]*=)" replacewith="$1url$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][^}]*[ \r\n|])URL([ \r\n]*=)" replacewith="$1url$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][ \r\n]*)Title([ \r\n]*=)" replacewith="$1title$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][^}]*[ \r\n|])Title([ \r\n]*=)" replacewith="$1title$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][ \r\n]*)Format([ \r\n]*=)" replacewith="$1format$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][^}]*[ \r\n|])Format([ \r\n]*=)" replacewith="$1format$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][ \r\n]*)Work([ \r\n]*=)" replacewith="$1work$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][^}]*[ \r\n|])Work([ \r\n]*=)" replacewith="$1work$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][ \r\n]*)Publisher([ \r\n]*=)" replacewith="$1publisher$2" />
    <datagridFAR find="({{[ \r\n]*[Ww]eb[ _]+[r]eference[ \r\n]*[|][^}]*[ \r\n|])Publisher([ \r\n]*=)" replacewith="$1publisher$2" />
    <datagridFAR find="({{[ \r\n]*)[Ww]eb[ _]+[r]eference([ \r\n]*[|])" replacewith="$1cite web$2" />
  </FindAndReplaceSettings>
  <startoptions>
    <summary text="clean up" />
    <summary text="re-categorisation per [[WP:CFD|CFD]]" />
    <summary text="clean up and  re-categorisation per [[WP:CFD|CFD]]" />
    <summary text="removing category per [[WP:CFD|CFD]]" />
    <summary text="[[Wikipedia:Template substitution|subst:'ing]]" />
    <summary text="stub sorting" />
    <summary text="clean up + typo fix" />
    <summary text="bad link repair.  [[Wikipedia:Bad links|You can help!]]" />
    <summary text="replacing deprecated {{web reference}} with {{[[template:cite web|cite web]]}}" />
    <summaryindex index="replacing deprecated {{web reference}} with {{[[template:cite web|cite web]]}}" />
    <find text="" regex="False" casesensitive="False" />
    <menu>
      <wordwrap enabled="True" />
      <bypass enabled="True" />
      <noautochanges enabled="False" />
      <skipnochanges enabled="False" />
      <preview enabled="False" />
      <minor enabled="False" />
      <watch enabled="False" />
      <timer enabled="True" />
      <sortinterwiki enabled="False" />
      <sortcats enabled="False" />
    </menu>
  </startoptions>
</Settings>