Difference between revisions of "User:Ch4zm/Hellmouth II/Wiki bot retrofit"
| (8 intermediate revisions by the same user not shown) | |||
| Line 68: | Line 68: | ||
* ... | * ... | ||
| − | ===summary graphs=== | + | ===graphs=== |
| + | |||
| + | ====summary graphs==== | ||
graph_driver bot driver, using pkg/graphs/summary_graphs.py | graph_driver bot driver, using pkg/graphs/summary_graphs.py | ||
| Line 82: | Line 84: | ||
* [[:Image:HellmouthIISeason4_GA500.png]] | * [[:Image:HellmouthIISeason4_GA500.png]] | ||
* [[:Image:HellmouthIISeason4_RunsDiff.png]] | * [[:Image:HellmouthIISeason4_RunsDiff.png]] | ||
| + | |||
| + | ====quantile graphs==== | ||
| + | |||
| + | [[:File:HellmouthIISeasonsQuantileGraph AA.png]] | ||
| + | |||
| + | [[:File:HellmouthIISeasonsQuantileGraph SFBS.png]] | ||
===postseason driver=== | ===postseason driver=== | ||
| Line 114: | Line 122: | ||
* pkg/winner/pennant.py | * pkg/winner/pennant.py | ||
* pkg/winner/champions.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}}