Difference between revisions of "Template:NPC/Layout"

From FreewarWiki
Jump to: navigation, search
(Undo revision 7198 by Amaryll (Talk))
(- show/hide images test)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{TemplateWarning}}
 
{{TemplateWarning}}
{{GermanLinking|Name:DE={{{Name:DE|none}}}}}
+
{{GermanLinking|Name:DE={{{Name:DE|none}}}}}<!--
{{NPC/Invasion|Invasion={{{Invasion}}}}}
+
Definition of the kind of invasions
 +
-->{{#switch: {{{Invasion}}}
 +
| yes
 +
| ok
 +
| true = {{#vardefine:kind of invasion|normal}}
 +
| phasenpc
 +
| Phasenpc = {{#vardefine:kind of invasion|phasecreatures}}
 +
| phasecreature
 +
| Phasecreature = {{#vardefine:kind of invasion|phasecreatures}}
 +
| Belron
 +
| belron = {{#vardefine:kind of invasion|belron}}
 +
<!--If there will be new kind of invasions incoporated, please incorporate them following the example above (watch out for the capital letters!)
 +
| aso = {{#vardefine:kind of invasion|aso}}
 +
| Aso = {{#vardefine:kind of invasion|aso}}-->
 +
| #default = {{#vardefine:kind of invasion|none}}
 +
}}<!--
 +
-->{{#ifeq:{{#var:kind of invasion}}|phasecreatures|{{This article|Refers to one of the different kinds of  '''[[Phase Creatures]]'''.}}}}
 
{| width="500px" style="{{NPC/Colours}} solid 2px;"   
 
{| width="500px" style="{{NPC/Colours}} solid 2px;"   
  | width="60px" align="center" valign="middle" rowspan="3" style="{{NPC/Colours}} outset 2px; margin-right:15px;" | {{#if:{{NAMESPACE}}||<span class="NI">{{#ifeq:{{{Image|}}}||<big>'''-'''</big><includeonly>[[Category:NPCs without Image]]</includeonly>|{{{Image}}}[[Category:NPC with Image]]}}</span>}}
+
  | width="60px" align="center" valign="middle" rowspan="3" style="{{NPC/Colours}} outset 2px; margin-right:15px;" | {{#if:{{NAMESPACE}}||{{#ifeq:{{{Image|}}}||<big>'''-'''</big><includeonly>[[Category:NPCs without Image]]</includeonly>|{{{Image}}}[[Category:NPCs with Image]]}}}}
 
  | width="5px" rowspan="3" |  
 
  | width="5px" rowspan="3" |  
  | '''{{{Name|{{PAGENAME}}}}}''' {{#ifeq:{{{Aggressive|none}}}|none||<span style="color:#ff0000">'''(AGGRESSIV)'''</span>}} ''([[NPC]])''
+
  | '''{{{Name|{{PAGENAME}}}}}''' {{#ifeq:{{{Aggressive|none}}}|none||<span style="color:#ff0000">'''(AGGRESSIVE)'''</span>}} ''([[NPC]])''
 
  |-
 
  |-
 
  | {{{Description}}}
 
  | {{{Description}}}
 
  |-
 
  |-
  | {{#ifeq:{{{unattakable|none}}}|none|''Attack Power: {{{Attack Power}}}''}}
+
  | ''Attack Power: {{{Attack Power}}}''
 
  |}
 
  |}
{{#ifeq:{{{Image|}}}|||{{NPC/ShowImage}}}}
 
 
{| width="500px" |
 
{| width="500px" |
  | width="49%"|{{#ifeq:{{{NPC/Items|none}}}|none|{{NPC/Items|Items=|unattakable={{{unattakable|}}}}}|{{NPC/Items|Items={{{NPC/Ite|}}}|unattakable={{{unaattakable|}}}}}}}
+
  | width="49%"| '''Items:'''
 +
{{#ifeq:{{{Items|none}}}|none||{{{Items}}}}}{{#ifeq:{{#var:kind of invasion}}|phasecreatures|
 +
* [[Phase Sphere]] ''(1:15)''}}{{#ifeq:{{#var:kind of invasion}}|belron|
 +
* [[Phase Raygun]] ''(1:4000)''
 +
* [[Book of Phase Energy Efficiency]] ''(1:20000)''}}
 +
* [[Soul Capsule]] ''{{#ifeq:{{#var:kind of invasion}}|none|(not always)|(95% less frequent than normal)}}''
 +
* [[Spirit Shard]] ''(infrequent)''
 +
* [[Drop-Item]]s ''(really infrequent)''
 
  | &nbsp;
 
  | &nbsp;
  | '''Life Points:''' {{#ifeq:{{{Life Poins|none}}}|none|{{{Life Points}}} [[Life Points|LP]]|{{{Life Points}}}}}
+
  |'''Life Points:''' {{{Life Points}}} [[Life Points|LP]]
 
  |-
 
  |-
  | {{#ifeq:{{{unattakable|none}}}|none| '''Expirience:''' {{{XP}}} [[Experience|XP]]}}
+
  | '''Experience:''' {{{XP}}} [[Experience|XP]]
 
  | &nbsp;
 
  | &nbsp;
  | rowspan="3" width="49%" |'''Occurence:'''
+
  | rowspan="3" width="49%" |'''Occurrence:'''
{{#ifeq:{{#var:Invasion}}|phase creatures|* all over the [[world]]<br />([[Surface]] and [[Dungeon|dungeon]]s), except [[Duel Zone]]|{{{Occurrence}}}}}{{#ifeq:{{#var:Invasion}}|belron|* [[Belron]]}}
+
{{#ifeq:{{#var:kind of invasion}}|phase creatures|* all over the [[world]]<br />([[Surface]] and [[Dungeon|dungeon]]s), except [[Duel Zone]]|{{{Occurrence}}}}}{{#ifeq:{{#var:kind of invasion}}|belron|* [[Belron]]}}
 
  |-
 
  |-
  | {{#ifeq:{{{unattakable|none}}}|none|'''Gold:''' {{{Gold}}} [[Gold]]}}
+
  |'''Gold:''' {{{Gold}}} [[Gold]]
 
  |-
 
  |-
  |
+
  | {{#ifeq:{{{Quest|none}}}|none||'''Quest:'''<br />
|-
+
This NPC belongs to a [[Quest:{{{Quest}}}|Quest]].
| colspan="3" |
+
}}
{{#ifeq:{{{Function|none}}}|none||'''Function''':
 
 
 
{{{Function}}}}}
 
 
  |-
 
  |-
 
  | colspan="3" |
 
  | colspan="3" |
{{#ifeq:{{{NPC/Other|none}}}|none|{{#ifeq:{{{ImageAuthor|none}}}|none|{{#ifeq:{{{Bonus|none}}}|none|{{#ifeq:{{{Quest|none}}}|none|{{#ifeq:{{{Aggressive|none}}}|none|{{#ifeq:{{{Lifespan|none}}}|none||'''Miscellaneous:'''}}|'''Miscellaneous:'''}}|'''Miscellaneous:'''}}|'''Miscellaneous:'''}}|'''Miscellaneous:'''}}|'''Miscellaneous:'''<br />
+
{{#ifeq:{{{Miscellaneous|none}}}|none|{{#ifeq:{{{ImageAuthor|none}}}|none|{{#ifeq:{{{Bonus|none}}}|none||'''Miscellaneous:'''}}|'''Miscellaneous:'''}}|'''Miscellaneous:'''<br />
{{{Miscellaneous}}}}}{{NPC/Other|PhasenenergiedropMaximum={{{PhasenenergiedropMaximum|{{PhasenenergiestandarddropMaximum}}}}}|Quest={{{Quest|none}}}|unattakable={{{unattackable|none}}}|Aggressive={{{Aggressive|none}}}|Bonus={{{Bonus|none}}}|ImageAuthor={{{ImageAuthor|none}}}|DetailSite={{{DetailSite|none}}}|Lifespan={{{Lifespan|none}}}}}
+
{{{Miscellaneous}}}}}{{#ifeq:{{{Bonus|none}}}|none||
 +
* This NPC does not collect any [[NPC#Gold from NPCs|bonus]].
 +
[[Category:NPCs without gold drop bonus]]}}{{#ifeq:{{#var:kind of invasion}}|none||{{#ifeq:{{#var:kind of invasion}}|phase creature|
 +
* The drop rate of a [[Phase Sphere]] can be raised by learning the [[Phase Theory]] [[Skill]].
 +
* When you kill this NPC, you will gain Phase Energy.
 +
* This NPC has a special chat text when it appears:
 +
{{Chat/Action| |The air flickers and a phase creature appears on the field.}}[[Category:Phase Creatures]]}}{{#ifeq:{{#var:kind of invasion}}|belron|
 +
* This NPC has a special chat text when it appears:
 +
{{Chat/Action| |Tiny spores sink to the ground, and within seconds a '''{{PAGENAME}}''' has grown to its full size.}}
 +
* You are not able to appear on this field by using [[Soul Spheres]].
 +
* This NPC will only respawn when killing a [[Spore Carrier]].
 +
}}
 +
* This NPC dissolves after a certain amount of time {{#ifeq:{{#var:kind of invasion}}|belron|(between 10 minutes and 2 hours) }}.
 +
{{Chat/Action|{{{Name|{{PAGENAME}}}}}|dissolves.}}
 +
* When killing this NPC, any [[Amulet]] will be activated 95% less than usual.
 +
* This NPC cannot be [[Resurrection Spells|summoned]], except it was chased away previously.
 +
[[Category:Invasion NPCs]]}}{{#ifeq:{{{Aggressive|none}}}|none||
 +
* WARNING: This NPC is able to attack and kill a [[player]], at the earliest 2 seconds after s/he stepped onto the field!
 +
[[Category:Aggressive NPCs]]}}{{#ifeq:{{{ImageAuthor}}}|unknown|
 +
*The author of this NPC picture is unknown.|{{#ifeq:{{{ImageAuthor|none}}}|none||
 +
*This NPC picture was created by [[{{{ImageAuthor}}}]].}}}}
 
|}
 
|}
{{ForAll|{{{Name|{{PAGENAME}}}}}}}{{#ifeq:{{NAMESPACE}}||[[Category:NPCs]]}}<noinclude>
+
{{ForAll}}
  
 +
{{#ifeq:{{NAMESPACE}}||
 +
[[Category:NPCs]]
 +
}}
  
 
<noinclude>
 
<noinclude>

Latest revision as of 09:52, 21 January 2012

Error creating thumbnail: Unable to save thumbnail to destination
   This template is designed to be used in other articles. You will not need to change it when creating another article. If you need help when using it, have a look at our help page. Parameters and optional parameters can be found here. Please take the template convention into account.

Your FreewarWiki-Team

NPC/Layout (NPC)
{{{Description}}}
Attack Power: {{{Attack Power}}}
Items:   Life Points: {{{Life Points}}} LP
Experience: {{{XP}}} XP   Occurrence:

{{{Occurrence}}}

Gold: {{{Gold}}} Gold



Documentation

Usage
This template contains the source code for NPC articles.

Integration
This template can be incorporated by using {{NPC/Layout}}. The parameters are given in Template:NPC. It will be incorporated automatically.