View Single Post
  #1  
Old 11-19-2017, 02:21 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,476
Default

I created a new "SpellRow" template, then applied it to the whole Cleric spell page. This should make everything have uniform HTML (no missing TRs), plus it will be easier to edit spell lists (not like that happens much anymore). As an added bonus, once I apply the template to all of the other classes it makes the possibility of switching to an improved style (eg. http://wiki.project1999.com/Bard/Songs) a lot easier.

If anyone out there wants to help and knows regular expressions (all I did to "upgrade" the Cleric page was use a regex-based find/replace) here are the basic regexs I used (although I had to tweak and re-run them a few times to handle slight variations):

Find:
Code:
\w*(?:<tr.*?>)<td width='22%'>\[\[(.*?)\]\]</td><td width='52%'>(.*?)</td><td width='5%'>(?:&nbsp;)</td><td width='5%'>(.*?)</td><td width='8%'>(.*?)</td><td width='5%'>(.*?)</td></tr>
<td width='22%'>\[\[(.*?)\]\]</td><td width='52%'>(.*?)</td><td width='5%'>(?:&nbsp;)</td><td width='5%'>(.*?)</td><td width='8%'>(.*?)</td><td width='5%'>(.*?)</td>(?:</tr>)
Replace:
Code:
{{SpellRow
|name=$1
|description=$2
|era=$3
|school=$4
|location=$5
|mana=$6
}}
If there are no brave souls I'll try to do the rest of the pages when I have time (and after that I'll start trying to switch to the improved style).
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.