User:Kenoxite

From The Cataclysm: Dark Days Ahead Wiki
Revision as of 11:15, 3 October 2013 by Kenoxite (talk | contribs)
Jump to navigation Jump to search

I'm one of the users with "administrator" level in this wiki.

If you find something that should be looked into, be it blocking a spammer or moving pages, feel free to contact me by adding the request to my talk page.


Misc stuff

Mainly for personal use, but might help others.

Regex

(For notepad++, but should work in anything that deals with regex)

(This one was for the clothing update)

For entries with hints, search for:

^(\{\{row\/\{\{PAGENAME\}\}\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?)\r\n^(\|)"(.*?)"(.*?\{\{hint\|.*?\}\})

And for those without hints, search for:

^(\{\{row\/\{\{PAGENAME\}\}\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?)\r\n^(\|)"(.*?)"

Replace in both cases with:

\1name=\2rarity=\3price=\4color=\5mat1=\6mat2=\7volume=\8weight=\9bashdmg=${10}tohit=${11}encumbrance=${12}enviprotect=${15}warmth=${16}storage=${17}cover=${18}


Finally, a normal replace (no regex) to add missing parameters with default values.

Search for:

)}}

and replace with:

)|coverage=0|thickness=1}}