Template:NPC: Difference between revisions

No edit summary
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:
   _table=NPCs
   _table=NPCs
   |Name=String
   |Name=String
  |InternalID=Integer
   |Attackable=Integer
   |Attackable=Integer
   |Aggressive=String
   |Aggressive=String
Line 18: Line 19:
   |TreasureMap=String
   |TreasureMap=String
}}</noinclude>
}}</noinclude>
<includeonly>{{#cargo_store:
  _table=NPCs
  |Name={{{name|{{PAGENAME}}}}}
  |Attackable={{{attackable|1}}}
  |Aggressive={{{aggressive|Unknown}}}
  |Level={{{level|}}}
  |MaxHit={{{maxhit|}}}
  |Speed={{{speed|}}}
  |Respawn={{{respawn|}}}
  |Hitpoints={{{hitpoints|}}}
  |Accuracy={{{accuracy|}}}
  |Strength={{{strength|}}}
  |Defense={{{defense|}}}
  |Magic={{{magic|}}}
  |Ranged={{{range|}}}
  |RareLoot={{{rareloot|}}}
  |RootLoot={{{rootloot|}}}
  |TreasureMap={{{treasuremapitem|}}}
}}</includeonly>
<div class="infobox">
<div class="infobox">
<table style="border:1px solid #aaa; background:#f9f9f9; width:300px; font-size:90%;">
<table style="border:1px solid #aaa; background:#f9f9f9; width:300px; font-size:90%;">
Line 130: Line 112:
{{#if:{{{treasuremapitem|}}}|
{{#if:{{{treasuremapitem|}}}|
<tr>
<tr>
   <td>{{{treasuremapitem|?}}}</td>
   <td style="min-width: 140px;">{{{treasuremapitem|?}}}</td>
   <td>{{{treasuremapchance|Unknown}}}</td>
   <td>{{{treasuremapchance|Unknown}}}</td>
</tr>
</tr>
Line 136: Line 118:
}}
}}
</table>
</table>
{{#if:{{{xPos|}}}{{{yPos|}}}|
{{MapEmbed|lvl={{{lvl|1}}}|xPos={{{xPos}}}|yPos={{{yPos}}}|size=300px}}
}}
</div>
</div>
[[Category:NPCs]]
<includeonly><span style="display:none">{{#cargo_store:
  _table=NPCs
  |Name={{{name|{{PAGENAME}}}}}
  |InternalID={{{_id|}}}
  |Attackable={{{attackable|1}}}
  |Aggressive={{{aggressive|Unknown}}}
  |Level={{{level|}}}
  |MaxHit={{{maxhit|}}}
  |Speed={{{speed|}}}
  |Respawn={{{respawn|}}}
  |Hitpoints={{{hitpoints|}}}
  |Accuracy={{{accuracy|}}}
  |Strength={{{strength|}}}
  |Defense={{{defense|}}}
  |Magic={{{magic|}}}
  |Ranged={{{range|}}}
  |RareLoot={{{rareloot|}}}
  |RootLoot={{{rootloot|}}}
  |TreasureMap={{{treasuremapitem|}}}
}}</span></includeonly>
{{#ifeq:{{NAMESPACE}}|Template
  | <!-- do nothing -->
  | [[Category:NPCs]]
}}