User:Kenoxite: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:


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 [[User_talk:Kenoxite|talk]] page.
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 [[User_talk:Kenoxite|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:
<code>^(\{\{row\/\{\{PAGENAME\}\}\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?)\r\n^(\|)"(.*?)"(.*?\{\{hint\|.*?\}\})</code>
And for those without hints, search for:
<code>^(\{\{row\/\{\{PAGENAME\}\}\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?\|)(.*?)\r\n^(\|)"(.*?)"</code>
Replace in both cases with:
<code>\1name=\2rarity=\3price=\4color=\5mat1=\6mat2=\7volume=\8weight=\9bashdmg=${10}tohit=${11}encumbrance=${12}enviprotect=${15}warmth=${16}storage=${17}cover=${18}</code>
Finally, a normal replace (no regex) to add missing parameters with default values.
Search for:
<code>)}}</code>
and replace with:
<code>)|coverage=0|thickness=1}}</code>

Revision as of 11:15, 3 October 2013

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}}