Difference between revisions of "User:Ch4zm/Hellmouth II/Wiki bot retrofit"
| (26 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
* pkg/summaries/ | * pkg/summaries/ | ||
| + | * pkg/seasons/ | ||
| + | * pkg/graphs/ | ||
* pkg/winners/ | * pkg/winners/ | ||
| − | |||
Next, look for all the imports of cup data classes that don't include Hellmouth II: | Next, look for all the imports of cup data classes that don't include Hellmouth II: | ||
| Line 23: | Line 24: | ||
crowns driver golly: | crowns driver golly: | ||
* had to go through and update the crown data for each crown | * had to go through and update the crown data for each crown | ||
| + | |||
| + | the crown driver creates these templates, links here to spot-check: | ||
* {{Tl|CactusCrownHellmouthIICupSeason}} | * {{Tl|CactusCrownHellmouthIICupSeason}} | ||
* {{Tl|CactusCrownHellmouthIICupPostseason}} | * {{Tl|CactusCrownHellmouthIICupPostseason}} | ||
* {{Tl|JetstreamCrownHellmouthIICupSeason}} | * {{Tl|JetstreamCrownHellmouthIICupSeason}} | ||
* {{Tl|JetstreamCrownHellmouthIICupPostseason}} | * {{Tl|JetstreamCrownHellmouthIICupPostseason}} | ||
| + | |||
| + | had to go through each crown page and manually add a new Hellmouth II Cup section, and insert the two templates above | ||
also had to go in and figure out exactly where to use "cup_data.name" versus "cup_data.spaces_name" | also had to go in and figure out exactly where to use "cup_data.name" versus "cup_data.spaces_name" | ||
| − | [[:Category:Hellmouth II Cup]] , not [[:Category:HellmouthII Cup]] | + | for example, [[:Category:Hellmouth II Cup]] , not [[:Category:HellmouthII Cup]] |
===season by season pages=== | ===season by season pages=== | ||
| Line 36: | Line 41: | ||
going through and replacing cup_data.name with cup_data.spaces_name | going through and replacing cup_data.name with cup_data.spaces_name | ||
| − | * {{Tl|Infobox hellmouth season}} | + | found a reference to the following template: |
| + | * {{Tl|Infobox hellmouth ii season}} | ||
* {{Tl|Infobox klein season}} | * {{Tl|Infobox klein season}} | ||
| + | |||
| + | We actually need to switch out some other navbox templates: | ||
| + | * {{Tl|Navbox hellmouth ii history}} - not {{Tl|Navbox ii history}} | ||
| + | |||
| + | and we need to make a few other templates: | ||
| + | * {{Tl|HellmouthIIGame}} (analogous to {{Tl|KleinGame}} or {{Tl|Game}}) | ||
| + | |||
| + | retrofit is finished, now we're doing a dry run: | ||
| + | * [[Hellmouth II/Season 17]] | ||
| + | |||
| + | okay, time to run the real thing: | ||
| + | * [[Hellmouth II/Season 1]] | ||
| + | * [[Hellmouth II/Season 2]] | ||
| + | * [[Hellmouth II/Season 3]] | ||
| + | * [[Hellmouth II/Season 4]] | ||
| + | * ... | ||
| + | |||
| + | and templates created: | ||
| + | * {{Tl|HellmouthIIPostseasonBracket Season 1}} | ||
| + | * {{Tl|HellmouthIIPostseasonBracket Season 2}} | ||
| + | * {{Tl|HellmouthIIPostseasonBracket Season 3}} | ||
| + | * {{Tl|HellmouthIIPostseasonBracket Season 4}} | ||
| + | * ... | ||
| + | |||
| + | ===graphs=== | ||
| + | |||
| + | ====summary graphs==== | ||
| + | |||
| + | graph_driver bot driver, using pkg/graphs/summary_graphs.py | ||
| + | |||
| + | retrofitting cup_data.name to cup_data.spaces_name, except for filename | ||
| + | |||
| + | * [[:Image:HellmouthIISeason1_GA500.png]] | ||
| + | * [[:Image:HellmouthIISeason1_RunsDiff.png]] | ||
| + | * [[:Image:HellmouthIISeason2_GA500.png]] | ||
| + | * [[:Image:HellmouthIISeason2_RunsDiff.png]] | ||
| + | * [[:Image:HellmouthIISeason3_GA500.png]] | ||
| + | * [[:Image:HellmouthIISeason3_RunsDiff.png]] | ||
| + | * [[:Image:HellmouthIISeason4_GA500.png]] | ||
| + | * [[:Image:HellmouthIISeason4_RunsDiff.png]] | ||
| + | |||
| + | ====quantile graphs==== | ||
| + | |||
| + | [[:File:HellmouthIISeasonsQuantileGraph AA.png]] | ||
| + | |||
| + | [[:File:HellmouthIISeasonsQuantileGraph SFBS.png]] | ||
| + | |||
| + | ===postseason driver=== | ||
| + | |||
| + | botdrivers/postseason_driver_ii.py script to create all the postseason pages...: | ||
| + | |||
| + | [[Hellmouth II/Season 12/Postseason]] page: | ||
| + | * {{Tl|HellmouthIISeason12Post SeedTable}} | ||
| + | * {{Tl|HellmouthIISeason12Post ColdLDS A}} | ||
| + | * {{Tl|HellmouthIISeason12Post ColdLDS B}} | ||
| + | * {{Tl|HellmouthIISeason12Post HotLDS A}} | ||
| + | * {{Tl|HellmouthIISeason12Post HotLDS B}} | ||
| + | * {{Tl|HellmouthIISeason12Post ColdLCS}} | ||
| + | * {{Tl|HellmouthIISeason12Post HotLCS}} | ||
| + | * {{Tl|HellmouthIISeason12Post CupSeries}} | ||
| + | |||
| + | [[Hellmouth II/Season 17/Postseason]] page: | ||
| + | * {{Tl|HellmouthIISeason17Post SeedTable}} | ||
| + | * {{Tl|HellmouthIISeason17Post ColdLDS A}} | ||
| + | * {{Tl|HellmouthIISeason17Post ColdLDS B}} | ||
| + | * {{Tl|HellmouthIISeason17Post HotLDS A}} | ||
| + | * {{Tl|HellmouthIISeason17Post HotLDS B}} | ||
| + | * {{Tl|HellmouthIISeason17Post ColdLCS}} | ||
| + | * {{Tl|HellmouthIISeason17Post HotLCS}} | ||
| + | * {{Tl|HellmouthIISeason17Post CupSeries}} | ||
| + | |||
| + | ===winner driver=== | ||
| + | |||
| + | More replacement of cup_data.name to cup_data.spaces_name | ||
| + | |||
| + | * pkg/winner/title.py | ||
| + | * pkg/winner/pennant.py | ||
| + | * pkg/winner/champions.py | ||
| + | |||
| + | This one was a little more tricky, since template names use .name and text on the page/categories use .spaces_name | ||
| + | |||
| + | * {{Tl|HellmouthIICupColdFireTitleTable}} | ||
| + | * {{Tl|HellmouthIICupColdWaterTitleTable}} | ||
| + | * {{Tl|HellmouthIICupHotFireTitleTable}} | ||
| + | * {{Tl|HellmouthIICupHotWaterTitleTable}} | ||
| + | * {{Tl|HellmouthIICupColdPennantTable}} | ||
| + | * {{Tl|HellmouthIICupHotPennantTable}} | ||
| + | * {{Tl|HellmouthIICupChampionsTable}} | ||
| + | |||
| + | ===records driver=== | ||
| + | |||
| + | looking in pkg/records/ | ||
| + | |||
| + | start with all_time_points: | ||
| + | |||
| + | * step 1 is retrofitting cup_data.name with cup_data.spaces_name | ||
| + | * step 2 is adding all the Hellmouth II classes | ||
| + | |||
| + | next: all_time_ppg | ||
| + | |||
| + | ...everything is done now. | ||
| + | |||
| + | {{Tl|HellmouthIICupRecords SingleSeason MostSeasonWins}} | ||
| + | |||
| + | {{Tl|HellmouthIICupRecords SingleSeason MostCupPoints}} | ||
| + | |||
| + | {{Tl|HellmouthIICupRecords AllTime SeasonWins}} | ||
| + | |||
| + | {{Tl|HellmouthIICupRecords AllTime DivisionPoints}} | ||
| + | |||
| + | {{Tl|HellmouthIICupRecords AllTime ChampionshipPoints}} | ||
| + | |||
| + | {{Tl|HellmouthIICupRecords AllTime CupPoints}} | ||
| + | |||
| + | {{Tl|HellmouthIICupRecords LongestSeasonGame}} | ||
| + | |||
| + | {{Tl|HellmouthIICupRecords LongestPostseasonGame}} | ||
| + | |||
| + | {{Tl|HellmouthIICupRecords AllTime WinningStreaks}} | ||
| + | |||
| + | {{Tl|HellmouthIICupRecords AllTime LosingStreaks}} | ||
Latest revision as of 23:52, 13 October 2023
Retrofit pkg modules
Where did we start?
- pkg/summaries/
- pkg/seasons/
- pkg/graphs/
- pkg/winners/
Next, look for all the imports of cup data classes that don't include Hellmouth II:
$ grep "from ..cup_data import HellmouthCup" pkg/* -r
- pkg/crowns/
- pkg/records/
- (leave records for last...)
Botdrivers
crowns driver
crowns driver golly:
- had to go through and update the crown data for each crown
the crown driver creates these templates, links here to spot-check:
- {{CactusCrownHellmouthIICupSeason}}
- {{CactusCrownHellmouthIICupPostseason}}
- {{JetstreamCrownHellmouthIICupSeason}}
- {{JetstreamCrownHellmouthIICupPostseason}}
had to go through each crown page and manually add a new Hellmouth II Cup section, and insert the two templates above
also had to go in and figure out exactly where to use "cup_data.name" versus "cup_data.spaces_name"
for example, Category:Hellmouth II Cup , not Category:HellmouthII Cup
season by season pages
going through and replacing cup_data.name with cup_data.spaces_name
found a reference to the following template:
We actually need to switch out some other navbox templates:
- {{Navbox hellmouth ii history}} - not {{Navbox ii history}}
and we need to make a few other templates:
- {{HellmouthIIGame}} (analogous to {{KleinGame}} or {{Game}})
retrofit is finished, now we're doing a dry run:
okay, time to run the real thing:
and templates created:
- {{HellmouthIIPostseasonBracket Season 1}}
- {{HellmouthIIPostseasonBracket Season 2}}
- {{HellmouthIIPostseasonBracket Season 3}}
- {{HellmouthIIPostseasonBracket Season 4}}
- ...
graphs
summary graphs
graph_driver bot driver, using pkg/graphs/summary_graphs.py
retrofitting cup_data.name to cup_data.spaces_name, except for filename
- Image:HellmouthIISeason1_GA500.png
- Image:HellmouthIISeason1_RunsDiff.png
- Image:HellmouthIISeason2_GA500.png
- Image:HellmouthIISeason2_RunsDiff.png
- Image:HellmouthIISeason3_GA500.png
- Image:HellmouthIISeason3_RunsDiff.png
- Image:HellmouthIISeason4_GA500.png
- Image:HellmouthIISeason4_RunsDiff.png
quantile graphs
File:HellmouthIISeasonsQuantileGraph AA.png
File:HellmouthIISeasonsQuantileGraph SFBS.png
postseason driver
botdrivers/postseason_driver_ii.py script to create all the postseason pages...:
Hellmouth II/Season 12/Postseason page:
- {{HellmouthIISeason12Post SeedTable}}
- {{HellmouthIISeason12Post ColdLDS A}}
- {{HellmouthIISeason12Post ColdLDS B}}
- {{HellmouthIISeason12Post HotLDS A}}
- {{HellmouthIISeason12Post HotLDS B}}
- {{HellmouthIISeason12Post ColdLCS}}
- {{HellmouthIISeason12Post HotLCS}}
- {{HellmouthIISeason12Post CupSeries}}
Hellmouth II/Season 17/Postseason page:
- {{HellmouthIISeason17Post SeedTable}}
- {{HellmouthIISeason17Post ColdLDS A}}
- {{HellmouthIISeason17Post ColdLDS B}}
- {{HellmouthIISeason17Post HotLDS A}}
- {{HellmouthIISeason17Post HotLDS B}}
- {{HellmouthIISeason17Post ColdLCS}}
- {{HellmouthIISeason17Post HotLCS}}
- {{HellmouthIISeason17Post CupSeries}}
winner driver
More replacement of cup_data.name to cup_data.spaces_name
- pkg/winner/title.py
- pkg/winner/pennant.py
- pkg/winner/champions.py
This one was a little more tricky, since template names use .name and text on the page/categories use .spaces_name
- {{HellmouthIICupColdFireTitleTable}}
- {{HellmouthIICupColdWaterTitleTable}}
- {{HellmouthIICupHotFireTitleTable}}
- {{HellmouthIICupHotWaterTitleTable}}
- {{HellmouthIICupColdPennantTable}}
- {{HellmouthIICupHotPennantTable}}
- {{HellmouthIICupChampionsTable}}
records driver
looking in pkg/records/
start with all_time_points:
- step 1 is retrofitting cup_data.name with cup_data.spaces_name
- step 2 is adding all the Hellmouth II classes
next: all_time_ppg
...everything is done now.
{{HellmouthIICupRecords SingleSeason MostSeasonWins}}
{{HellmouthIICupRecords SingleSeason MostCupPoints}}
{{HellmouthIICupRecords AllTime SeasonWins}}
{{HellmouthIICupRecords AllTime DivisionPoints}}
{{HellmouthIICupRecords AllTime ChampionshipPoints}}
{{HellmouthIICupRecords AllTime CupPoints}}
{{HellmouthIICupRecords LongestSeasonGame}}
{{HellmouthIICupRecords LongestPostseasonGame}}