Jump to content

User:Phil Boswell/AWB/migrate to cite journal

From Wikipedia, the free encyclopedia

Converting calls to deprecated template:journal reference to template:cite journal

settings.xml for WP:AWB (works in version 1.9.0.0)

USE AT YOUR OWN RISK. NO WARRANTY FOR CORRECTNESS.

Please carefully check each diff before saving!

<?xml version="1.0" encoding="utf-8"?>
<Settings>
  <Options>
    <selectsource index="1" text="Template:journal reference" />
    <general general="False" tagger="False" />
    <categorisation index="0" text="" />
    <skip does="False" doesnot="True" regex="True" doestext="" doesnottext="[Jj]ournal[ _]reference" />
    <message enabled="False" text="" />
  </Options>
  <FindAndReplaceSettings>
    <findandreplace enabled="True" regex="True" casesensitive="True" />
    <datagridFAR find="{{[ \r\n]*[dD]OI[ \r\n]*[|]" replacewith="{{doi|" />
    <datagridFAR find="{{([ \r\n]*[dD]oi[ \r\n|]*[^}]*)}}" replacewith="§§$1€€" />
    <datagridFAR find="{{([ \r\n]*[aA]rxiv[ \r\n|]*[^}]*)}}" replacewith="§§$1€€" />
    <datagridFAR find="({{[ \r\n]*)[Tt]emplate[:]" replacewith="$1" />
    <datagridFAR find="({{[ \r\n]*)[Jj]ournal[ _]reference[ _]novolume([ \r\n]*[|])" replacewith="$1journal reference$2" />
    <datagridFAR find="({{[ \r\n]*)[Jj]ournal[ _]reference[ _]issue([ \r\n]*[|])" replacewith="$1journal reference$2" />
    <datagridFAR find="({{[ \r\n]*)[Jj]ournal[ _]reference[ _]url([ \r\n]*[|])" replacewith="$1journal reference$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)First([ ]*=)" replacewith="$1first$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Last([ ]*=)" replacewith="$1last$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Author([ ]*=)" replacewith="$1author$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Authorlink([ ]*=)" replacewith="$1authorlink$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Coauthors([ ]*=)" replacewith="$1coauthors$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Title([ ]*=)" replacewith="$1title$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Journal([ ]*=)" replacewith="$1journal$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Volume([ ]*=)" replacewith="$1volume$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Issue([ ]*=)" replacewith="$1issue$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Number([ ]*=)" replacewith="$1issue$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Pages([ ]*=)" replacewith="$1pages$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Publisher([ ]*=)" replacewith="$1publisher$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)PublishYear([ ]*=)" replacewith="$1publishyear$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Work([ ]*=)" replacewith="$1work$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Date([ ]*=)" replacewith="$1date$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Year([ ]*=)" replacewith="$1year$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Month([ ]*=)" replacewith="$1month$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)URL([ ]*=)" replacewith="$1url$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)ID([ ]*=)" replacewith="$1id$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Ref([ ]*=)" replacewith="$1ref$2" />
    <datagridFAR find="({{[ \r\n]*[Jj]ournal[ _]reference[ \r\n]*[^}]*[|][ \r\n]*)Format([ ]*=)" replacewith="$1format$2" />
    <datagridFAR find="§§" replacewith="{{" />
    <datagridFAR find="€€" replacewith="}}" />
    <datagridFAR find="({{[ \r\n]*)[Jj]ournal[ _]reference([ \r\n]*[|])" replacewith="$1cite journal$2" />
    <datagridFAR find="({{[ \r\n]*[Cc]ite[ _]journal[ \r\n]*[|][^}]*)}}[ \r\n]+\[?PMID[ ]([0-9]+)\]?" replacewith="$1 | id=PMID $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="migrate {{[[template:journal reference|journal reference]]}} to {{[[template:cite journal|cite journal]]}}" />
    <summaryindex index="migrate {{[[template:journal reference|journal reference]]}} to {{[[template:cite journal|cite journal]]}}" />
    <find text="" />
    <menu>
      <wordwrap enabled="True" />
      <bypass enabled="True" />
      <skipnochanges enabled="False" />
      <preview enabled="False" />
      <minor enabled="False" />
      <watch enabled="False" />
      <timer enabled="True" />
      <sortinterwiki enabled="False" />
      <sortcats enabled="False" />
    </menu>
  </startoptions>
</Settings>