Open wikipedia-mabdul opened 11 years ago
Unclear; what exactly is @TheOriginalSoni requesting? Could you (TOS) give an example?
/me whispers that he probably means that if a reference is inline AND in the References section, the one in the section should be nuked.
exactly. e.g.
Obama is the president of the US and A.<ref>http://whitehouse.gov/</ref>
== References ==
{{Reflist}}
* http://whitehouse.gov/
* foo
* bar
*my grandma
It seems to me that this will be fairly difficult to implement successfully without either
Then again, maybe not. I will look at this some more later; @wikipedia-mabdul if you can think of a way to do this efficiently (without a ton of searching...and...regex...and...replacing...and...repeating), i'm all ears :)
uhm? That isn't that hard: fetching all urls in a ref tag, put them in an array, get list defined urls (* https://foo) and compare them. if identical, then simply remove the "_\s_URL\s*" with ""
Yeah, that case isn't difficult – that's what i meant by "only supporting a very limited subset of matches". I was talking about the countless variations on it (like what happens if the urls aren't correctly formatted...or not in ref tags...or not in list...etc).
this simple mechanism catches ~90% and is very helpful. URLs not correctly formatted? doesn't matter, Shit in, Shit out!
not in ref tags? manual work is needed! Si,So!...
"this simple mechanism catches ~90% and is very helpful"... it does? Didn't know we had such sophisticated mental testing facilities ;)
But cool. Go for it, I guess. just watch those milliseconds...
err, would somebody (@theopolisme) please revert 8141c15854 as this was a) posted to the wrong ticket an b) to the wrong branch...
moreover I only have to figure out how to fill the array correctly... as it doesn't do it at the moment! (https://github.com/WPAFC/afch/commit/9baba3a2b550dc4cbdf9bf143f86ee7331a5b6e8#L0R1059)
Moral of this story: don't use the web interface anymore. Geez, be a bit more careful in the future, wouldja ;-)
I won't be able to do this til this evening, sorry.
a great testcase just imported from enwp to tetstwp (for not getting it deleted!)
https://test.wikipedia.org/wiki/Wikipedia_talk:Articles_for_creation/BuzzMob
if anybody find other great examples, please let me know ;-)
Wow, that's......perfect....nice find ;)
Duplication of references - both in the article as inline reference and the same as listed references under reflist (requested by {{user|TheOriginalSoni}})