Difference between revisions of "User:BobBot"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Jobs)
(The Data Template Job)
Line 39: Line 39:
 
=== The Data Template Job ===
 
=== The Data Template Job ===
 
{| class="wikitable float-right"
 
{| class="wikitable float-right"
! Code:
+
! Code
 
| [https://gist.github.com/xZise/8960037 gist]
 
| [https://gist.github.com/xZise/8960037 gist]
 +
|-
 +
! Status
 +
| style="color:green;" | Finished
 
|}
 
|}
 
With this script I automatically add {{Tl|Data template used}} to all data templates. I consider all pages data templates if their page name ends with <tt>[[Template:Infobox|/Box]]</tt>, <tt>[[Template:Infobox/Body|/Data]]</tt>, <tt>[[Template:ReferenceFrames|/RefFrame]]</tt> or <tt>[[Template:BodyData|/Params]]</tt>. This could actually be a periodical job.
 
With this script I automatically add {{Tl|Data template used}} to all data templates. I consider all pages data templates if their page name ends with <tt>[[Template:Infobox|/Box]]</tt>, <tt>[[Template:Infobox/Body|/Data]]</tt>, <tt>[[Template:ReferenceFrames|/RefFrame]]</tt> or <tt>[[Template:BodyData|/Params]]</tt>. This could actually be a periodical job.
 +
 +
This job was executed on 23<sup>rd</sup> April 2014 from about 09:45 — 10:08 UTC (with pauses in between). Although the current status is finished, a periodical execution, e.g. monthly or weekly, might happen.
  
 
=== Possible others ===
 
=== Possible others ===

Revision as of 10:13, 23 April 2014

Hi, I'm Bob Kerman and actually a bot. Currently I don't have yet a bot flag, but my boss Jebediah Kerman ehrm xZise is handling this.

Jobs

If you have other tasks which I might can do, contact me on my talk page. I'm not planning to run a task regularly like Robo Jeb usually does.

The Configuration Job

Code: gist

The Configuration Job will assists in moving all part configuration files. Basically all files in Category:Part configuration files need to be moved if they are not in the new directory system which is Parts/{{{parent}}}/{{{part}}}/part.cfg.

The Update Job

Code: gist

The Update Job is not completely finished and tested but will assist when a new version of Kerbal Space Program is released. It will do the following tasks:

  • Update {{Check version/Cur}}
  • Add the (possibly) next version to {{Check version/Rev}}
  • Create a category for the (possibly) next version. Category:Check version/X, where X is the version number.
  • Go through all part files in GameData/Squad/Parts and check them with the version on the wiki
  • Create a new page with the name of the version which redirects to version history, like 0.23 is redirecting.

There is no code uploaded yet.

The Language Job

Code: gist

The Language Job adds a language if needed to all required places. On Project:Adding a New Language is a list of tasks what to do. I also edit templates {{lang}}, {{if lang}} and {{if lang link}} if the language code is yet unknown. Currently there are two different types of how the templates work. To automatically add a template, add it to Category:BobBot if lang type or Category:BobBot lang type. (Both categories don't exist yet, but I'll create them, when I got the bot flag; They will be hidden)

  • if lang type: Each language is listed like | <language code> in a switch case where multiple languages share one result.
  • lang type: Each language is listed like | <language code> = {{{<language code>|}}} in a large parameter list or switch case where each language returns it's own result.

(lang and if lang link (might need to be edited to make it compatible) would be lang type, and if lang would be if lang type)

The Data Template Job

Code gist
Status Finished

With this script I automatically add {{Data template used}} to all data templates. I consider all pages data templates if their page name ends with /Box, /Data, /RefFrame or /Params. This could actually be a periodical job.

This job was executed on 23rd April 2014 from about 09:45 — 10:08 UTC (with pauses in between). Although the current status is finished, a periodical execution, e.g. monthly or weekly, might happen.

Possible others

  • I might later also mark every small image with {{NoThumbnailsPlease}} to have some basis to work on. If new thumbnails get added later they can be marked manually.
  • Another possibility would be to go through Category:Move requests and check what I can do there.

Problems?

If you think I messed up please contact me on my talk page or my handler's one. You can see my contributions here.