Jump to content

英文维基 | 中文维基 | 日文维基 | 草榴社区

User:Pathoschild/Projects/Template substitution

From Wikipedia, the free encyclopedia
Pathoschilduserspace map ] (template substitution lists)

This page contains bot-parseable lists of templates that should be substituted according to Wikipedia:Template substitution, as well as ready-made bot settings files. If you use this list, please link to this page in the edit summary so other bot operators can use this list. If you find a template that isn't on this list, but should be, please add it under #Uncategorised templates. These will be periodically added to this list and Wikipedia:Template substitution.


Raw list

[edit]

This list was last compiled from Wikipedia:Template substitution at 02:41, 12 September 2006 (UTC). The regex used to compile the list is [^{}]*({{[^}]*}})[^{}]* with $1/n.

{{3RR2}}
{{3RR3}}
{{3RR}}
{{afd bottom}}
{{afd top}}
{{afd}}
{{afd}}
{{albumcover}}
{{Album Image}}
{{anon vandal}}
{{anon}}
{{archivebox}}
{{attack}}
{{Award2}}
{{Award}}
{{bio-cats}}
{{blanking1}}
{{blanking2}}
{{blanking3}}
{{blanking4}}
{{blatantvandal}}
{{bv}}
{{chembox simple inorganic}}
{{chembox simple organic}}
{{chembox}}
{{conv-dist}}
{{conv-temp}}
{{debate bottom}}
{{debate top}}
{{doctl}}
{{drmafd2}}
{{drmafd3}}
{{drmafd4}}
{{drmafd5}}
{{drmafd}}
{{Editsummarynew}}
{{Edit summary personal}}
{{Edit summary}}
{{F1 race table}}
{{Footnotestext}}
{{footnotes}}
{{image copyright}}
{{image source}}
{{lived}}
{{mfd bottom}}
{{mfd top}}
{{mfd}}
{{MIPblock}}
{{Move2}}
{{multipleIPs}}
{{name your images}}
{{newvoter}}
{{nld}}
{{nn-warn}}
{{nobr}}
{{No personal attacks}}
{{nothanks-sd}}
{{nothanks}}
{{Npa2}}
{{Npa3}}
{{Npa4}}
{{Npa}}
{{nsd}}
{{obscene}}
{{oldmfd}}
{{Prettyinfobox}}
{{Prettytable-center2}}
{{Prettytable-center}}
{{Prettytable95}}
{{Prettytable100center}}
{{Prettytable100}}
{{PrettytableN}}
{{Prettytablewidth}}
{{prettytable}}
{{prod}}
{{sofixit}}
{{spam2a}}
{{spam2}}
{{spam3}}
{{spam4}}
{{spam}}
{{subst}}
{{sub}}
{{Summary}}
{{sup}}
{{test-n}}
{{test-self}}
{{test0}}
{{test1}}
{{test2-n}}
{{test2a-n}}
{{test2a}}
{{test2a}}
{{test2b}}
{{test2}}
{{test3-n}}
{{test3}}
{{test4-n}}
{{test4a}}
{{test4}}
{{test5}}
{{test6}}
{{test}}
{{TFAfooter}}
{{tilde}}
{{tmfrom}}
{{tmto}}
{{UsernameBlocked}}
{{vanity}}
{{vblock}}
{{verror2}}
{{verror3}}
{{verror4}}
{{verror}}
{{vw}}
{{welcome-anon-from}}
{{welcome-anon}}
{{welcome2}}
{{welcome3}}
{{welcome4}}
{{welcomeip}}
{{welcome}}
{{WP:RM}}

Regex

[edit]

This regex substitutes all templates on the raw list above, taking into account possible parameters as well as deprecated msg: and template: syntax. This regex was last updated 02:41, 12 September 2006 (UTC). If you (or your bots) use this code, please link to this page in your edit summary so others can use it as well.

Search:

{{(?:msg:|template:)?((?:3RR2|3RR3|3RR|afd[_ ]bottom|afd[_ ]top|afd|afd|albumcover|Album[_ ]Image|anon[_ ]vandal|anon|archivebox|attack|Award2|Award|bio-cats|blanking1|blanking2|blanking3|blanking4|blatantvandal|bv|chembox[_ ]simple[_ ]inorganic|chembox[_ ]simple[_ ]organic|chembox|conv-dist|conv-temp|debate[_ ]bottom|debate[_ ]top|doctl|drmafd2|drmafd3|drmafd4|drmafd5|drmafd|Editsummarynew|Edit[_ ]summary[_ ]personal|Edit[_ ]summary|F1[_ ]race[_ ]table|Footnotestext|footnotes|image[_ ]copyright|image[_ ]source|lived|mfd[_ ]bottom|mfd[_ ]top|mfd|MIPblock|Move2|multipleIPs|name[_ ]your[_ ]images|newvoter|nld|nn-warn|nobr|No[_ ]personal[_ ]attacks|nothanks-sd|nothanks|Npa2|Npa3|Npa4|Npa|nsd|obscene|oldmfd|Prettyinfobox|Prettytable-center2|Prettytable-center|Prettytable95|Prettytable100center|Prettytable100|PrettytableN|Prettytablewidth|prettytable|prod|sofixit|spam2a|spam2|spam3|spam4|spam|subst|sub|Summary|sup|test-n|test-self|test0|test1|test2-n|test2a-n|test2a|test2a|test2b|test2|test3-n|test3|test4-n|test4a|test4|test5|test6|test|TFAfooter|tilde|tmfrom|tmto|UsernameBlocked|vanity|vblock|verror2|verror3|verror4|verror|vw|welcome-anon-from|welcome-anon|welcome2|welcome3|welcome4|welcomeip|welcome|WP:RM)(?:\|[^\}]*)?)}}

