Difference between revisions of "Template:Event"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(links, and add documentation on how to omit lines from the example code)
(example code is now useful even without parameters)
Line 25: Line 25:
 
</dl>
 
</dl>
  
{{#if:{{{creatorname|}}}{{{int0name|}}}{{{float0name|}}}{{{string0name|}}}{{{object0name|}}}{{{int1name|}}}{{{float1name|}}}{{{string1name|}}}{{{object2name|}}}{{{int2name|}}}{{{float2name|}}}{{{string2name|}}}{{{object2name|}}}|
 
 
'''Example code:'''
 
'''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;">
Line 45: Line 44:
 
:<span style="color: #0000FF;">break</span>;<br/>
 
:<span style="color: #0000FF;">break</span>;<br/>
 
}
 
}
</div>|}}
+
</div>
 
</includeonly><noinclude>
 
</includeonly><noinclude>
  

Revision as of 16:37, 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.

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