Difference between revisions of "Template:Trigger"

From HIVE
Jump to navigation Jump to search
m
m
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<div class="gwn-trigger" style="width:100%;margin-bottom:1em;border:1px solid #313C57;background:#1A1F2C">
{| 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 #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>
|'''{{{TriggerName}}}'''
+
<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>
{| cellpadding="0" cellspacing="0" style="width: 98%; background: #2c2c2c" align="right"
+
<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">
|<span style="color:orange">'''Events'''</span>
+
{{{events|{{{1|None.}}}}}}
{| cellpadding="0" cellspacing="1" style="width: 98%; background: #2c2c2c" align="right"
+
</div>
|{{{Event1}}}
+
<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">
|{{{Event2}}}
+
{{{variables|{{{2|None.}}}}}}
|-
+
</div>
|{{{Event3}}}
+
<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">
|{{{Event4}}}
+
{{{conditions|{{{3|None.}}}}}}
|-
+
</div>
|{{{Event6}}}
+
<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">
|{{{Event7}}}
+
{{{actions|{{{4|None.}}}}}}
|-
+
</div>
|{{{Event8}}}
+
<div class="gwn-trigger-footer" style="padding:4px;border-top:1px solid #313C57;background:#1A1F2C;vertical-align:middle">[[Triggers|Learn about Triggers]]</div>
|-
+
</div>
|{{{Event9}}}
+
<noinclude>==Trigger Template Usage==
|-
+
To use the Trigger template in an article, copy the following code:
|{{{Event10}}}
 
|-
 
|{{{Event11}}}
 
|-
 
|{{{Event12}}}
 
|-
 
|{{{Event13}}}
 
|-
 
|{{{Event14}}}
 
|-
 
|{{{Event15}}}
 
|-
 
|{{{Event16}}}
 
|-
 
|{{{Event17}}}
 
|-
 
|{{{Event18}}}
 
|-
 
|{{{Event19}}}
 
|-
 
|{{{Event20}}}
 
|}
 
|}
 
{| cellpadding="0" cellspacing="0" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right"
 
|<span style="color:orange">'''Local Variables'''</span>
 
{| cellpadding="0" cellspacing="1" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right"
 
|{{{Variable1}}}
 
|-
 
|{{{Variable2}}}
 
|-
 
|{{{Variable3}}}
 
|-
 
|{{{Variable4}}}
 
|-
 
|{{{Variable5}}}
 
|-
 
|{{{Variable6}}}
 
|-
 
|{{{Variable7}}}
 
|-
 
|{{{Variable8}}}
 
|-
 
|{{{Variable9}}}
 
|-
 
|{{{Variable10}}}
 
|-
 
|{{{Variable11}}}
 
|-
 
|{{{Variable12}}}
 
|-
 
|{{{Variable13}}}
 
|-
 
|{{{Variable14}}}
 
|-
 
|{{{Variable15}}}
 
|-
 
|{{{Variable16}}}
 
|-
 
|{{{Variable17}}}
 
|-
 
|{{{Variable18}}}
 
|-
 
|{{{Variable19}}}
 
|-
 
|{{{Variable20}}}
 
|}
 
|}
 
{| cellpadding="0" 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"
 
|{{{Condition1}}}
 
|-
 
|{{{Condition2}}}
 
|-
 
|{{{Condition3}}}
 
|-
 
|{{{Condition4}}}
 
|-
 
|{{{Condition5}}}
 
|-
 
|{{{Condition6}}}
 
|-
 
|{{{Condition7}}}
 
|-
 
|{{{Condition8}}}
 
|-
 
|{{{Condition9}}}
 
|-
 
|{{{Condition10}}}
 
|-
 
|{{{Condition11}}}
 
|-
 
|{{{Condition12}}}
 
|-
 
|{{{Condition13}}}
 
|-
 
|{{{Condition14}}}
 
|-
 
|{{{Condition15}}}
 
|-
 
|{{{Condition16}}}
 
|-
 
|{{{Condition17}}}
 
|-
 
|{{{Condition18}}}
 
|-
 
|{{{Condition19}}}
 
|-
 
|{{{Condition20}}}
 
|}
 
|}
 
