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

From Golly.Life Wiki
Line 23: Line 23:
 
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===

Revision as of 17:10, 8 October 2023

Retrofit pkg modules

Where did we start?

  • pkg/summaries/
  • pkg/winners/
  • pkg/seasons/

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