Template:Event: Difference between revisions

From [N8]
Jump to navigation Jump to search
mNo edit summary
 
(19 intermediate revisions by the same user not shown)
Line 2: Line 2:
|class=eu4box-inline
|class=eu4box-inline
|header= {{#if:{{{event_id|}}}|{{anchor|{{{event_id}}} }} <div style="float:right; font-size:smaller"><abbr title="{{{event_id}}}">id</abbr></div> }}<!--end anchor -->{{#Switch: {{{header}}}
|header= {{#if:{{{event_id|}}}|{{anchor|{{{event_id}}} }} <div style="float:right; font-size:smaller"><abbr title="{{{event_id}}}">id</abbr></div> }}<!--end anchor -->{{#Switch: {{{header}}}
  | <div style="float:right; font-size:smaller">{{{HARD}}}</div>
   | #Default = <h3>{{{event_name}}}</h3>
   | #Default = <h3>{{{event_name}}}</h3>
   | h2 = <h2>{{{event_name}}}</h2>
   | h2 = <h2>{{{event_name}}}</h2>
Line 23: Line 22:
{{{trigger|*None}}}
{{{trigger|*None}}}
{{!}}width=40%{{!}}{{#if: {{{mtth|}}}
{{!}}width=40%{{!}}{{#if: {{{mtth|}}}
| <span class="subheading">Mean time to happen</span>
| <span class="subheading">Encounter Rewards</span>
{{{mtth}}}
{{{mtth}}}
| <span class="subheading">Is triggered only by</span>
| <span class="subheading">Info</span>
{{{triggered only}}}
{{{triggered only}}}
{{{difficulty}}}
{{{shiptype}}}
{{{steps}}}
}}
}}
{{#if:{{{immediate|}}} |{{!}}-
{{#if:{{{immediate|}}} |{{!}}-

Latest revision as of 18:55, 28 January 2020

[view] [edit] Template documentation


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.
  • None
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

TerranOfficer icon
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
  • Successfully hack Earth's Supply Depot.
Info
  • Hard
  • Ship: All
  • Steps: 4

Rewards
  • Experience: 250 • Intel: 100 • Money: $1,500 • Reputation: 1,000
  • Mod: Random Mod