Difference between revisions of "Talk:Caretaker.pl"

From Organic Design wiki
m (Caretaker: typo)
(Proposed new rule: Converting mailto links to their alias)
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
how bout marking the edits as minor? --[[User:Phalseid|Phalseid]] 18:36, 24 Oct 2006 (NZDT)
+
[[Category:Todo]]
:Done - I'll just wait until it runs tomorrow to see if its working --[[User:Nad|Nad]] 18:53, 24 Oct 2006 (NZDT)
+
I added the caretaker so we can add tidying and categorisation rules which are applied to all articles on a daily basis. This script is declared on startup of [[User:Bender|Bender]] and its main function, ''caretaker()'' is called at 6am each morning. It loops slowly through all articles over a period of a a couple of hours so there's no noticable reduction of resource during the process.
I added the caretaker so we can add tidying and categorisation rules which will be applied to all articles on a daily basis. This script is declared on startup of [[User:Bender|Bender]] and its main function, ''caretaker()'' is called at 6am each morning. It loops slowly through all articles over a period of a a couple of hours so there's no noticable reduction of resource during the process.
 
  
Currently only one rule has been included for removing redundant elements from properties articles, but others will be added soon. Here's a list of rules to be considered for implemntation:
+
= Proposed new rules =
*'''domain-names:''' articles
+
*Convert mailto: links to their alias, e.g. mailto://example@a.b.c converts to <pre>[mailto://example@a.b.c example@a.b.c]</pre> --[[User:Sven|Sven]] 01:08, 5 Mar 2007 (NZST)
 +
*Add articles that begin with '''"Username/"''' to [[:Category:Username]] --[[User:Phalseid|Phalseid]] 18:53, 29 Jan 2007 (NZST)
 +
Convert arrows e.g. --> to &rarr;. Need to search for two or more minus symbols (m/\-{2,}>/)
 +
*Categorise items into eg. [[:Category:Articles created by xxx]]
 +
::include the <tt>cur_is_new,cur_user_text</tt> columns in the <tt>SELECT FROM cur</tt> query in the main loop,
 +
::if <tt>cur_is_new=0</tt>, then <tt>SELECT old_user_text FROM old WHERE old_title='$title' ORDER BY old_timestamp LIMIT 1;</tt>
 +
*Categorise items into [[:Category:Articles linking to external news]]
 +
*Change &#104;ttp://[www.]organicdesign.co.nz to &#123;{SERVER}}
 +
*Typo's
 +
**lib &rarr; library
 +
**libs &rarr; libraries
 
*'''date:''' articles
 
*'''date:''' articles
 +
**Also, by months, year day of week....
 
*cat articles using embed
 
*cat articles using embed
 
*cat articles using apply
 
*cat articles using apply
*cat articles containing maths
 
 
*cat articles using document-code table
 
*cat articles using document-code table
 
*change ampersand articles to "and" (or get & working instead)
 
*change ampersand articles to "and" (or get & working instead)
 
*cat peers and change eg. peer/bender cat to just bender
 
*cat peers and change eg. peer/bender cat to just bender
*<s>common typo's, eg implementation to implementation</s> (done)
 
*move cat links to start and format in a line
 
 
*fix sigs?
 
*fix sigs?
*format xml
 
 
*'''orphans:''' remove xml orphans
 
*'''orphans:''' remove xml orphans
*<s>change redundant applies to embeds</s> (done)
 
*<s>remove redundant properties elements</s> (done)
 
 
*change &lt;tt>[[... to svens template
 
*change &lt;tt>[[... to svens template
 +
 +
= Rules currently in use =
 +
*Changes redundant applies to embeds
 +
*Removes redundant properties elements
 +
*Removes empty elements from properties articles
 +
*Typo's
 +
**&#105;mplimentation &rarr; implementation
 +
**&#100;ependance &rarr; dependence
 +
**&#104;ardwire &rarr; hard-wire
 +
*Formatting
 +
**Category links
 +
**Article links
 +
**Headings
 +
*Categorisation
 +
**articles containing maths
 +
**domain-names articles
 +
 +
= Discussion =
 +
how bout marking the edits as minor? --[[User:Phalseid|Phalseid]] 18:36, 24 Oct 2006 (NZDT)
 +
:Done - I'll just wait until it runs tomorrow to see if its working --[[User:Nad|Nad]] 18:53, 24 Oct 2006 (NZDT)

Latest revision as of 01:08, 5 March 2007

I added the caretaker so we can add tidying and categorisation rules which are applied to all articles on a daily basis. This script is declared on startup of Bender and its main function, caretaker() is called at 6am each morning. It loops slowly through all articles over a period of a a couple of hours so there's no noticable reduction of resource during the process.

Proposed new rules

Convert arrows e.g. --> to →. Need to search for two or more minus symbols (m/\-{2,}>/)

include the cur_is_new,cur_user_text columns in the SELECT FROM cur query in the main loop,
if cur_is_new=0, then SELECT old_user_text FROM old WHERE old_title='$title' ORDER BY old_timestamp LIMIT 1;
  • Categorise items into Category:Articles linking to external news
  • Change http://[www.]organicdesign.co.nz to {{SERVER}}
  • Typo's
    • lib → library
    • libs → libraries
  • date: articles
    • Also, by months, year day of week....
  • cat articles using embed
  • cat articles using apply
  • cat articles using document-code table
  • change ampersand articles to "and" (or get & working instead)
  • cat peers and change eg. peer/bender cat to just bender
  • fix sigs?
  • orphans: remove xml orphans
  • change <tt>[[... to svens template

Rules currently in use

  • Changes redundant applies to embeds
  • Removes redundant properties elements
  • Removes empty elements from properties articles
  • Typo's
    • implimentation → implementation
    • dependance → dependence
    • hardwire → hard-wire
  • Formatting
    • Category links
    • Article links
    • Headings
  • Categorisation
    • articles containing maths
    • domain-names articles

Discussion

how bout marking the edits as minor? --Phalseid 18:36, 24 Oct 2006 (NZDT)

Done - I'll just wait until it runs tomorrow to see if its working --Nad 18:53, 24 Oct 2006 (NZDT)