User:Keller999/projects/gamepageupdate: Difference between revisions

Jump to navigation Jump to search
m
Responses to Kolano
m (Responses to Kolano)
Line 33: Line 33:
::*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.
::*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)
:::*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 39: Line 40:
:::**[[Need for Speed: Nitro]] Related Links
:::**[[Need for Speed: Nitro]] Related Links
:::Generally, I think it would be good to include a link to the Wikipedia entry, and a Dolphin games forum link for each game (where they exist). The later would be complex to automate, but I think the former should be fairly easy. We might also want to include a link to the Issue's list in Google Code /w the game title as a search term. Section should probably be called the more generic "Related Links" to allow for the wide array of things to link in. [[User:Kolano|Kolano]] 02:59, 22 August 2011 (CEST)
:::Generally, I think it would be good to include a link to the Wikipedia entry, and a Dolphin games forum link for each game (where they exist). The later would be complex to automate, but I think the former should be fairly easy. We might also want to include a link to the Issue's list in Google Code /w the game title as a search term. Section should probably be called the more generic "Related Links" to allow for the wide array of things to link in. [[User:Kolano|Kolano]] 02:59, 22 August 2011 (CEST)
::::*Perfect, I will take a look.  I will see how hard it might be to do a separate parsing of those sections.  Since the names are not consistent, I'm not sure how it will be detected, but I'll see what I can do.  As far as "Related Links", I like that idea a lot.  The easiest method would be to link to a bunch of search urls -- Wikipedia, dolphin game page forums, dolphin Google code page, and Dolphin wiki.  I'll see if I can add this, shouldn't be too hard. --[[User:Keller999|Keller999]] 04:03, 22 August 2011 (CEST)
:*Regarding "Platforms" in the infobox, generally we're only interested in platforms supported by Dolphin (i.e. GameCube, Wii, Virtual Console systems). I'd actually prefer to omit this line, as it's confusing for titles on multiple platforms which have multiple pages on the Wiki (though it would be good to interlink the platform page pairs where they exist.
:*Regarding "Platforms" in the infobox, generally we're only interested in platforms supported by Dolphin (i.e. GameCube, Wii, Virtual Console systems). I'd actually prefer to omit this line, as it's confusing for titles on multiple platforms which have multiple pages on the Wiki (though it would be good to interlink the platform page pairs where they exist.
::*The script is purging any platform that is not supported by Dolphin, and then wikifying the ones that remain.  If we were to agree on a standard for how pages should be named when they are available on more than one platform, it would be easy to add a <nowiki>'This page is about the [[Gamecube]] version of Super Tonka Trucks.  You may also be interested in [[Super Tonka Trucks (Wii)]].'</nowiki> to the top of the page, a la Wikipedia style.  Might also make sense to make disambiguation pages, and link to those.  Your thoughts?
::*The script is purging any platform that is not supported by Dolphin, and then wikifying the ones that remain.  If we were to agree on a standard for how pages should be named when they are available on more than one platform, it would be easy to add a <nowiki>'This page is about the [[Gamecube]] version of Super Tonka Trucks.  You may also be interested in [[Super Tonka Trucks (Wii)]].'</nowiki> to the top of the page, a la Wikipedia style.  Might also make sense to make disambiguation pages, and link to those.  Your thoughts?
:::*We more or less had decided to forgo the Platforms parameter previously, due to the confusion it could cause. A consistent naming format does exist, in the cases where a title is supported on both GameCube and Wii, two pages exist with different postfixes " (GC)" and " (Wii)". Unfortunately, since I'm unaware of any means to do text parsing within Wiki logic, I don't think a Wiki logic approach allows for resolution. The script can do the text parsing, but I'm still unsure it's worth bothering over.[[User:Kolano|Kolano]] 02:59, 22 August 2011 (CEST)
:::*We more or less had decided to forgo the Platforms parameter previously, due to the confusion it could cause. A consistent naming format does exist, in the cases where a title is supported on both GameCube and Wii, two pages exist with different postfixes " (GC)" and " (Wii)". Unfortunately, since I'm unaware of any means to do text parsing within Wiki logic, I don't think a Wiki logic approach allows for resolution. The script can do the text parsing, but I'm still unsure it's worth bothering over.[[User:Kolano|Kolano]] 02:59, 22 August 2011 (CEST)
:::*Disambiguation pages for these would make sense, at least one exists for [[The Legend of Zelda: Twilight Princess]], but I don't think any of the other instances are covered.[[User:Kolano|Kolano]] 02:59, 22 August 2011 (CEST)
:::*Disambiguation pages for these would make sense, at least one exists for [[The Legend of Zelda: Twilight Princess]], but I don't think any of the other instances are covered.[[User:Kolano|Kolano]] 02:59, 22 August 2011 (CEST)
::::*I'll see if I can figure out a way to find games that have multiple platforms, and start creating disambig pages for them. --[[User:Keller999|Keller999]] 04:03, 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)
:::*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)
:*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.
:*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
::*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)
:::*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)
:[[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

Navigation menu