Difference between revisions of "User:Ch4zm/Hellmouth II/Wiki bot retrofit"

From Golly.Life Wiki
Line 124: Line 124:
 
* {{Tl|HellmouthIICupHotPennantTable}}
 
* {{Tl|HellmouthIICupHotPennantTable}}
 
* {{Tl|HellmouthIICupChampionsTable}}
 
* {{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

Revision as of 04:24, 9 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:

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:

and we need to make a few other templates:

retrofit is finished, now we're doing a dry run:

okay, time to run the real thing:

and templates created:

summary graphs

graph_driver bot driver, using pkg/graphs/summary_graphs.py

retrofitting cup_data.name to cup_data.spaces_name, except for filename

postseason driver

botdrivers/postseason_driver_ii.py script to create all the postseason pages...:

Hellmouth II/Season 12/Postseason page:

Hellmouth II/Season 17/Postseason page:

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

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