Commons:COMBotBot
(Redirected from COMBotBot)
Create new categories for genera
[edit]- The bot is given the name of the category which the genera belong to. On that category page is a template that contains the genera which should be there: {{Genus}}.
- If the genus name has been expanded (due to name sharing problems) this shows in the last items of the list included in {{Genus}} via "d<entry number>", adjust the list of genus categories that should exist for that.
- Or bot gets a list of genera from the operator and what template name to use....
- If the category does not exist for the genera create the category with a template and create the talk page and add the species template instructions python templated text to the new talk page.
- If the category does exist
- Create the talk page and paste the instructions.
- If taxonavigation template is being used, delete it (a nice feature might be to grab the "authority" string if it exists in it).
- Check for use of the translation table template.
- Check to see if the %(parent_name)s template is being used ({{%(parent_name)s)
- If the template is being used, do nothing.
- If the template is not in use on the existing genus category, apply the template just below the translation table or at the upper portion of the category page and search for [[Category:%(parent_name)s]] and delete it if it exists.
<!-- this genus category was generated by COMBotBot --> {{<name of page list was on> | genus = PAGENAME | auth = }} [[Category:Genera which need images]]
The pythonized template:
genus_template="""<!-- this genus category was generated by COMBotBot --> {{%(parent_name)s | genus = %(genus_name)s | auth = }}"""
Ready for the bot
[edit]- Anisieae: 0R
- Cardiochlamyeae: 3R
- Convolvuleae: 3R
- Cresseae: 8R
- Cuscuteae: 1R
- Dichondreae: 5R
- Erycibeae: 1R
- Humbertieae: 1R
- Ipomoeeae: 6R
- Jacquemontieae: 1R
- Maripeae: 2R
- Merremieae: 7R
- Barnadesioideae: 15R
- Hyalideae: 1R
- Wunderlichieae: 4R
- Stifftieae: 5R
- Pertyeae: 3R
- Mutisieae: 14R
- Nassauvieae: 14R
- Onoserideae: 4R
- Gochnatieae: 5R
- Corymbieae: 1R
- Arctoteae: 0R
- Cichorieae: 24R
- Gundelieae: 1R
- Hecastocleidoideae: 0R
- Liabeae: 6R
- Vernonieae: 37R
- Cardueae: 22R
- Dicomeae: 2R
- Tarchonantheae: 2R
- Anthemideae: 28R
- Athroismeae: 4R
- Astereae: 47R
- Bahieae: 15R
- Calenduleae: 7R
- Chaenactideae: 3R
- Coreopsideae: 22R
- Doroniceae: 1R
- Eupatorieae: 40R
- Gnaphalieae: 133R
- Helenieae: 8R
- Heliantheae: 29R
- Inuleae: 5R
- Madieae: 10R
- Millerieae: 11R
- Neurolaeneae: 3R
- Perityleae: 4R
- Plucheae: 0R
- Senecioneae: 40R
- Tageteae: 27R
- Boraginoideae: 16R
- Cordioideae: 4R
- Ehretioideae: 9R
- Hydrophylloideae: 14R
- Montiniaceae: 3R
- Goetzeoideae: 4R
- Petunioideae: 9R
- Solanaceae incertae sedis: 4R
- Physaleae: 18R
- Nolaneae: 2R
- Nicandreae: 3R
- Lycieae: 3R
- Juanulloeae: 4R
- Jaboroseae: 2R
- Hyoscyameae: 26R
- Datureae: 17R
- Anthocercideae: 6R
- Bruniaceae: 9R
- Rousseaceae: 7R
- Escalloniaceae: 14R
- Stemonuraceae: 9R
- Apiaceae incertae sedis: 7R
- Saniculeae: 7R
- Steganotaenieae: 2R
- Mackinlayoideae: 8R
- Smyrnieae: 2R
- Apioideae: 27R*
- Daucinae: 10R
- Scandicinae: 9R
- Torilidinae: 5R
- Pleurospermeae: 7R
- Physospermopsis clade: 2R
- Oenantheae: 16R
- Komarovia clade: 0R
- Heteromorpheae: 2R
- Bupleureae: 1R
- Apioideae incertae sedis: 14R
- Pyramidoptereae: 11R
- Echinophoreae: 3R
- Careae: 6R
- Selineae: 58R
- Pimpinella clade: 0R
- Apioid superclade incertae sedis: 0R
- Apium clade: 0R
- Annesorhiza clade: 0R
- Aciphylleae: 4R
- Tordylieae: 10R
- Araliaceae: 28R
- Myodocarpaceae: 4R
- Pittosporaceae: 21R
- Griseliniaceae: 5R
- Pennantiaceae: 3R
- Torricelliaceae: 4R
- Adoxaceae: 26R
- Polemoniaceae: 26R
- Valerianaceae: 0R
- Morinaceae: 0R
- Linnaeaceae: 0R
- Dipsacaceae: 0R
Create species categories from galleries
[edit]After the galleries for a genus have been checked for being named correctly, the bot should be told to work on that group.
- Take the TEMPLATENAME from the template that occurs on the genus page (PAGENAME from Create new categories for genera here).
- Read gallery name separate into two words <genus> and <species>
- Check for categories on gallery articles, remove [[:Category:<genus>]] or [[:Category:<genus>|<species>]] and [[:Category:<genus> <species>]] from where it appears in the gallery/article and add it to the lower part of the article content
- If species category exists, remove {{seecat}} from it, if it occurs there. Add the species template for that group.
<!-- this species category was generated by COMBotBot --> {{TEMPLATENAME species | genus = GENUS | species = SPECIES | auth = }}
The pythonized template:
species_template="""<!-- this species category was generated by COMBotBot --> {{%(template_name)s | genus = %(genus_name)s | species = %(species_name)s | auth = }}"""
Examples
[edit]- An example category for genera
- Category:Phaseoleae. After the string ";Included genera;" there is a list of genera in which some categories exist for and some don't.
- At the time of this writing Category:Adenodolichos does not exist. The bot should create this category with the following template and category:
<!-- this category was generated by COMBotBot --> {{Phaseoleae | genus = <genus name from list> | auth = }} [[Category:<name of page list was on> genera which need images]]
- At the time of this writing Category:Lablab does exist. The sub-categorization of that article should remain in tact unless it is the same as the name of the category the list was on, in this case "Phaseoleae". Additionally, all other text should be stripped and replaced with:
<!-- this category was generated by COMBotBot --> {{Phaseoleae | genus = Lablab | auth = }}
More than just Genera
[edit]Still being articulated
- An example category
- Category:Fabaceae has three subcategories which are in the taxonomy tree. Those three appear on the category page in two different formats:
- A template subcategorized them with a space in front of their names via mediawiki software.
- A comma separated list has been pasted there by a human editor following the string ";Included subfamilies:"
- It would be nice if the bot could choose between formats to interpret!
- The categories in that list go to a category that is formatted the same and it could be a list that starts with ";Included tribes:" or ";Included genera:". The lists should have categories made for them with that templated template pasted on them (the templates should manage the subcategorization). And do this until the lists of genera are completed at the more branchy parts of the taxonomy tree.
Problem places
[edit]- Category:Stifftioideae branches into a tribe and a genus.