Difference between revisions of "Template:Trigger"

From HIVE
Jump to navigation Jump to search
m
m
 
(2 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
<div class="gwn-trigger-footer" style="padding:4px;border-top:1px solid #313C57;background:#1A1F2C;vertical-align:middle">[[Triggers|Learn about Triggers]]</div>
 
<div class="gwn-trigger-footer" style="padding:4px;border-top:1px solid #313C57;background:#1A1F2C;vertical-align:middle">[[Triggers|Learn about Triggers]]</div>
 
</div>
 
</div>
 +
<noinclude>==Trigger Template Usage==
 +
To use the Trigger template in an article, copy the following code:
 +
<pre>{{Trigger
 +
|events=
 +
|variables=
 +
|conditions=
 +
|actions=
 +
}}</pre>
 +
 +
If you don't use one of these factors in your Trigger, either write "None" next to it or remove that factor entirely. If you don't, the Trigger table will break on your page, and that would not be good.
 +
 +
If you have multiple lines to include in any of these sections, either sort them with a bullet (*) or double space the lines.
 +
 +
===Tiered Actions===
 +
For actions and whatnot that span different tiers, use a colon (:) at the beginning of each line as you would normally do on a page if you wanted to indent. For example, you would use...
 +
<pre>General - If, then statement
 +
:If
 +
::First action
 +
::First action part 2
 +
:Then
 +
::Second action</pre>
 +
...to get an outcome like the following.
 +
 +
{| background
 +
General - If, then statement
 +
:If
 +
::First action
 +
::First action part 2
 +
:Then
 +
::Second action
 +
|}
 +
</noinclude>

Latest revision as of 00:28, 27 April 2011

StarCraft 2 Trigger [template]
Events:

None.

Variables:

None.

Conditions:

None.

Actions:

None.

Trigger Template Usage

To use the Trigger template in an article, copy the following code:

{{Trigger
|events=
|variables=
|conditions=
|actions=
}}

If you don't use one of these factors in your Trigger, either write "None" next to it or remove that factor entirely. If you don't, the Trigger table will break on your page, and that would not be good.

If you have multiple lines to include in any of these sections, either sort them with a bullet (*) or double space the lines.

Tiered Actions

For actions and whatnot that span different tiers, use a colon (:) at the beginning of each line as you would normally do on a page if you wanted to indent. For example, you would use...

General - If, then statement
:If
::First action
::First action part 2
:Then
::Second action

...to get an outcome like the following.

General - If, then statement
If
First action
First action part 2
Then
Second action