Difference between revisions of "Template:Event documentation"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with 'This template produces the standard formatting in the first part of category:Event types articles. The following is a comprehensive set of all the possible parameters for th...')
 
(update parameters)
Line 1: Line 1:
This template produces the standard formatting in the first part of [[:category:Event types]] articles. The following is a comprehensive set of all the possible parameters for this template; feel free to delete the unused parameters when using it in an article for tidiness.
+
This template produces the standard formatting in the first part of [[:category:Event types]] articles. The following is a comprehensive set of all the possible parameters for this template; feel free to delete the unused parameters when using it in an article for tidiness. The various parameter types have higher number ranges than just those shown here, for example you can use up to in6name and int6desc, but since they're not common they weren't included in the template.
 +
 
 +
;when:This parameter is for a simple prose description of the situation in which the event is fired.
 +
;from:What's the source of this event? Usually [[engine]] or a script name.
 +
;to1 through to5:What resource types receive this event? This is split into multiple parameters and used to generate categories, put one resource type in each to# parameter.  
  
 
You can omit a particular variable from the example code by not setting its corresponding name parameter. For example, if an event has both object0 and creator as the "attacker", you can omit the creator from the example code by not setting creatorname.
 
You can omit a particular variable from the example code by not setting its corresponding name parameter. For example, if an event has both object0 and creator as the "attacker", you can omit the creator from the example code by not setting creatorname.
Line 9: Line 13:
 
|when=
 
|when=
 
|from=
 
|from=
|to=
+
|to1=
 +
|to2=
 
|creatorname=
 
|creatorname=
 
|creatordesc=
 
|creatordesc=

Revision as of 20:23, 5 August 2009

This template produces the standard formatting in the first part of category:Event types articles. The following is a comprehensive set of all the possible parameters for this template; feel free to delete the unused parameters when using it in an article for tidiness. The various parameter types have higher number ranges than just those shown here, for example you can use up to in6name and int6desc, but since they're not common they weren't included in the template.

when
This parameter is for a simple prose description of the situation in which the event is fired.
from
What's the source of this event? Usually engine or a script name.
to1 through to5
What resource types receive this event? This is split into multiple parameters and used to generate categories, put one resource type in each to# parameter.

You can omit a particular variable from the example code by not setting its corresponding name parameter. For example, if an event has both object0 and creator as the "attacker", you can omit the creator from the example code by not setting creatorname.

{{event
|sourcefile=
|sourcemodule=
|when=
|from=
|to1=
|to2=
|creatorname=
|creatordesc=
|int0name=
|int0desc=
|int1name=
|int1desc=
|int2name=
|int2desc=
|float0name=
|float0desc=
|float1name=
|float1desc=
|float2name=
|float2desc=
|string0name=
|string0desc=
|string1name=
|string1desc=
|string2name=
|string2desc=
|object0name=
|object0desc=
|object1name=
|object1desc=
|object2name=
|object2desc=
|location0name=
|location0desc=
|location1name=
|location1desc=
}}