User:Subpagination Bot/Task 1: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Jitse Niesen
(start page on bot)
 
imported>Jitse Niesen
m (Automatic edit (limited run over ten articles; see User:Jitse Niesen/Subpagination for details): Summary of activities)
Line 24: Line 24:
To give an idea what it does, I ran the bot on the first ten articles starting with a J. The log of this test run follows.
To give an idea what it does, I ran the bot on the first ten articles starting with a J. The log of this test run follows.


<!--subpaginationlog-->
* Converted to use subpages: [[Jack Kramer]]
* Skipped because they are subpages: [[Jack Crawford/Approval]], [[Jack Crawford/Bibliography]], [[Jack Crawford/Unused]]
* Skipped because they already use subpages: [[Jack Crawford]]
* Skipped because I encountered an error: [[Jackrat Terrier]], [[Jacksonian Democracy]], [[Jacksonville Symphony Youth Orchestra]], [[Jacques Derrida]], [[Jacques Goudstikker]]

Revision as of 10:23, 15 September 2007

I am writing a bot which goes through all the articles and converts them to the new CZ:Subpages technology. This is the start of step 4 of CZ:Subpages#A plan for The Big Subpagination.

Details of the bot

  • The bot goes through all the pages in the main namespace.
  • It skips the page if one of the following conditions is met:
    • The title of the page contains a / (i.e., it's actually a subpage).
    • The page redirects to another page.
    • The page contains {{disambig}} (i.e., it's a disambiguation page).
    • The page is protected.
    • The page is actually Main Page.
    • The page already contains {{subpages}}.
    • The page contains an old template of the form {{subpagesNN}} where NN is some number.
    • The talk page does not contain the checklist template.
  • If none of these conditions are met, then the bot converts the article to the subpage forms by going through the following steps (where XXX refers to the name of the article):
    • It creates XXX/Metadata and fills it with the data from the checklist.
    • It removes the checklist from the talk page and adds {{subpages}} at the top.
    • It creates XXX/Approved, containing only {{subpages}}.
    • It creates XXX/Unused, containing only {{subpages}}.
    • It adds {{subpages}} at the top of the article and it removes any categories.

Log of a test run

To give an idea what it does, I ran the bot on the first ten articles starting with a J. The log of this test run follows.