![]() |
|
#1
|
|||
|
Dunno where to post this, so apologies ahead of time -
On: https://wiki.project1999.com/index.p...ic&action=edit In spells, some levels are missing the <tr> tag for the first element. Code:
==Level 50==
<table cellpadding='5' cellborder='0' cellspacing='0' width='92%'>
<tr bgcolor="#cccccc"><td width='22%' valign='top'><b>Spell Name</b></td><td width='52%' class='spti' valign='top'><b>Spell Description</b></td><td width='5%' class='spti' valign='top'><b>Era</b></td><td width='5%' class='spti' valign='top'><b>Class</b></td><td width='8%' class='spti' valign='top'><b>Location</b></td><td width='5%' class='spti' valign='top'><b>Mana</b></td></tr>
<td width='22%'>[[Improved Invis to Undead]]</td><td width='52%'>Self-only invisibility to undead (fixed duration)</td><td width='5%'>Vel.</td><td width='5%'>Abj.</td><td width='8%'>NPC Drop.</td><td width='5%'>75</td>
</table>
Code:
==Level 49==
<table cellpadding='5' cellborder='0' cellspacing='0' width='92%'>
<tr bgcolor="#cccccc"><td width='22%' valign='top'><b>Spell Name</b></td><td width='52%' class='spti' valign='top'><b>Spell Description</b></td><td width='5%' class='spti' valign='top'><b>Era</b></td><td width='5%' class='spti' valign='top'><b>Class</b></td><td width='8%' class='spti' valign='top'><b>Location</b></td><td width='5%' class='spti' valign='top'><b>Mana</b></td></tr>
<tr><td width='22%'>[[Abolish Poison]]</td><td width='52%'>Removes poison effects</td><td width='5%'> </td><td width='5%'>Alt.</td><td width='8%'>Vendor.</td><td width='5%'>100</td></tr>
__________________
![]() | ||
|
|
|||
|
#2
|
|||
|
That might be my fault - I redid that spell list a couple years back because it was an absolute mess. In any case: https://wiki.project1999.com/template:disclaimer
| ||
|
|
|||
|
#3
|
|||
|
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%'>(?: )</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%'>(?: )</td><td width='5%'>(.*?)</td><td width='8%'>(.*?)</td><td width='5%'>(.*?)</td>(?:</tr>) Code:
{{SpellRow
|name=$1
|description=$2
|era=$3
|school=$4
|location=$5
|mana=$6
}}
__________________
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. | ||
|
|
|||
![]() |
|
|