Template talk:O BaseNPC

From Valve Developer Community
Revision as of 11:32, 10 June 2009 by TomEdwards (talk | contribs) (New page: == Definition list == This very popular template currently creates this HTML: <source lang=xml><ul> <li><b>OnDeath</b></li> </ul> <dl> <dd>Fired when this NPC is killed.</dd> <dd><a href...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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)