Template:Entity fields begin

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
m
 
(9 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
 
-->{| cellspacing=0 cellpadding=5 border=1 style="border-collapse: collapse"
 
-->{| cellspacing=0 cellpadding=5 border=1 style="border-collapse: collapse"
! width=10% bgcolor=#EEDFDF | Name
+
! width=10% | Key
! width=10% bgcolor=#EEDFDF | Key
+
! width=80% | Description
! width=70% bgcolor=#EEDFDF | Description
+
! width=10% | Default value<!--
! width=10% bgcolor=#EEDFDF | Default value<!--
+
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
 
To insert entity keys block use the following construction:
 
To insert entity keys block use the following construction:
  
  <nowiki>{{</nowiki>entity_fields<nowiki>}}</nowiki>
+
  <nowiki>{{</nowiki>entity fields begin<nowiki>}}</nowiki>
 
  |-
 
  |-
 
  | '''''Entity key #1'''''
 
  | '''''Entity key #1'''''
  | '''''keyname'''''
+
  | '''''Description'''''
| '''''description'''''
+
 
  |-
 
  |-
 
  | '''''Entity key #2'''''
 
  | '''''Entity key #2'''''
  | '''''keyname'''''
+
  | '''''Description'''''
| '''''description'''''
+
 
  ...
 
  ...
  <nowiki>{{</nowiki>entity_fields_end<nowiki>}}</nowiki>
+
  <nowiki>{{</nowiki>entity fields end<nowiki>}}</nowiki>
  
 
= Example =
 
= Example =
  
  {{entity_fields}}
+
  {{entity fields begin}}
 
  |-
 
  |-
| Health
 
 
  | health
 
  | health
 
  | Starting health of a monster
 
  | Starting health of a monster
 
  |-
 
  |-
| Death form
 
 
  | deadflag
 
  | deadflag
  | Monster already dead
+
  | Death form. If set, monster spawns dead
  {{entity_fields_end}}
+
  {{entity fields end}}
  
[[Category:Templates]]
+
[[Category:Special templates]]
 +
[[Category:Entity templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 23:48, 15 May 2014

To insert entity keys block use the following construction:

{{entity fields begin}}
|-
| Entity key #1
| Description
|-
| Entity key #2
| Description
...
{{entity fields end}}

[edit] Example

Key Description Default value
health Starting health of a monster
deadflag Death form. If set, monster spawns dead
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox