User talk:SpecialWindler/Sandbox

From Wikipedia, the free encyclopedia

As per consensus agreed upon by the Rugby league WikiProject, the template {{Infobox rugby league biography}} would be changed to the sandboxed version here. The newer template (sandboxed version) while different, makes it easier for users to change information than the current version. The consensus can be seen on the WikiProject talk page.

However, the format of template is our worry but our problem is that the current version is used on approx 1500 articles and manually changing each article would be tedious and long. This is why we ask for a bot to do this, of all the instructions are explained below.

[edit] Changes

This may be hard for a programmer, but I'm sure it can be done.

For every instance of the syntax of the {{Infobox rugby league biography}} on MainSpace articles, the following should be done:



The parameter years, needs to be seperated at each use of <br/> or <br> and then seperated by each use of a dash and placed in the coresponding parameters year1 ... so on. For example:

Old parameter years = 1914<br/>1915-1918<br/>1918-1920<br>1921
Would become: year1 = 1914, year2 = 1915-1918, year3 = 1918-1920, year4 = 1921 (the template allows up to ten years)

THEN

Would become: year1start = 1914, year2start = 1915, year2end = 1918, year3start = 1918, year3end = 1920, year4start = 1921

OK, so from the first line it would get to the third line. It needs to be seperated first at each use of
or
then by each use of a dash (remembering dashes come in many forms)

The parameters transferred are:

years into year(counter)start and year(counter)end

The counter should change every use of
or
into an integer (1, 2, 3 ...)

Then the first year/word would become the start parameter, and the second term the end paramter

So "1914" would have no end parameter

"1914-1915" would have both a start and end parameter

"19??-present" use of strings in both start and end parameter

"1914-1915, 1917-1918" Uses two dashes, which should take the first date (1914) and the last date (1918) as start and finish.



THE SAME EXAMPLES ABOVE NEED TO BE DONE AS WELL FOR THE FOLLOWING PARAMETERS:

  • repyears into year(counter)start and year(counter)end WHERE the counter is a capital Letter (A, B, C ...) not a number
  • coachyears into coachyear(counter)start and coachyear(counter)end where the counter is a Number
  • repcoachyears into coachyear(counter)start and coach(*counter*)end where the counter is a capital Letter (A, B, C ...) not a number
  • refereeyears into refereeyear(counter)start and refereeyear(counter)end where the counter is a number




The parameter clubs needs to be seperated at each use of <br/> or <br> and placed in the coresponding parameters club1, club2... so on. For example:

  • clubs into club(counter) where counter is a number (starts at 1) which is a new one at the seperation of each <br> or <br/>
  • repteam into team(counter) where the counter is a LETTER (starts at A) and seperated at each <br> or <br/>
  • coachclubs into coachteam(counter) where the counter is a number (starts at 1) and seperated at each <br> or <br/>
  • refereecomps into refereecomp(counter) where the counter is a number (starts at 1) and seperated at each <br> or <br/>
  • refereecaps into refereeappearances(counter) where the counter is a number (starts at 1) and seperated at each <br> or <br/>




The parameter caps(points) will be more tedious. It needs to be seperated both at each use of <br/> or <br> AND the brackets. These will be placed in the parameters appearances1 ... so on AND points1 ... so on. For example:

Old parameter caps(points) = 12 (32)<br/>14 (324)<br>281 (1010)
Would become: appearances1 = 12, points1 = 32, appearances2 = 14, points2 = 324, appearances3 = 281, points3 = 1010 (template allows ten times)
  1. So each would be seperated by either a <br> or <br/>
  2. You would then get multiple values in the form of "x (y)" or just "x" or just "(y)"
  3. So x (y) would be seperated into x and y.
  4. The x will go into the parameter appearances(counter) where the counter starts at one and goes up by 1 for each value (seperated by the br)
  5. The y will go into the points(counter) same as above.


This would have to be the same for:

  • repcaps(points) into appearances(counter) and points(counter) where the counters ARE LETTERS (starting at A) and seperated like above.




The Birth and Death date, may have some information for others but no information or limited information for others:

  • The old parameter dateofbirth and dateofdeath respectively.

Now, there will be different formats for both of these old parameters. Some will be in {{birth date and age}}, others in other templates. Some will be just written out in date form. Others might just have a year. But they somehow have to be pushed into three seperated parameters each: dayofbirth, monthofbirth, yearofbirth and dayofdeath, monthofdeath, yearofdeath.




Some other small tasks:

  • The pcupdate and repupdate should get the most recent date (one may be 12 may 08, the other 12 june 08 (in which case it would be 12 June 2008) and then seperate it into a year ("2008" in this instance) to the year parameter and the date "12 June" into the date parameter, BUT NOT LINKED.




The following parameters are no longer used and should be deleted:

| occupation =
| school =
| university =
| spouse =
| children =
| relatives =
| currentclub =
| clubnumber =
| youthyears =
| youthclubs =
| youthrepyears =
| youthrepteam =
| youthrepcaps(points) =
| otheryears =
| otherclubs =
| url =




  • They is a minority of articles that don't follow the old MOS for this infobox, the bot should create a list (somewhere) of articles that should be manually changed.