{| cellpadding="0" 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"
 
|{{{Action1}}}
 
|-
 
|{{{Action2}}}
 
|-
 
|{{{Action3}}}
 
|-
 
|{{{Action4}}}
 
|-
 
|{{{Action5}}}
 
|-
 
|{{{Action6}}}
 
|-
 
|{{{Action7}}}
 
|-
 
|{{{Action8}}}
 
|-
 
|{{{Action9}}}
 
|-
 
|{{{Action10}}}
 
|-
 
|{{{Action11}}}
 
|-
 
|{{{Action12}}}
 
|-
 
|{{{Action13}}}
 
|-
 
|{{{Action14}}}
 
|-
 
|{{{Action15}}}
 
|-
 
|{{{Action16}}}
 
|-
 
|{{{Action17}}}
 
|-
 
|{{{Action18}}}
 
|-
 
|{{{Action19}}}
 
|-
 
|{{{Action20}}}
 
|-
 
|{{{Action21}}}
 
|-
 
|{{{Action22}}}
 
|-
 
|{{{Action23}}}
 
|-
 
|{{{Action24}}}
 
|-
 
|{{{Action25}}}
 
|-
 
|{{{Action26}}}
 
|-
 
|{{{Action27}}}
 
|-
 
|{{{Action28}}}
 
|-
 
|{{{Action29}}}
 
|-
 
|{{{Action30}}}
 
|}
 
|}
 
|}
 
</includeonly>
 
<noinclude>
 
This is a work in progress by DevliN. Ultimately I may split each section into separate templates and compile it all in this template, so this doesn't seem as daunting. To see this in action, check out [[Trigger Template Test]].
 
 
 
 
<pre>{{Trigger
 
<pre>{{Trigger
|TriggerName=
+
|events=
|Event1=
+
|variables=
|Event2=
+
|conditions=
|Event3=
+
|actions=
|Event4=
 
|Event5=
 
|Event6=
 
|Event7=
 
|Event8=
 
|Event9=
 
|Event10=
 
|Event11=
 
|Event12=
 
|Event13=
 
|Event14=
 
|Event15=
 
|Event16=
 
|Event17=
 
|Event18=
 
|Event19=
 
|Event20=
 
|Variable1=
 
|Variable2=
 
|Variable3=
 
|Variable4=
 
|Variable5=
 
|Variable6=
 
|Variable7=
 
|Variable8=
 
|Variable9=
 
|Variable10=
 
|Variable11=
 
|Variable12=
 
|Variable13=
 
|Variable14=
 
|Variable15=
 
|Variable16=
 
|Variable17=
 
|Variable18=
 
|Variable19=
 
|Variable20=
 
|Condition1=
 
|Condition2=
 
|Condition3=
 
|Condition4=
 
|Condition5=
 
|Condition6=
 
|Condition7=
 
|Condition8=
 
|Condition9=
 
|Condition10=
 
|Condition11=
 
|Condition12=
 
|Condition13=
 
|Condition14=
 
|Condition15=
 
|Condition16=
 
|Condition17=
 
|Condition18=
 
|Condition19=
 
|Condition20=
 
|Action1=
 
|Action2=
 
|Action3=
 
|Action4=
 
|Action5=
 
|Action6=
 
|Action7=
 
|Action8=
 
|Action9=
 
|Action10=
 
|Action11=
 
|Action12=
 
|Action13=
 
|Action14=
 
|Action15=
 
|Action16=
 
|Action17=
 
|Action18=
 
|Action19=
 
|Action20=
 
|Action21=
 
|Action22=
 
|Action23=
 
|Action24=
 
|Action25=
 
|Action26=
 
|Action27=
 
|Action28=
 
|Action29=
 
|Action30=
 
 
}}</pre>
 
}}</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>
 
</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