Talk:Pywikibot/template.py: Difference between revisions
Latest comment: 15 years ago by Xeno in topic New entry for regex matches
Content deleted Content added
Spacebirdy (talk | contribs) |
→New entry for regex matches: new section |
||
Line 5: | Line 5: | ||
:Syntax? Maybe run it <code style="background:steelblue;color:white">template.py -remove "templatename"</code> Do You have the newest version, have You visited {{channel|pywikipediabot}} (they are quite helpful there). Best regards, --[[User:Spacebirdy|birdy <small>geimfyglið</small>]] [[User_talk:Spacebirdy|<sub>(:> )=|</sub>]] [[commons:User:Spacebirdy/Myndir|<small>∇</small>]] 11:12, 30 June 2008 (UTC) |
:Syntax? Maybe run it <code style="background:steelblue;color:white">template.py -remove "templatename"</code> Do You have the newest version, have You visited {{channel|pywikipediabot}} (they are quite helpful there). Best regards, --[[User:Spacebirdy|birdy <small>geimfyglið</small>]] [[User_talk:Spacebirdy|<sub>(:> )=|</sub>]] [[commons:User:Spacebirdy/Myndir|<small>∇</small>]] 11:12, 30 June 2008 (UTC) |
||
== New entry for regex matches == |
|||
When there is a space between {{Template: and the template being replaced, i.e. |
|||
<pre> |
|||
{{template: User moxie}} |
|||
</pre> |
|||
[http://en.wikipedia.org/w/index.php?title=User:MF14&diff=285461937&oldid=239803259 cf.] –<font face="Verdana">[[User:Xeno|<font color="black">'''xeno'''</font>]] ([[User talk:Xeno|<font color="black">talk</font>]])</font> 15:36, 22 April 2009 (UTC) |
Revision as of 15:36, 22 April 2009
-remove doesn't remove
Running template.py -remove template_name gives me a bunch of results like:
No changes were necessary in [[Help:Copying]]
Any idea why it won't remove the template? --w:User:Naught101 00:54, 30 June 2008 (UTC)
- Syntax? Maybe run it
template.py -remove "templatename"
Do You have the newest version, have You visited #pywikipediabotconnect (they are quite helpful there). Best regards, --birdy geimfyglið (:> )=| ∇ 11:12, 30 June 2008 (UTC)
New entry for regex matches
When there is a space between {{Template: and the template being replaced, i.e.
{{template: User moxie}}