Main Page
Difference between revisions of "User:Electrolytes"
Jump to navigation
Jump to search
Electrolytes (talk | contribs) (Actually corrected it... too out of it, time to go eat) |
Electrolytes (talk | contribs) m |
||
Line 62: | Line 62: | ||
<pre> | <pre> | ||
\[\[File:HuIcon.png\|Hunter\]\]\[\[File:FiIcon.png\|Fighter\]\]\[\[File:RaIcon.png\|Ranger\]\]\[\[File:GuIcon.png\|Gunner\]\]\[\[File:FoIcon.png\|Force\]\]\[\[File:TeIcon.png\|Techer\]\]\[\[File:BrIcon.png\|Braver\]\]\[\[File:BoIcon.png\|Bouncer\]\] | \[\[File:HuIcon.png\|Hunter\]\]\[\[File:FiIcon.png\|Fighter\]\]\[\[File:RaIcon.png\|Ranger\]\]\[\[File:GuIcon.png\|Gunner\]\]\[\[File:FoIcon.png\|Force\]\]\[\[File:TeIcon.png\|Techer\]\]\[\[File:BrIcon.png\|Braver\]\]\[\[File:BoIcon.png\|Bouncer\]\] | ||
+ | </pre> | ||
+ | Remove: | ||
+ | <pre> | ||
+ | <tr class=\"head.*?\/tr> | ||
</pre> | </pre> | ||
Revision as of 01:42, 20 January 2016
Scratch pad
Notepad++, weapons page regex semi-auto generate test
Using this with CR/LF on first: http://www.odditysoftware.com/page-webtools16.htm
Find:
<tr>.*?class=\"([\w]*)\">(\d*)★.*?rel=\"(\w*)\".*?all\(this\)..([^<]*).*?title.*?>([^<]*).*?<td>([\d]*)....([-\w]*).*?<td>.*?<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(.*?)<td.*?>(.*?)<td.*?>(.*?)<td.*?>(.*?)<\/tr>
Replace:
<\!--Rarity-->\|\{\{\:$2Star\}\}\r\n<\!--Icon-->\|\[\[Image\:$5\.png\]\]\r\n<\!--Name-->\|\[\[$5\]\]<br>$4\r\n<\!--Requirement-->\|$6 $7\r\n<\!--Stat-->\|\[\[Image\:small_s-atk\.png\]\] <br>[\[Image\:small_r-atk\.png\]\] <br>[\[Image\:small_t-atk\.png\]\]\r\n<\!--Base\(S-Atk\, R-Atk\, T-Atk\)-->\|$8<br>$9<br>$10\r\n<\!--\+10-->\|$38<br>$39<br>$40\r\n<\!--Properties-->\|$42\r\n<\!--Classes-->\|$43\r\n\|-\r\n<noinclude>\r\n\[\[Category\:DataSwords\]\]\r\n\[\[Category\:Data\]\]\r\n<\/noinclude>\r\n\r\n
Find:
<img.*?attribute.*?title=\"(\w*)[^\d]*(\d*)
Replace:
\[\[Image\:$1\.png\]\] $2
Find:
<img.*?title=\"Ability\".*?title=\"([^\"]*)\"> ([^<]*).*?>
Replace:
\[\[Image\:Ability\.png\]\] \{\{abbr\|$2\|$1\}\}
Find:
<img.*?title=\"Potential\".*?title=\"([^\"]*)\"> ([^<]*).*?>
Replace:
\{\{pots\|$2\}\}
Find:
<img.*?title=\"Photon Art\".*?title=\"([^\"]*)\"> ([^<]*).*?>
Replace:
\[\[Image\:Photon Art\.png\]\] \{\{abbr\|$2\|$1\}\}
Find:
<img.*?class_.*?title=\"((\w\w)\w*)..>
Replace:
\[\[Image\:$2Icon\.png\|$1\]\]
Find:
<img.*?title=\"All Class\".>
Replace:
\[\[File:HuIcon.png\|Hunter\]\]\[\[File:FiIcon.png\|Fighter\]\]\[\[File:RaIcon.png\|Ranger\]\]\[\[File:GuIcon.png\|Gunner\]\]\[\[File:FoIcon.png\|Force\]\]\[\[File:TeIcon.png\|Techer\]\]\[\[File:BrIcon.png\|Braver\]\]\[\[File:BoIcon.png\|Bouncer\]\]
Remove:
<tr class=\"head.*?\/tr>
For generating page links:
Find:
<\!--Icon-->.*?Image\:(.*)\.png\]\]
Replace:
http\:\/\/nanapedia-pso2\.shoutwiki\.com\/wiki\/Template\:SimpleData$1