Forum:Bot Request: Difference between revisions

m
update links
No edit summary
m (update links)
 
(2 intermediate revisions by 2 users not shown)
Line 1:
<div class="forumheader">'''Forums:''' [[Forum:All The Tropes/Archive|Index]] '''&rarr;''' [[Forum:Tech Wishlist And Bug Reports/Archive|Tech Wishlist And Bug Reports]]</div>
{{#if: {{{isforum|}}} ||[[Category:Tech Wishlist And Bug Reports]]
----
We've got a consistent markup error on a lot of works pages -- I've been finding it all over various anime and manga, but they're probably elsewhere as well. Basically, the image markup is wrapped in a quote box template, which results in the redlinked text "Template:Quote box". Here's an example from ''[[Iron Man (Animeanime)]]'':
 
<code><nowiki>{{quote box|[[File:iron_man_1684.jpg|frame]]}}</nowiki></code>
Line 12:
::I was afraid of that (the trickiness of botting the problem, I mean). As far as the path issue is concerned, the files were not put in subdirectories, they're all where they're supposed to be; it's just that the original markup had path info in it, and it got preserved in the import. -- [[User:Looney Toons|Looney Toons]] ([[User talk:Looney Toons|talk]]) 17:56, 22 November 2013 (UTC)
::: <code><nowiki> s/\{\{quote box\| \[\[File: (?: lt\/)? ([^\]]+) \]\] \}\}/[[File:$1]]/ig;</nowiki></code> Now I just need a place to apply that to the data. [[User:Vorticity|Vorticity]] ([[User talk:Vorticity|talk]]) 21:32, 22 November 2013 (UTC)
:::: Can you tell I don't do regex? <sigh> -- [[User:Looney Toons|Looney Toons]] ([[User talk:Looney Toons|talk]]) 00:41, 23 November 2013 (UTC)