Template:Event: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
| h5 = <h5>{{{event_name}}}</h5> | | h5 = <h5>{{{event_name}}}</h5> | ||
}} | }} | ||
|content = {{#if:{{{version|}}}|{{SVersion|{{{version}}}|infobox}}|<span style="color: red;">missing versioning</span>[[Category:Pages with infoboxes without versioning]] | |content = {{#if:{{{version|}}}|{{SVersion|{{{version}}}|infobox}}|<span style="color: red;">missing versioning</span>[[Category:Pages with infoboxes without versioning]] | ||
---- | ---- | ||
| Line 31: | Line 22: | ||
{{{trigger|*None}}} | {{{trigger|*None}}} | ||
{{!}}width=40%{{!}}{{#if: {{{mtth|}}} | {{!}}width=40%{{!}}{{#if: {{{mtth|}}} | ||
| <span class="subheading"> | | <span class="subheading">Encounter Rewards</span> | ||
{{{mtth}}} | {{{mtth}}} | ||
| <span class="subheading">Info</span> | | <span class="subheading">Info</span> | ||
Latest revision as of 18:55, 28 January 2020
Event can be used to diplay description, trigger, trigger condition and options of an event in a compact infobox.
Parameter
| Parameter | Description | Default | Status |
|---|---|---|---|
| version | To specify the major patch for which the event was written or updated. | empty | required |
| event_id | Event identification code as it appears in the file to serve as an anchor | empty | optional |
| event_name | Title of the event. | empty | required |
| cond_event_text | Set to "yes" if the event has multiple descriptions available for use. | empty | optional |
| event_text | In-game description text of the event. If multiple descriptions exist then use only the first one. | empty | optional, but desired |
| fire_only_once | As in the script code - set to "yes" if the event happens only once during a campaign. | empty | optional |
| mtth | For the base weight and its modifiers of MTTH-events. | empty | One of theses two is required. |
| triggered only | To specify the trigger of 'triggered only'-events. | empty | |
| trigger | Trigger conditions of the event. |
|
optional |
| immediate | The immediate effects of the event. | empty | optional |
| option conditions | If set to ‘yes’ the section heading 'Option conditions' for events with conditional options is displayed. | empty | optional |
| options | The possible effects of the event. Please use {{option}}.
|
empty | required |
| after | Effects that happen after selecting any option. | empty | optional |
| collapse | Whether to collapse the event. If set to ‘yes’ the content will be collapsed. (Please use collapsed content on country pages.) |
empty | optional |
Usage
{{Event
|version =
|event_id =
|event_name =
|event_text = <!-- optional, but desired -->
|trigger =
|mtth = <!-- for Mtth events -->
|triggered only = <!-- for triggered only events -->
|immediate = <!-- optional for immediate effects -->
|options = <!-- options use {{option}} template -->
}}
Note: Please use either “mtth”-parameter or “triggered only”-parameter.
Examples
{{Event
|version = Post-launch
|event_id = Mission.21
|event_name = Penetration Testing
|event_text = {{MissionDesc|TerranOfficer|Terran Officer: Feel like hacking our systems? What I mean is, we'd like to test the terran web's security system and we need someone to attempt to hack our systems to do so. We'll pay you for your efforts, just try not to get caught. The paperwork would be a headache. To start, see if you can falsify some trade orders.}}
|trigger =
* Successfully hack Earth's Supply Depot.
|mtth = <!-- for Mtth events -->
|triggered only = <!-- for triggered events only -->
|difficulty = * {{red|Hard}}
|shiptype = * Ship: All
|steps = * Steps: 4
|immediate = <!-- optional for immediate effects -->
|options =
{{option
|option_text = Rewards
|effect = * {{green|Experience: 250 • Intel: 100 • Money: $1,500 • Reputation: 1,000}}
* {{green|Mod: Random Mod}}
}}
}}
id
Penetration Testing
Terran Officer: Feel like hacking our systems? What I mean is, we'd like to test the terran web's security system and we need someone to attempt to hack our systems to do so. We'll pay you for your efforts, just try not to get caught. The paperwork would be a headache. To start, see if you can falsify some trade orders.
Conditions
|
Info
|
Rewards
| |