Difference between revisions of "Template:Trigger"
Jump to navigation
Jump to search
m (Protected "Template:Trigger" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
m |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <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 #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> | |
− | + | <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> | |
− | + | <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"> | |
− | + | {{{events|{{{1|None.}}}}}} | |
− | + | </div> | |
− | + | <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"> |
− | | | + | {{{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> | |
− | + | <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> | </noinclude> |
Latest revision as of 00:28, 27 April 2011
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