Discussion

From Ragnarok Project Zero wiki
Jump to navigation Jump to search

Discord

We now have a discord that we're using for wiki related stuff. Discord Blueness (talk) 20:31, 19 June 2017 (UTC)


Regular expression magic

Is the prospect of manually updating every article that includes map coordinates with the new {{Navi}} template making you depressed? Then you need new regular expression magic! Automatically insert the {{Navi}} template into articles with just a few key presses! Just follow these simple steps:

  1. Install and then open Atom.
  2. Create a new file (control-N).
  3. Paste the wikitext that you wish to update (control-V).
  4. Press control-F to open the find panel.
  5. Press alt-control-/ to enable regular expressions.
  6. Enter the following into the respective fields:

    Find: \(?\s+'*\/navi +([\w-]+) +(\d+)\/(\d+)'*\s+\)?
    Replace: {{Navi|$1|$2|$3}}
  7. Press Replace all.

For example, any of the following would be replaced with {{Navi|prontera|146|89}}:

  • /navi prontera 146/89
  • (/navi prontera 146/89)
  • ('''/navi prontera 146/89''')

Richard (talk) 01:00, 26 November 2016 (UTC)

Help...Can't do this on Guarana Quest page.Did I miss something? thanks you
--Sunnydoll (talk) 14:19, 28 February 2017 (UTC)

  • Ah, I put a "?" after "/s"...still don't understand why but it work!
    Find: \(?\s?'*?\/navi +([\w]+) +(\d+)\/(\d+)'*\s?\)?
  • If add a "?" after the second "'*" would fail finding. *confusion*
    Find: \(?\s?'*?\/navi +([\w]+) +(\d+)\/(\d+)'*?\s?\)?

--Sunnydoll (talk) 14:48, 28 February 2017 (UTC)

  • For finding (dicastes01 175, 217) to be replaced
    Find: \(?\s?'*?([\w]+) +(\d+), (\d+)'*\s?\)?

--Sunnydoll (talk) 04:20, 3 March 2017 (UTC)