Difference between revisions of "User:BobBot"

From Kerbal Space Program Wiki
Jump to: navigation, search
(The Data Template Job)
Line 1: Line 1:
 
{{BlockBotButton|owner=[[User:XZise]]}}
 
{{BlockBotButton|owner=[[User:XZise]]}}
  
Hi, I'm [[Bob Kerman]] and actually a bot. Currently I don't have yet a bot flag, but my boss <s>[[Jebediah Kerman]]</s> ehrm [[User:XZise|xZise]] is handling this.
+
Hi, I'm [[Bob Kerman]] and actually a bot. Currently I don't have yet a bot flag, but my boss <s>[[Jebediah Kerman]]</s> ehrm [[User:XZise|xZise]] is handling this. I'm also quite a fan of [http://http://www.imdb.com/title/tt1103987 Leverage] as you might have guessed from my jobs.
  
 
== Jobs ==
 
== Jobs ==
Line 10: Line 10:
 
! Code:
 
! Code:
 
| [https://gist.github.com/xZise/8602652 gist]
 
| [https://gist.github.com/xZise/8602652 gist]
 +
|-
 +
! Type
 +
| Once
 +
|-
 +
! Status
 +
| style="color:red;" | Needs to be updated
 
|}
 
|}
 
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 <span style="white-space:nowrap;">''Parts/&#123;&#123;&#123;parent&#125;&#125;&#125;/&#123;&#123;&#123;part&#125;&#125;&#125;/part.cfg''</span>.
 
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 <span style="white-space:nowrap;">''Parts/&#123;&#123;&#123;parent&#125;&#125;&#125;/&#123;&#123;&#123;part&#125;&#125;&#125;/part.cfg''</span>.
 +
 +
With the new part infobox system, where parts of the infobox are extracted into modules the code needs to be updated, that it also looks for the <tt>type</tt> parameter. This will most likely be executed after ''[[#The Type Job|The Type Job]]''.
  
 
=== The Update Job ===
 
=== The Update Job ===
Line 17: Line 25:
 
! Code:
 
! Code:
 
| [https://gist.github.com/xZise/8960127 gist]
 
| [https://gist.github.com/xZise/8960127 gist]
 +
|-
 +
! Type
 +
| On demand
 +
|-
 +
! Status
 +
| style="color:red;" | Testing
 
|}
 
|}
 
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:
 
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:
Line 30: Line 44:
 
! Code:
 
! Code:
 
| [https://gist.github.com/xZise/8898990 gist]
 
| [https://gist.github.com/xZise/8898990 gist]
 +
|-
 +
! Type
 +
| On demand
 +
|-
 +
! Status
 +
| style="color:yellow;" | Ready
 
|}
 
|}
 
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 {{Tl|lang}}, {{Tl|if lang}} and {{Tl|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)
 
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 {{Tl|lang}}, {{Tl|if lang}} and {{Tl|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)
Line 41: Line 61:
 
! Code
 
! Code
 
| [https://gist.github.com/xZise/8960037 gist]
 
| [https://gist.github.com/xZise/8960037 gist]
 +
|-
 +
! Type
 +
| Periodical
 
|-
 
|-
 
! Status
 
! Status
Line 48: Line 71:
  
 
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.
 
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.
 +
 +
=== The Thumbnail Job ===
 +
{| class="wikitable float-right"
 +
! Code
 +
| <s>not yet</s>
 +
|-
 +
! Type
 +
| Periodical
 +
|-
 +
! Status
 +
| style="color:green;" | Finished, <br><span style="color:red;">Advanced version in development</span>
 +
|}
 +
I mark small images which are thumbnails with {{Tl|No thumbnails please}}. Images that aren't a thumbnail get marked with {{Tl|Is not thumbnail}} so that I don't accidentally mark them as thumbnails. This are for example small graphics like [[:File:Col icon.png]]. This job can run periodically though there might be a two level system. First I run through all unmarked images and create a list which then some human can look over and mark all non-thumbnails. On a second run I then mark those images accordingly.
 +
 +
My criteria for small images are:
 +
# Small file size up to 20 KiB (20·2¹⁰ or 20480 Bytes), I don't even look at larger images
 +
# The smaller edge has at least 40 % of the length of the larger edge (s/l > 0.4)
 +
# One axis is smaller than 100 pixels. That means in conjunction with the second condition that the larger one is at most 250 pixels long.
 +
 +
This job was executed on 23<sup>rd</sup> April 2014 from 10:22 — 10:49 UTC and then from 15:53 — 16:52 UTC with pauses in between both segments. Although the current status is finished, a periodical execution, e.g. monthly or weekly, might happen.
 +
 +
=== The Type Job ===
 +
{| class="wikitable float-right"
 +
! Code
 +
| <s>not yet</s>
 +
|-
 +
! Type
 +
| Periodical/Once
 +
|-
 +
! Status
 +
| style="color:red;" | Development
 +
|}
 +
This job will go through all part infoboxes and check if there is either the type or role parameter set and tries to guess the type from the existing modules. How this script will work is not yet finished. It might only run once before the ''[[#The Configuration Job|The Configuration Job]]'', or maybe periodically.
  
 
=== Possible others ===
 
=== Possible others ===
* I might later also mark every small image with {{Tl|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.
 
* Another possibility would be to go through [[:Category:Move requests]] and check what I can do there.
  
 
== Problems? ==
 
== Problems? ==
 
If you think I messed up please contact me on my [[User talk:BobBot|talk page]] or my handler's [[User talk:XZise|one]]. You can see my [[Special:Contributions/BobBot|contributions here]].
 
If you think I messed up please contact me on my [[User talk:BobBot|talk page]] or my handler's [[User talk:XZise|one]]. You can see my [[Special:Contributions/BobBot|contributions here]].

Revision as of 19:08, 24 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. I'm also quite a fan of Leverage as you might have guessed from my jobs.

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
Type Once
Status Needs to be updated

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.

With the new part infobox system, where parts of the infobox are extracted into modules the code needs to be updated, that it also looks for the type parameter. This will most likely be executed after The Type Job.

The Update Job

Code: gist
Type On demand
Status Testing

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
Type On demand
Status Ready

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
Type Periodical
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.

The Thumbnail Job

Code not yet
Type Periodical
Status Finished,
Advanced version in development

I mark small images which are thumbnails with {{No thumbnails please}}. Images that aren't a thumbnail get marked with {{Is not thumbnail}} so that I don't accidentally mark them as thumbnails. This are for example small graphics like File:Col icon.png. This job can run periodically though there might be a two level system. First I run through all unmarked images and create a list which then some human can look over and mark all non-thumbnails. On a second run I then mark those images accordingly.

My criteria for small images are:

  1. Small file size up to 20 KiB (20·2¹⁰ or 20480 Bytes), I don't even look at larger images
  2. The smaller edge has at least 40 % of the length of the larger edge (s/l > 0.4)
  3. One axis is smaller than 100 pixels. That means in conjunction with the second condition that the larger one is at most 250 pixels long.

This job was executed on 23rd April 2014 from 10:22 — 10:49 UTC and then from 15:53 — 16:52 UTC with pauses in between both segments. Although the current status is finished, a periodical execution, e.g. monthly or weekly, might happen.

The Type Job

Code not yet
Type Periodical/Once
Status Development

This job will go through all part infoboxes and check if there is either the type or role parameter set and tries to guess the type from the existing modules. How this script will work is not yet finished. It might only run once before the The Configuration Job, or maybe periodically.

Possible others

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.