Template talk:O BaseNPC

From Valve Developer Community
Jump to navigation Jump to search

Definition list

This very popular template currently creates this HTML:

<ul>
<li><b>OnDeath</b></li>
</ul>
<dl>
<dd>Fired when this NPC is killed.</dd>
<dd><a href="/wiki/Targetname#Keywords" title="Targetname">!activator</a> = killer</dd>
</dl>
<ul>
<li><b>OnHalfHealth</b></li>
</ul>
<dl>
<dd>Fired when this NPC reaches half of its maximum health.</dd>
</dl>

Pretty atrocious. I want to change it to a single unified DL so that it looks like this:

OnDeath
Fired when this NPC is killed (!activator is the killer)
OnHalfHealth
Fired when this NPC reaches half of its maximum health

And generates markup like this:

<dl>
<dt>OnDeath</dt>
<dd>Fired when this NPC is killed <a href="/wiki/Targetname#Keywords" title="Targetname">!activator</a> = killer</dd>
<dt>OnHalfHealth</dt>
<dd>Fired when this NPC reaches half of its maximum health</dd>
</dl>

Anyone dislike the idea? --TomEdwards 11:32, 10 June 2009 (UTC)