User:Phil Boswell/AWB/migrate to cite book
From Wikipedia, the free encyclopedia
< User:Phil Boswell | AWB
Converting calls to deprecated template:book reference to template:cite book with WP:AWB.
Copy the code from the box below into a file settings-migrate-book-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>
<Options>
<selectsource index="1" text="Template:book reference" />
<general general="False" tagger="False" />
<categorisation index="0" text="" />
<skip does="False" doesnot="True" regex="True" doestext="" doesnottext="[Bb]ook[ _][Rr]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]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)First([ ]*=)" replacewith="$1first$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Last([ ]*=)" replacewith="$1last$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Author([ ]*=)" replacewith="$1author$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Authorlink([ ]*=)" replacewith="$1authorlink$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Coauthors([ ]*=)" replacewith="$1coauthors$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Date([ ]*=)" replacewith="$1date$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Year([ ]*=)" replacewith="$1year$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Month([ ]*=)" replacewith="$1month$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Title([ ]*=)" replacewith="$1title$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Chapter([ ]*=)" replacewith="$1chapter$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)ChapterURL([ ]*=)" replacewith="$1chapterurl$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Editor([ ]*=)" replacewith="$1editor$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Others([ ]*=)" replacewith="$1others$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Edition([ ]*=)" replacewith="$1edition$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Pages([ ]*=)" replacewith="$1pages$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Publisher([ ]*=)" replacewith="$1publisher$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)Location([ ]*=)" replacewith="$1location$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)ID([ ]*=)" replacewith="$1id$2" />
<datagridFAR find="({{[ \r\n]*[Bb]ook[ _][Rr]eference[ \r\n]*[^}]*[|][ \r\n]*)URL([ ]*=)" replacewith="$1url$2" />
<datagridFAR find="({{[ \r\n]*)[Bb]ook[ _][Rr]eference([ \r\n]*[|])" replacewith="$1cite book$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 {{book reference}} to {{[[template:cite book|cite book]]}}" />
<summaryindex index="migrate {{book reference}} to {{[[template:cite book|cite book]]}}" />
<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>

