Difference between revisions of "Template:Trigger"

From HIVE
Jump to navigation Jump to search
m
Line 1: Line 1:
<includeonly>
+
<div class="gwn-trigger" style="float:left;width:100%;margin-bottom:1em;border:1px solid #fff;background:#444">
{| cellpadding="5" cellspacing="0" style="border: 1px solid darkgray; width: 100%; background: #2c2c2c"
+
<div class="gwn-trigger-header" style="padding:4px;border-bottom:1px solid #aaa;background:#444;font-weight:bold;vertical-align:middle">''StarCraft 2'' Trigger <span style="float:right;font-size:.8em">[<nowiki/>[[Template:Trigger|edit]]<nowiki/>]</span></div>
|<font size=3>'''{{{TriggerName}}}'''</font>
+
{|style="width:100%; font-size:11px; border-collapse:collapse" cellpadding="2" cellspacing="0" align="left"|
{| cellpadding="1" cellspacing="0" style="width: 98%; background: #2c2c2c" align="right"
+
{{{triggeritems}}}
|<span style="color:orange">'''Events'''</span>
 
{| cellpadding="0" cellspacing="1" style="width: 98%; background: #2c2c2c" align="right"
 
|{{{TriggerEvents}}}
 
 
|}
 
|}
|}
+
<div class="gwn-trigger-footer" style="padding:4px;border-top:1px solid #aaa;background:#444;font-size:.8em;vertical-align:middle">[[Triggers|Learn about triggers]]</div>
{| cellpadding="1" cellspacing="0" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right"
+
</div>
|<span style="color:orange">'''Local Variables'''</span>
 
{| cellpadding="0" cellspacing="1" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right"
 
|{{{TriggerVariables}}}
 
|}
 
|}
 
{| cellpadding="1" cellspacing="0" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c;" align="right"
 
|<span style="color:orange">'''Conditions'''</span>
 
{| cellpadding="0" cellspacing="1" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right"
 
|{{{TriggerConditions}}}
 
|}
 
|}
 
{| cellpadding="1" cellspacing="0" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right"
 
|<span style="color:orange">'''Actions'''</span>
 
{| cellpadding="0" cellspacing="1" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right"
 
|{{{TriggerActions}}}
 
|}
 
|}
 
|}
 
</includeonly>
 
<noinclude>
 
This is a work in progress by DevliN. To see this in action, check out [[Trigger Template Test]].
 
 
 
The following will place make the Trigger box show up in a Wiki article:
 
<pre>{{Trigger
 
|TriggerName=
 
|TriggerEvents=
 
|TriggerVariables=
 
|TriggerConditions=
 
|TriggerActions=
 
}}
 
</pre>
 
 
 
When using this, be sure to separate each line as you normally would on a Wiki page, otherwise it will look bunched up. At the moment, you will also have to erase all the spaces before the triggers if you are copying as text them from a map. The following is an example of how the "Melee Initialization" trigger would look:
 
<pre>{{Trigger
 
|TriggerName=Melee Initialization
 
|TriggerEvents=Game - Map initialization
 
|TriggerVariables=
 
|TriggerConditions=
 
|TriggerActions=Create melee starting units for all players
 
 
 
Create melee starting units for all players
 
 
 
Start the melee AI for all computer players
 
  
Set default melee options for all players
+
This is a work in progress by DevliN.
}}
 
</pre>
 
</noinclude>
 

Revision as of 23:17, 26 April 2011

StarCraft 2 Trigger [edit]
{{{triggeritems}}}

This is a work in progress by DevliN.