Template:Event/doc

From Stellaris Wiki
< Template:Event
Revision as of 08:38, 12 May 2016 by SolSys (talk | contribs) (Examples)
Jump to navigation Jump to search
This is the documentation page for Template:Event.
When it is viewed directly, links using variables may appear broken; do not replace these with hardcoded page names or URLs.


Event can be used to diplay description, trigger, trigger condition and options of an event in a compact infobox.

Parameter

Parameter Description Default Status
event_name Title of the event. empty required
event_text Ingame description text of the event. empty optional, but desired
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
collapse Whether to collapse the event. If set to ‘yes’ the content will be collapsed.

(Please use collapsed content on country pages.)

empty optional
version To specify the major patch for which the event was written or updated. empty required

Usage

{{Event
|version = 
|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

MTTH event

The following code

{{event
|version = 1.8
|event_name = Mimar Sinan's Great Constructions
|event_text = Mimar Sinan planned and oversaw the construction of countless mosques, aqueducts, bathhouses, bridges, palaces, caravanserais and schools during his half-a-century long career. His masterpieces were the Selimiye and Suleymaniye Mosques in Adrianople and Constantinople respectively.
|trigger = *Event has not yet occurred.
*The year is between 1519 and 1560.
*owns Constantinople (151).
*The advisor ‘Mimar Sinan’ does ''not'' exist.
|mtth = 1000 months
|options = {{option
|option_text = Appoint him royal architect
|effect = *the modifier “Mimar Sinan” until the death of the current ruler, giving the following effect:
** {{green|−15.0%}} Build cost
}}
{{option
|option_text = Enlist his services for a short time
|effect = * {{green|+40}} Administrative power
}}
}}

will display:

Mimar Sinan's Great Constructions

Outliner top 500px.png


Mimar Sinan planned and oversaw the construction of countless mosques, aqueducts, bathhouses, bridges, palaces, caravanserais and schools during his half-a-century long career. His masterpieces were the Selimiye and Suleymaniye Mosques in Adrianople and Constantinople respectively.


 
Trigger conditions
  • Event has not yet occurred.
  • The year is between 1519 and 1560.
  • owns Constantinople (151).
  • The advisor ‘Mimar Sinan’ does not exist.
Mean time to happen

1000 months


Event button on.png
Appoint him royal architect
  • the modifier “Mimar Sinan” until the death of the current ruler, giving the following effect:
    • −15.0% Build cost
Event button on.png
Enlist his services for a short time
  • +40 Administrative power

Triggered only event

The following code

{{event
|version = 1.8
|event_name = Loss of Stability
|event_text = This strengthening of the privileges of the nobles is severely upsetting the burghers and merchants. This is creating turmoil in our realm, and may prove disastrous in the long run.
|trigger = *has the [[idea group]]: Aristocratic ideas.
*has a [[stability]] of at least 0.
|triggered only = *the five year pulse
'''Base weight: 1'''
|options = {{option
|option_text = Well, they are just peasants.
|effect = * {{red|–1}} Stability
}}
}}

will display:

Loss of Stability

Outliner top 500px.png


This strengthening of the privileges of the nobles is severely upsetting the burghers and merchants. This is creating turmoil in our realm, and may prove disastrous in the long run.


 
Trigger conditions Is triggered only by
  • the five year pulse

Base weight: 1


Event button on.png
Well, they are just peasants.
  • –1 Stability