Replace using Perl:

{{subst:\1}}

Replace using .NET (AutoWikiBrowser) or PHP:

{{subst:$1}}

AutoWikiBrowser settings file

[edit]

This is a dump of the recommended settings for template substitution using the AutoWikiBrowser semi-bot. This dump was last updated 02:41, 12 September 2006 (UTC).

<?xml version="1.0" encoding="utf-8"?>
<Settings program="AWB" schema="2">
  <Project>
    <projectlang proj="wikipedia" lang="en" />
  </Project>
  <Options>
    <selectsource index="2" text="" />
    <general general="False" tagger="False" unicodifyer="False" />
    <categorisation index="0" text="" />
    <skip does="False" doesnot="False" regex="False" casesensitive="False" doestext="" doesnottext="" />
    <message enabled="False" text="" append="True" />
    <automode delay="1" quicksave="False" suppresstag="True" />
    <imager index="0" replace="" with="" />
  </Options>
  <regextypofix>
    <regextypofixproperties enabled="False" skipnofixed="False" />
  </regextypofix>
  <FindAndReplaceSettings>
    <findandreplacesettings enabled="True" ignorenofar="True" ignoretext="False" appendsummary="False" afterotherfixes="False">
      <FindAndReplace find="{{(?:msg:|template:)?((?:3RR2|3RR3|3RR|afd[_ ]bottom|afd[_ ]top|afd|afd|albumcover|Album[_ ]Image|anon[_ ]vandal|anon|archivebox|attack|Award2|Award|bio-cats|blanking1|blanking2|blanking3|blanking4|blatantvandal|bv|chembox[_ ]simple[_ ]inorganic|chembox[_ ]simple[_ ]organic|chembox|conv-dist|conv-temp|debate[_ ]bottom|debate[_ ]top|doctl|drmafd2|drmafd3|drmafd4|drmafd5|drmafd|Editsummarynew|Edit[_ ]summary[_ ]personal|Edit[_ ]summary|F1[_ ]race[_ ]table|Footnotestext|footnotes|image[_ ]copyright|image[_ ]source|lived|mfd[_ ]bottom|mfd[_ ]top|mfd|MIPblock|Move2|multipleIPs|name[_ ]your[_ ]images|newvoter|nld|nn-warn|nobr|No[_ ]personal[_ ]attacks|nothanks-sd|nothanks|Npa2|Npa3|Npa4|Npa|nsd|obscene|oldmfd|Prettyinfobox|Prettytable-center2|Prettytable-center|Prettytable95|Prettytable100center|Prettytable100|PrettytableN|Prettytablewidth|prettytable|prod|sofixit|spam2a|spam2|spam3|spam4|spam|subst|sub|Summary|sup|test-n|test-self|test0|test1|test2-n|test2a-n|test2a|test2a|test2b|test2|test3-n|test3|test4-n|test4a|test4|test5|test6|test|TFAfooter|tilde|tmfrom|tmto|UsernameBlocked|vanity|vblock|verror2|verror3|verror4|verror|vw|welcome-anon-from|welcome-anon|welcome2|welcome3|welcome4|welcomeip|welcome|WP:RM)(?:\|[^\}]*)?)}}" replacewith="{{subst:$1}}" casesensitive="False" regex="True" multi="True" single="False" enabled="True" maxnumber="-1" />
    </findandreplacesettings>
  </FindAndReplaceSettings>
  <FindAndReplace>
    <replacerules enabled="True">
      <rule name="Rule" type="0" enabled="True" />
    </replacerules>
  </FindAndReplace>
  <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="[[WP:RETF|RETF]]" />
    <summary text="bad link repair.  [[Wikipedia:Bad links|You can help!]]" />
    <summary text="Fixing [[Wikipedia:Disambiguation pages with links|links to disambiguation pages]]" />
    <summary text="Unicodifying" />
    <summary text="use by-date category" />
    <summary text="[bot] cleared old IP talk page" />
    <summary text="[bot] template substitution (using [[User:Pathoschild/Projects/Template substitution|bot-parseable lists]])" />
    <summaryindex index="[bot] template substitution using [[User:Pathoschild/Projects/Template substitution|bot-parseable lists]]" />
    <find text="" regex="False" casesensitive="False" />
    <menu>
      <wordwrap enabled="True" />
      <toolbar enabled="True" />
      <bypass enabled="False" />
      <ingnorenonexistent enabled="False" />
      <noautochanges enabled="False" />
      <skipnochanges enabled="False" />
      <preview enabled="False" />
      <minor enabled="False" />
      <watch enabled="False" />
      <timer enabled="False" />
      <sortinterwiki enabled="True" />
      <addignoredtolog enabled="False" />
    </menu>
    <plugins />
  </startoptions>
  <pastemore>
    <pastemore1 text="" />
    <pastemore2 text="" />
    <pastemore3 text="" />
    <pastemore4 text="" />
    <pastemore5 text="" />
    <pastemore6 text="" />
    <pastemore7 text="" />
    <pastemore8 text="" />
    <pastemore9 text="" />
    <pastemore10 text="" />
  </pastemore>
  <preferences>
    <preferencevalues enhancediff="True" scrolldown="True" difffontsize="150" textboxfontsize="10" textboxfont="Courier New" lowthreadpriority="False" flashandbeep="True" />
  </preferences>
</Settings>

Uncategorised templates

[edit]

Templates which should be substituted but aren't listed as such at Wikipedia:Template substitution should be listed here. These will be periodically put up for discussion at Wikipedia:Template substitution for community consensus.

{{ab}}
{{at}}
{{bv-n}}
{{CompromisedWebHostVandal}}
{{FAC}}
{{hoax}}
{{indefblockeduser}}
{{sockpuppet}}
{{vb}}
{{vt}}
{{conflict}}