Difference between revisions of "Template:Trigger"

From HIVE
Jump to navigation Jump to search
m
m
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="gwn-trigger" style="float:left;width:100%;margin-bottom:1em;border:1px solid #fff;background:#444">
+
<div class="gwn-trigger" style="width:100%;margin-bottom:1em;border:1px solid #313C57;background:#1A1F2C">
<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>
+
<div class="gwn-trigger-header" style="padding:4px;border-bottom:1px solid #313C57;background:#1A1F2C;font-weight:bold;vertical-align:middle">''StarCraft 2'' Trigger <span style="float:right;font-size:.8em">[<nowiki/>[[Template:Trigger|template]]<nowiki/>]</span></div>
{|style="width:100%; font-size:11px; border-collapse:collapse" cellpadding="2" cellspacing="0" align="left"|
+
<div class="trigger-sc2-field trigger-sc2-events" style="float:left;clear:left;width:75px;padding:6px 4px 5px 4px;{{#if:{{{description|}}}|border-top:1px solid #888;|}}background:#1A1F2C;font-weight:bold;vertical-align:middle">Events:</div>
{{Events|Testing.}}
+
<div class="trigger-sc2-value trigger-sc2-events" style="padding:1px 4px 5px 3px;margin-left:83px;{{#if:{{{description|}}}|border-top:1px solid #313C57;|}}background:#333">
{{Variables|Testing.}}
+
{{{events|{{{1|None.}}}}}}
{{Conditions|Testing.}}
+
</div>
{{Actions|Testing.}}
+
<div class="trigger-sc2-field trigger-sc2-variables" style="float:left;clear:left;width:75px;padding:6px 4px 5px 4px;border-top:1px solid #313C57;background:#1A1F2C;font-weight:bold;vertical-align:middle">Variables:</div>
|}
+
<div class="trigger-sc2-value trigger-sc2-variables" style="padding:1px 4px 5px 3px;margin-left:83px;border-top:1px solid #313C57;background:#333">
<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>
+
{{{variables|{{{2|None.}}}}}}
 +
</div>
 +
<div class="trigger-sc2-field trigger-sc2-conditions" style="float:left;clear:left;width:75px;padding:6px 4px 5px 4px;border-top:1px solid #313C57;background:#1A1F2C;font-weight:bold;vertical-align:middle">Conditions:</div>
 +
<div class="trigger-sc2-value trigger-sc2-conditions" style="padding:1px 4px 5px 3px;margin-left:83px;border-top:1px solid #313C57;background:#333">
 +
{{{conditions|{{{3|None.}}}}}}
 +
</div>
 +
<div class="trigger-sc2-field trigger-sc2-actions" style="float:left;clear:left;width:75px;padding:6px 4px 5px 4px;border-top:1px solid #313C57;background:#1A1F2C;font-weight:bold;vertical-align:middle">Actions:</div>
 +
<div class="trigger-sc2-value trigger-sc2-actions" style="padding:1px 4px 5px 3px;border-top:1px solid #313C57;background:#333;overflow-y:auto">
 +
{{{actions|{{{4|None.}}}}}}
 +
</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>
  
This is a work in progress by DevliN.
+
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