Difference between revisions of "Template:PetRanking"
Crimsonfox (talk | contribs) m |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 47: | Line 47: | ||
| Cybunny = 608,668 (46<sup>th</sup> - 0.22%) | | Cybunny = 608,668 (46<sup>th</sup> - 0.22%) | ||
| Poogle = 584,069 (47<sup>th</sup> - 0.21%) | | Poogle = 584,069 (47<sup>th</sup> - 0.21%) | ||
| Tonu = | | Tonu = 484,366 (48<sup>th</sup> - 0.17%) | ||
| Chomby = | | Chomby = 437,684 (49<sup>th</sup> - 0.16%) | ||
| Koi = | | Koi = 412,877 (50<sup>th</sup> - 0.15%) | ||
| Hissi = | | Hissi = 347,590 (51<sup>th</sup> - 0.12%) | ||
| Lutari = | | Lutari = 98,289 (52<sup>th</sup> - 0.03%) | ||
| Draik = | | Draik = 50,937 (53<sup>th</sup> - 0.02%) | ||
| #default = | | Vandagyre = 19,471 (54<sup>th</sup> - 0.01%) | ||
| Krawk = 2,507 (55<sup>th</sup> - 0.00%) | |||
| #default = | |||
}} | }} | ||
<noinclude>==Instructions to update the list== | |||
If you want to update this list yourself quickly, follow these instructions, otherwise it'll be slow to update each one manually, especially if they change places. | |||
'''1.''' Go to the [http://www.neopets.com/topneopets.phtml?type=percentage_table Pet Ranking Page] and view the source of the page | |||
'''2.''' Copy from | |||
<blockquote><nowiki> | |||
</tr><tr style="background-color: #EDEDED;"></nowiki><br /><nowiki> | |||
<td align=center><b></nowiki>'''1'''<nowiki></b></td></nowiki><br /><nowiki> | |||
<td align=center width=90 height=90 border=0><img src='http://images.neopets.com/pets/80by80/shoyru_green_happy.gif' width=80 height=80 border=0></td></nowiki><br /><nowiki> | |||
<td align=center><b>Shoyru</b></td></nowiki><br /><nowiki> | |||
<td align=center><b>17,268,615</b></td></nowiki><br /><nowiki> | |||
<td align=center><b>6.17%</b></td> | |||
</nowiki></blockquote> | |||
all the way down to | |||
<blockquote><nowiki> | |||
</tr><tr style="background-color: #FFFFFF;"></nowiki><br /><nowiki> | |||
<td align=center><b></nowiki>'''54'''<nowiki></b></td></nowiki><br /><nowiki> | |||
<td align=center width=90 height=90 border=0><img src='http://images.neopets.com/pets/80by80/krawk_blue_happy.gif' width=80 height=80 border=0></td></nowiki><br /><nowiki> | |||
<td align=center><b>Krawk</b></td></nowiki><br /><nowiki> | |||
<td align=center><b>2,499</b></td></nowiki><br /><nowiki> | |||
<td align=center><b>0.00%</b></td> | |||
</nowiki></blockquote> | |||
and paste into Notepad++. Note the exact figures will change, you're basically looking for those bold numbers and the HTML surrounding them. It'll be 324 lines of code to be exact. | |||
'''3.''' Use the find and replace feature with Regular Expression selected. (Remove the quote marks) | |||
'''Find:''' <nowiki>"</tr>.*?<b>(.*?)</b>.*?<b>(.*?)</b>.*?<b>(.*?)</b>.*?<b>(.*?)</b></td>"</nowiki> | |||
'''Replace with:''' <nowiki>"| $2 = $3 \($1<sup>th</sup> - $4\)"</nowiki> | |||
'''4.''' Change 1st, 2nd and 3rd places from "1th, 2th, 3th" | |||
'''5.''' Replace in current template | |||
Done!<noinclude> |
Latest revision as of 02:14, 13 December 2014
Instructions to update the list
If you want to update this list yourself quickly, follow these instructions, otherwise it'll be slow to update each one manually, especially if they change places.
1. Go to the Pet Ranking Page and view the source of the page
2. Copy from
</tr><tr style="background-color: #EDEDED;">
<td align=center><b>1</b></td>
<td align=center width=90 height=90 border=0><img src='http://images.neopets.com/pets/80by80/shoyru_green_happy.gif' width=80 height=80 border=0></td>
<td align=center><b>Shoyru</b></td>
<td align=center><b>17,268,615</b></td>
<td align=center><b>6.17%</b></td>
all the way down to
</tr><tr style="background-color: #FFFFFF;">
<td align=center><b>54</b></td>
<td align=center width=90 height=90 border=0><img src='http://images.neopets.com/pets/80by80/krawk_blue_happy.gif' width=80 height=80 border=0></td>
<td align=center><b>Krawk</b></td>
<td align=center><b>2,499</b></td>
<td align=center><b>0.00%</b></td>
and paste into Notepad++. Note the exact figures will change, you're basically looking for those bold numbers and the HTML surrounding them. It'll be 324 lines of code to be exact.
3. Use the find and replace feature with Regular Expression selected. (Remove the quote marks)
Find: "</tr>.*?<b>(.*?)</b>.*?<b>(.*?)</b>.*?<b>(.*?)</b>.*?<b>(.*?)</b></td>"
Replace with: "| $2 = $3 \($1<sup>th</sup> - $4\)"
4. Change 1st, 2nd and 3rd places from "1th, 2th, 3th"
5. Replace in current template
Done!