Template talk:IIDX Chart: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==ez conversion== * copy and paste a bunch of Difficulty & Notecounts using the outdated notecounts into [https://notepad-plus-plus.org/ Notepad++] * go to Replace, check "Reg...") |
No edit summary |
||
Line 1: | Line 1: | ||
==ez conversion== | ==ez conversion== | ||
I did this while updating the RA notecounts then realized since I haven't done anything since I should just post about in case it'd save anybody else time. | |||
* copy and paste a bunch of Difficulty & Notecounts using the outdated notecounts into [https://notepad-plus-plus.org/ Notepad++] | * copy and paste a bunch of Difficulty & Notecounts using the outdated notecounts into [https://notepad-plus-plus.org/ Notepad++] | ||
* go to Replace, check "Regular expression" in the bottom left | * go to Replace, check "Regular expression" in the bottom left |
Revision as of 01:17, 14 July 2015
ez conversion
I did this while updating the RA notecounts then realized since I haven't done anything since I should just post about in case it'd save anybody else time.
- copy and paste a bunch of Difficulty & Notecounts using the outdated notecounts into Notepad++
- go to Replace, check "Regular expression" in the bottom left
- Find and Replace the former with the latter:
- \{\{(?:IIDX Chart Info|IIDX CN Chart Info|IIDX BSS Chart Info|IIDX CNBSS Chart Info).*\r\n\| (?:beg_notes = (.*)\r\n|).* = (.*)\r\n.* = (.*)\r\n.* = (.*)\r\n.* = (.*)\r\n.* = (.*)\r\n.* = (.*)
- {{IIDX Chart Header|\r\n{{IIDX Chart Notecounts|$1|$2|$3|$4|$5|$6|$7}}
- do that again with:
- \| chart_version_[0-9]+ = (.*)\r\n(?:\| beg_difficulty_[0-9]+ = (.*)\r\n|).* = (.*)\r\n.* = (.*)\r\n.* = (.*)\r\n.* = (.*)\r\n.* = (.*)\r\n.* = (.*)
- {{IIDX Chart|$1|$2|$3|$4|$5|$6|$7|$8}}
- then do a normal find and replace, finding "||" and replacing it with "|-|" (so nonexistent beginner charts show up as "-")
You will need to add in stuff like "cn=a|" for charge notes manually, but this should save some time for anybody who wants to work on this, life is too short to convert a bunch of templates on IIDX wiki pages manually.
I only know a lil bit about regex so I'm sure there are people who could do this much more efficiently still, I dunno who those people would be though!! --Hyso (talk) 01:17, 14 July 2015 (UTC)