User:Keller999/projects/gamepageupdate: Difference between revisions

m
→‎Version 1.02 Updated: Comment cleanup for things that we've either agreed not to fix, or have been fixed.
m (v1.02.2 of dolphinpageupdate.pl)
m (→‎Version 1.02 Updated: Comment cleanup for things that we've either agreed not to fix, or have been fixed.)
Line 30: Line 30:


:Some feedback...
:Some feedback...
:*<span style="text-decoration: line-through;">"Gameplay" is a non-standard section, and should be purged rather than specially handled</span> Was confused by the handler for "Gameplay Videos", may still need to watch out for the undesired "Gameplay" section on some pages though.
::*This should be handled properly.  The regex looking for "Gameplay Videos" is /^\ *\={1,4}\ *Gameplay\ {1,}Videos\ *\=*$/i , so the key term Videos is required for it to be detected.  Anything in the Gameplay section at the top of the page will get stored in the description, and will be re-used if no Wikipedia data is supplied.  I would consider this a manual cleanup need -- I'm erring on the side of KEEPING data with the script, in case we ever automate it.
:::*I'd like to purge any "== Gameplay ==" sections that exist, but since I think there are only a couple of such that's probably more easily handled manually.[[User:Kolano|Kolano]] 02:59, 22 August 2011 (CEST)
::::*Agreed -- this is better taken care of on a case-by-case basis rather than specifically scripting for it. --[[User:Keller999|Keller999]] 04:03, 22 August 2011 (CEST)
:*Some pages have a section at their end for outside links (i.e. Wikipedia, Dolphin forum posts, etc.) not clear that's handled here. Such requires some cleanup as I think different section titles are used on different pages, though I believe it is consistently the last section on the page.
:*Some pages have a section at their end for outside links (i.e. Wikipedia, Dolphin forum posts, etc.) not clear that's handled here. Such requires some cleanup as I think different section titles are used on different pages, though I believe it is consistently the last section on the page.
::*Currently anything after Gameplay Videos but before categories/nav will be lumped in with Gameplay Videos.  I'm not currently doing any processing on Gameplay Videos at all, so the entry would be preserved exactly as-is.  This may need further investigation.  Do you have a sample page?
::*Currently anything after Gameplay Videos but before categories/nav will be lumped in with Gameplay Videos.  I'm not currently doing any processing on Gameplay Videos at all, so the entry would be preserved exactly as-is.  This may need further investigation.  Do you have a sample page?
Line 50: Line 46:
:::*Is this ignoring unsupported platforms? I got the impression for Virtual Console titles the script was just including a full list.[[User:Kolano|Kolano]] 02:59, 22 August 2011 (CEST)
:::*Is this ignoring unsupported platforms? I got the impression for Virtual Console titles the script was just including a full list.[[User:Kolano|Kolano]] 02:59, 22 August 2011 (CEST)
::::*Currently, Virtual Console is treated just like another supported platform -- it is included and Wikified.  If both Virtual Console and say, Nintendo 64 are listed, Nintendo 64 is getting purged.  I think the logic I would like to use is "if it has Virtual Console in the platforms, wikify and include all platforms regardless of whether they're supported by Dolphin".  On another note, does it even make sense for us to include Virtual Console titles in the wiki?  I know the devs are of the opinion that you should use an emulator for the original console, and I tend to agree with them.  There is no work that I'm aware of to improve support for Virtual Console games.  --[[User:Keller999|Keller999]] 04:03, 22 August 2011 (CEST)
::::*Currently, Virtual Console is treated just like another supported platform -- it is included and Wikified.  If both Virtual Console and say, Nintendo 64 are listed, Nintendo 64 is getting purged.  I think the logic I would like to use is "if it has Virtual Console in the platforms, wikify and include all platforms regardless of whether they're supported by Dolphin".  On another note, does it even make sense for us to include Virtual Console titles in the wiki?  I know the devs are of the opinion that you should use an emulator for the original console, and I tend to agree with them.  There is no work that I'm aware of to improve support for Virtual Console games.  --[[User:Keller999|Keller999]] 04:03, 22 August 2011 (CEST)
:*Auto-categories: I'm not clear why the auto-generated categories need to be specially labeled (is it we don't trust that they are correct?). I think such may be bad for maintenance in future.
::*This is a just-in-case.  As not all wikipedia articles are formatted the same, there exists the small chance that non-sense categories could be created.  When I'm processing pages, I am checking to make sure that the category links are linking to existing categories, and the indication line lets me know which ones the script did and which ones were existing.  Another option would be to automatically add the category <nowiki>[[Category: Pages with unchecked automatic categories]]</nowiki> and then manually remove them as they're checked with human eyes.  I'm just trying to keep us from having pages in the <nowiki>[[Category: <small>Baseball<br />Sports</small> Games games]]</nowiki> category. =P
:::*Understood. I think I'd prefer the Category flag over the comment, such is more likely to result in cleanup over time. You also need to watch the parsing here, as I had to clean up a category where I think "games" got inappropriately parsed out of the category name. It's only the trailing "games" we're concerned with, so you probably need to add a line end marker to the regexp.[[User:Kolano|Kolano]] 02:59, 22 August 2011 (CEST)
::::*Sure, I will do this.  I'll make it so the script still does the 'Automated Categories' comment, but the first category included will be <nowiki>[[Category: Pages with unchecked automatic categories]]</nowiki>.  That way, it will be easy to tell which categories need to be looked at closely, and will make it easy to clear out the comment and the category once they've been looked at.  Regarding the extra games issue, I altered the script when I saw that you made that change on one of the pages I parsed -- v1.02 strips game(s) out of the category string when it pulls it from Wikipedia, then re-adds it before saving to @finalOutput.  Let me know if you're still seeing this happen.  --[[User:Keller999|Keller999]] 04:03, 22 August 2011 (CEST)
:::::*I'd prefer the comment just be left out, the category will serve the purpose of labeling them. I don't think maintenance on the comments will go well, and would prefer to not be chasing around to clean them up in future.[[User:Kolano|Kolano]] 05:15, 22 August 2011 (CEST)
:[[User:Kolano|Kolano]] 00:45, 21 August 2011 (CEST)
:[[User:Kolano|Kolano]] 00:45, 21 August 2011 (CEST)
::*Thanks for your feedback, keep em coming.  --[[User:Keller999|Keller999]] 01:10, 21 August 2011 (CEST)
::*Thanks for your feedback, keep em coming.  --[[User:Keller999|Keller999]] 01:10, 21 August 2011 (CEST)
1,411

edits