User talk:Tenfold
Pokémon Pages
For anybody who wishes to help out with the Pokémon pages (e.g. Bulbasaur), I figured I would say a few things that might make some lives easier. First off, every page follows the same format. There's general information, the move set, the leveling chart, and then the external links (Serebii and Bulbapedia). That's all for now. The move set, until further verification can be gotten through the PlayerDex, is simply gotten by using FR/LG levels, the game which Pokémon World Online uses as a model.
The chart at the beginning isn't that hard to fill out. For the most part, non-evolved forms will be available for purchase for tokens. Most of the time it's four, but you can check on the Tokens page to make sure. The image is a 100px image that follows the format (Pokémon Name)(DexNumber).png (e.g. Bulbasaur001.png). I still need to upload most of Ken Sugimori's drawings, but I can guarantee that they will follow that format, so feel free to add the non-existent image with that file name.
Color coding shouldn't be too difficult with a little knowledge of how the style attribute works. Even then, it's simply going to be a matter ofAnyways, what I really want to talk about is the leveling charts. A while ago (i.e. when Zammbi announced the new EXP system), I wrote a code to calculate every value for each level -- it really turns out that Zammbi had made a few mistakes when writing the actual code into the game (thus several changes throughout the past few months). The results of this code can be found through this link: http://iblamelee.co.uk/pwo/pokelevel.txt. If for any reason you want it, I could give you the text file that contains the base experience of every Pokémon from first to fourth gen and you can calculate the values yourself, because nothing is really as fun as going through all 493 Pokémon pages at Bulbapedia to gather such information (though I did convert it into a table on the Base Experience page).
So, the first step into getting the tables is to simply download the file found on the link provided earlier (pokelevel.txt). Open up the file, and then use find and replace to replace ". " with ".|". Then, open up a blank file and then copy this python code and save as a .py file in the same folder you saved the level chart:
file = raw_input("Enter the file name (Text files (.txt) only. Do not type the extension.): ")
infile=open(file + '.txt')
rowlist=infile.read().split('\n')[:]
infile.close()
tablearray=[]
fileout=open(file + '.html', 'w')
for r in range(0,20):
tablearray.append([])
colcount = 0
rowcount = 0
for row in rowlist:
if row == "":
continue
collist=row.split('|')[:]
for col in collist:
tablearray[rowcount].append(col)
rowcount+=1
if rowcount > 19:
rowcount = 0
colcount+=1
if colcount > 4:
fileout.write("<table>\n")
for row in tablearray:
fileout.write("<tr>\n")
for col in row:
fileout.write("<td> " + str(col) + " </td>\n")
fileout.write("</tr>\n")
fileout.write("</table>\n")
rowcount=0
colcount=0
tablearray=[]
for r in range(0,20):
tablearray.append([])
fileout.close()
Running the program shouldn't prove to be too difficult. Make sure you have Python installed on your computer, which can be gotten from http://www.python.org/. The code above was created using 2.6.6, though I believe that the code will still run properly for later versions. Open up a terminal (or command prompt if on Windows) and navigate to where you have the python file. Alternatively, you can run the file using the folder-navigation system.
At run time, the program will prompt for a file to parse. At this point, simply type the level chart's name without the extension. If saved directly on your computer, it'll be labeled as pokelevel.txt and therefore all you'll need to type is pokelevel. If the text file is not located in the same directory as the python file, then you will have to provide an exact location. The program should not take more than a second to run. After the run, a file should appear under the name pokelevel.html (pokelevel is the original name of the level file). Open the file up in notepad or another text-editor or IDE and you should have all the leveling tables for every Pokémon. At that point, it's simply a matter of copy and pasting.
It's worth noting that in the code above, neither the attributes nor the headings are written in the file. This is simply due to the fact that I was not thinking about headers when originally writing the conversion program. However if you really want to, you can edit the program to write in the additional code for you. Or you can just copy and paste the headers from an already existing page and save a few bytes.
In addition, the first two table cells are dedicated to listing the Pokémon and its base XP. This actually served two purposes. The first purpose is it labels the table for each access (ctrl+f). The second purpose is it makes the number of rows parsed per Pokémon an even number. While I could have replaced the two cells withThat's really the gist of how to get the Pokémon level tables. If you have any problems actually running the program, first make sure you actually have a version of Python installed on your computer. If the program seems to work incorrectly on your computer, or if you have any questions, feel free to talk here.
Tenfold 06:14, 16 November 2010 (GMT)
RE: Spelling Mistakes
Actually, when I correct spelling mistakes - they're MISTAKES, not convention changes (although I will admit to having made a few convention changes in some of the edits). Otherwise, I would not call them such.
Also, please read my Talk Page in regards to a matter you raised there. --Jinji, The Human Gengar (talk|contribs) 14:56, 18 November 2010 (GMT)
Broken Moves
As glad as I am that you finished the "Broken Moves" page for me (though I was working on it while you were, so I almost saved over your changes), I'm afraid you didn't do it quite correctly.
For one thing, the |- tag was only meant to appear at the START of new rows - it is not required at the end of one unless there is one after. So the fact you put it before |} in all of your tables was wrong and may have caused formatting issues in the long run. I have clarified this in the Discussion page now.
Also, I was not hoping to see people just paste in the existing reasons in the table - I wanted them rewritten, as many of them did not actually make sense in the form supplied on the original list, or contained very poor grammar. That you did this is what I consider very lazy editing.
I suppose I should be thankful for making my job easier, and I also thank the many corrections you made to the already existing list. In fact, thanks to you, I actually feel that this list may actually be completable by the end of today, rather than taking a few more days. I just ask you to be more careful next time. Don't worry though - since I was already working on the page, I'll clean it up. --Jinji, The Human Gengar (Visit my lair) 01:45, 26 November 2010 (GMT)