Difference between revisions of "Template:PetRanking"
Crimsonfox (talk | contribs) m |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{PAGENAME}} | {{#switch: {{PAGENAME}} | ||
| Shoyru = 17,268,615 (1<sup> | | Shoyru = 17,268,615 (1<sup>st</sup> - 6.17%) | ||
| Kacheek = 17,022,892 (2<sup> | | Kacheek = 17,022,892 (2<sup>nd</sup> - 6.08%) | ||
| Kougra = 15,335,941 (3<sup> | | Kougra = 15,335,941 (3<sup>rd</sup> - 5.48%) | ||
| Lupe = 14,083,486 (4<sup>th</sup> - 5.03%) | | Lupe = 14,083,486 (4<sup>th</sup> - 5.03%) | ||
| Xweetok = 13,416,609 (5<sup>th</sup> - 4.80%) | | Xweetok = 13,416,609 (5<sup>th</sup> - 4.80%) | ||
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%) | ||
| Krawk = 2, | | Vandagyre = 19,471 (54<sup>th</sup> - 0.01%) | ||
| #default = | | 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!