Difference between revisions of "Template:Event"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (missed a line break) |
BryanDerksen (Talk | contribs) (try out a bit of enhanced formatting) |
||
| Line 26: | Line 26: | ||
{{#if:{{{creatorname|}}}{{{int0name|}}}{{{float0name|}}}{{{string0name|}}}{{{object0name|}}}{{{int1name|}}}{{{float1name|}}}{{{string1name|}}}{{{object2name|}}}{{{int2name|}}}{{{float2name|}}}{{{string2name|}}}{{{object2name|}}}| | {{#if:{{{creatorname|}}}{{{int0name|}}}{{{float0name|}}}{{{string0name|}}}{{{object0name|}}}{{{int1name|}}}{{{float1name|}}}{{{string1name|}}}{{{object2name|}}}{{{int2name|}}}{{{float2name|}}}{{{string2name|}}}{{{object2name|}}}| | ||
| − | '''Example | + | '''Example code:''' |
<div class="dascript" style="font-family:monospace; background-color:#F9F9F9; border: 1px dashed #2F6FAB; line-height: 1.1em; padding: 1em;"> | <div class="dascript" style="font-family:monospace; background-color:#F9F9F9; border: 1px dashed #2F6FAB; line-height: 1.1em; padding: 1em;"> | ||
| − | {{#if:{{{creatorname|}}}|object {{{creatorname}}} = GetEventCreator(ev); // {{{creatordesc|}}} | + | case {{{name}}}: |
| − | + | {{#if:{{{creatorname|}}}|:object {{{creatorname}}} = GetEventCreator(ev); // {{{creatordesc|}}}|}}{{#if:{{{int0name|}}}|, | |
| − | + | :int {{{int0name}}} = GetEventInteger(ev, 0); // {{{int0desc|}}}<br/>|}}{{#if:{{{int1name|}}}|, | |
| − | + | :int {{{int1name}}} = GetEventInteger(ev, 1); // {{{int1desc|}}}<br/>|}}{{#if:{{{int2name|}}}|, | |
| − | + | :int {{{int2name}}} = GetEventInteger(ev, 2); // {{{int2desc|}}}<br/>|}}{{#if:{{{float0name|}}}|, | |
| − | + | :float {{{float0name}}} = GetEventFloat(ev, 0); // {{{float0desc|}}}<br/>|}}{{#if:{{{float1name|}}}|, | |
| − | + | :float {{{float1name}}} = GetEventFloat(ev, 1); // {{{float1desc|}}}<br/>|}}{{#if:{{{float2name|}}}|, | |
| − | + | :float {{{float2name}}} = GetEventFloat(ev, 2); // {{{float2desc|}}}<br/>|}}{{#if:{{{string0name|}}}|, | |
| − | + | :string {{{string0name}}} = GetEventString(ev, 0); // {{{string0desc|}}}<br/>|}}{{#if:{{{string1name|}}}|, | |
| − | + | :string {{{string1name}}} = GetEventString(ev, 1); // {{{string1desc|}}}<br/>|}}{{#if:{{{string2name|}}}|, | |
| − | + | :string {{{string2name}}} = GetEventString(ev, 2); // {{{string2desc|}}}<br/>|}}{{#if:{{{object0name|}}}|, | |
| − | + | :object {{{object0name}}} = GetEventObject(ev, 0); // {{{object0desc|}}}<br/>|}}{{#if:{{{object1name|}}}|, | |
| − | + | :object {{{object1name}}} = GetEventObject(ev, 1); // {{{object1desc|}}}<br/>|}}{{#if:{{{object2name|}}}|, | |
| + | :object {{{object2name}}} = GetEventObject(ev, 2); // {{{object2desc|}}}<br/>|}} | ||
</div>|}} | </div>|}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
| Line 48: | Line 49: | ||
<pre> | <pre> | ||
{{event | {{event | ||
| + | |name= | ||
|when= | |when= | ||
|from= | |from= | ||
Revision as of 15:15, 24 July 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.
{{event
|name=
|when=
|from=
|to=
|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=
}}