Template:StarCraft Trigger

From Staredit Network Wiki
Revision as of 23:40, 20 March 2015 by DevliN (Talk | contribs) (1 revision imported: Restoring SC1 backup)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
StarCraft Trigger [template]
Players:
  • Neutral
Conditions:
  • Never.
Actions:
  • Comment: .

Usage

Allows the easy display of StarCraft triggers.

description
An optional one-line description. Hidden if unspecified.
players
A bulleted list of players. If it's not a list, the display will glitch. Defaults to "Neutral". (Can also be specified using the first unnamed parameter.)
conditions
A bulleted list of conditions. If it's not a list, the display will glitch. Defaults to "Never." (Can also be specified using the second unnamed parameter.)
actions
A bulleted list of actions. If it's not a list, the display will glitch. Defaults to "Comment: ." (Can also be specified using the third unnamed parameter.)

Layout

The template is done using DIVs and inline CSS. Due to my inability to selectively disable specific applications of wiki styles (without disabling them everywhere), the template is... picky. If the players, conditions, or actions are not specified as wiki-format lists, then certain paddings will glitch and cause display problems.

If anyone needs to restyle this as part of a wiki skin, you can select the top-level DIV in this template with div.trigger-sc1.

Examples

StarCraft Trigger [template]
Description:
This is a test.
Players:
  • Player 1
  • Player 2
Conditions:
  • Current player brings at least 4 [men] to Location 1.
  • Switch 1 is Set.
Actions:
  • Clear Switch 1.
  • Comment: This would be a COMMENT action.
  • Preserve trigger.

{{StarCraft Trigger
|description=This is a test.
|players=
*Player 1
*Player 2
|conditions=
*Current player brings at least 4 [men] to Location 1.
*Switch 1 is Set.
|actions=
*Clear Switch 1.
*Comment: This would be a COMMENT action.
*Preserve trigger.
}}
StarCraft Trigger [template]
Description:
This is a test.
Players:
  • Player 1
  • Player 2
Conditions:
  • Current player brings at least 4 [men] to Location 1.
  • Switch 1 is Set.
Actions:
  • Clear Switch 1.
  • Comment: This would be a COMMENT action.
  • Preserve trigger.

{{StarCraft Trigger
|description=This is a test.
|
*Player 1
*Player 2
|
*Current player brings at least 4 [men] to Location 1.
*Switch 1 is Set.
|
*Clear Switch 1.
*Comment: This would be a COMMENT action.
*Preserve trigger.
}}
StarCraft Trigger [template]
Description:
This is a test.
Players:
  • Player 1
  • Player 2
Conditions:

I don't know how to read directions.

Actions:
  • Clear Switch 1.
  • Comment: This would be a COMMENT action.
  • Preserve trigger.

{{StarCraft Trigger
|description=This is a test.
|
*Player 1
*Player 2
|I don't know how to read directions.
|
*Clear Switch 1.
*Comment: This would be a COMMENT action.
*Preserve trigger.
}}