Difference between revisions of "Template:Event"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m
(dratted EVENT_TYPE_PLACEABLE_ONCLICK, making me add location parameters...)
Line 29: Line 29:
 
-->{{#if:{{{object0desc|}}}|<li>Object 0: {{{object0desc}}}</li>|}}<!--
 
-->{{#if:{{{object0desc|}}}|<li>Object 0: {{{object0desc}}}</li>|}}<!--
 
-->{{#if:{{{object1desc|}}}|<li>Object 1: {{{object1desc}}}</li>|}}<!--
 
-->{{#if:{{{object1desc|}}}|<li>Object 1: {{{object1desc}}}</li>|}}<!--
-->{{#if:{{{object2desc|}}}|<li>Object 2: {{{object2desc}}}</li>|}}
+
-->{{#if:{{{object2desc|}}}|<li>Object 2: {{{object2desc}}}</li>|}}<!--
 +
-->{{#if:{{{location0desc|}}}|<li>Location 0: {{{location0desc}}}</li>|}}<!--
 +
-->{{#if:{{{location1desc|}}}|<li>Location 1: {{{location1desc}}}</li>|}}
 
</ul>|None.}}
 
</ul>|None.}}
 
</dl>
 
</dl>
Line 73: Line 75:
 
:[[object]] {{{object1name}}} <span style="color: #FF0000;">=</span> GetEventObject(ev, <span style="color: #7F007F;">1</span>); <span style="color: #007F00; font-style: italic;">// {{{object1desc|}}}</span><br/>|}}<!--
 
:[[object]] {{{object1name}}} <span style="color: #FF0000;">=</span> GetEventObject(ev, <span style="color: #7F007F;">1</span>); <span style="color: #007F00; font-style: italic;">// {{{object1desc|}}}</span><br/>|}}<!--
 
-->{{#if:{{{object2name|}}}|
 
-->{{#if:{{{object2name|}}}|
:[[object]] {{{object2name}}} <span style="color: #FF0000;">=</span> GetEventObject(ev, <span style="color: #7F007F;">2</span>); <span style="color: #007F00; font-style: italic;">// {{{object2desc|}}}</span><br/>|}}
+
:[[object]] {{{object2name}}} <span style="color: #FF0000;">=</span> GetEventObject(ev, <span style="color: #7F007F;">2</span>); <span style="color: #007F00; font-style: italic;">// {{{object2desc|}}}</span><br/>|}}<!--
 +
-->{{#if:{{{location0name|}}}|
 +
:[[location]] {{{location0name}}} <span style="color: #FF0000;">=</span> GetEventLocation(ev, <span style="color: #7F007F;">0</span>); <span style="color: #007F00; font-style: italic;">// {{{location0desc|}}}</span><br/>|}}<!--
 +
-->{{#if:{{{location1name|}}}|
 +
:[[location]] {{{location1name}}} <span style="color: #FF0000;">=</span> GetEventLocation(ev, <span style="color: #7F007F;">1</span>); <span style="color: #007F00; font-style: italic;">// {{{location1desc|}}}</span><br/>|}}
 
:<span style="color: #0000FF;">break</span>;<br/>
 
:<span style="color: #0000FF;">break</span>;<br/>
 
}
 
}
Line 116: Line 122:
 
|object2name=
 
|object2name=
 
|object2desc=
 
|object2desc=
 +
|location0name=
 +
|location0desc=
 +
|location1name=
 +
|location1desc=
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 00:19, 1 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.

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=
|to=
|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=
}}