Template:Journal entry:修订间差异

无编辑摘要
无编辑摘要
 
(未显示同一用户的2个中间版本)
第19行: 第19行:
<!-- --><hr /><!--End Journal visible-->
<!-- --><hr /><!--End Journal visible-->
{{!}}- valign="top"
{{!}}- valign="top"
{{!}}{{#ifeq:{{{on_add}}}|suppress|colspan=2|width="50%"}}{{!}}<span class="subheading">{{#if: {{{added_by|}}}|'''触发 条件 :'''}}</span>
{{!}}{{#ifeq:{{{on_add}}}|suppress|colspan=2|width="50%"}}{{!}}<span class="subheading">{{#if: {{{added_by|}}}|'''触发 :'''|Activation conditions:}}</span>
<!-- -->{{{added_by|{{{trigger|*无}}} }}}
<!-- -->{{{added_by|{{{trigger|*无}}} }}}
<!-- -->{{#ifeq:{{{on_add}}}|suppress||{{!}}<span class="subheading">'''触发时效果:'''</span> 
<!-- -->{{#ifeq:{{{on_add}}}|suppress||{{!}}<span class="subheading">'''触发时效果:'''</span> 
第65行: 第65行:
<!-- -->{{!}} colspan=2 {{!}}<hr />
<!-- -->{{!}} colspan=2 {{!}}<hr />
<!-- -->{{!}}- valign="top"
<!-- -->{{!}}- valign="top"
<!-- -->{{!}} colspan=2 {{!}}<span class="subheading">'''过期于 ''' {{#replace:{{{timeout|never}}}|*|}} 并触发如下效果:</span>
<!-- -->{{!}} colspan=2 {{!}}<span class="subheading">'''过期于''' {{#replace:{{{timeout|never}}}|*|}} ''' 并触发如下效果:'''</span>
<!-- -->{{{on_timeout|*无}}}}}
<!-- -->{{{on_timeout|*无}}}}}
{{!}}-<!--End Timeout-->
{{!}}-<!--End Timeout-->

2024年3月5日 (二) 22:32的最新版本

[阅读] [编辑]Template-info.png 模板文档


Journal entry can be used to display description, triggers, and effects of a journal entry in a compact infobox.

Parameter

Parameter Description Default Status
version To specify the major patch for which the entry was written or updated. empty required
expansion To specify a required DLC, see {{Expansion}} for details
  • Do not use if section or page already specifies the same required DLC
empty optional
entry_id Entry identification code as it appears in the file to serve as an anchor empty optional
entry_name Title of the entry. empty required
icon_type Entry icon, without "Event" prefix or .png "default" optional
header Header level, for Table of Contents h3 optional
entry_reason In-game description text of the entry. empty optional, but desired
visible Conditions for when the entry is visible to the player
  • Only while active
optional
added_by When the entry is added by an effect, such as event or decision
  • None
optional
trigger Trigger conditions of the entry, overridden by added_by
  • None
optional
on_add The effects of the entry when added.
  • Set to suppress to hide and use whole width for trigger condition
  • None
optional
collapse Whether to collapse the entry. If set to ‘yes’ the content will start collapsed.

(Please use collapsed content on country pages.)

empty optional

The following are paired sets of conditions (param) and effects (on_param), all are optional and default to * none, except pulse and pulse2. These do not appear unless the condition parameter is set.

Optional conditions and effects
Condition parameter Effect parameter Description
complete on_complete conditions and effects for "completing" the entry
invalid on_invalid conditions and effects for "invalidating" the entry
fail on_fail conditions and effects for "failing" the entry
timeout on_timeout length and effects for "timing out" the entry
pulse on_pulse pulse (i.e. weekly, monthly, or yearly) effect, pulse defaults to empty
pulse2 on_pulse2 second pulse effect, pulse2 defaults to empty

on_complete, on_invalid, and on_fail can be set to suppress to hide the effect section and use the whole width for the trigger condition.

For journal entries with modifiers and buttons while active.

Parameter Description
button For entries with scripted buttons, use {{entry button}}
modifier For entries with modifiers when active

Usage

{{Journal entry
|version = 
|collapse = <!-- yes if default collapsed, otherwise don't use -->
|header = <!-- set to h4 if in a sub-section i.e. === section ===; set to b to leave out of table of contents -->
|entry_id = <!-- optional, but desired -->
|icon_type = <!-- optional, but desired -->
|entry_name = 
|entry_reason = <!-- optional, but desired -->
|trigger = <!-- For entries dynamically added -->
|added_by = <!-- For entries added by effect -->
|complete = <!-- common, for completion conditions -->
|on_complete = <!-- common, for completion effects -->
}}

Examples

{{Journal entry
|entry_id=je_meiji_restoration
|icon_type=scales
|entry_name=Honorable Restoration
|version=timeless
|entry_reason=The Shogunate has ruled over an isolated and stagnant Japan for centuries. If we wish to have a place in the rapidly modernizing world, we must restore power to the rightful Emperor.
|visible=*Is {{flag|Japan}}
|trigger=*{{icon|Landowners}} Shogunate are '''not''' part of the government
|complete=
*{{hover box|Ticks up each month the following are true|For 10 years (120 months)}}
**{{icon|Landowners}} Shogunate are '''not''' powerful
**{{icon|Landowners}} Shogunate are '''not''' part of the government
**Japan does '''not''' have insurrectionary interest groups
**Japan is at peace
**Japan owns all of Kanto
|on_complete=*Triggers event: ''The [Ruler Name] Restoration''
}}

will display:

id

Event scales.png Honorable Restoration

The Shogunate has ruled over an isolated and stagnant Japan for centuries. If we wish to have a place in the rapidly modernizing world, we must restore power to the rightful Emperor.
 
可见条件:
Activation conditions:
  • IG landowners.png Shogunate are not part of the government
触发时效果:

完成条件:
  • For 10 years (120 months)
    • IG landowners.png Shogunate are not powerful
    • IG landowners.png Shogunate are not part of the government
    • Japan does not have insurrectionary interest groups
    • Japan is at peace
    • Japan owns all of Kanto
完成时效果:
  • Triggers event: The [Ruler Name] Restoration
{{Journal entry
|entry_id=sick_man
|icon_type=portrait
|entry_name=The Sick Man of Europe
|version=timeless
|entry_reason=Something about the Ottomans
|added_by=*Event: ''The Sick Man of Europe''
|complete=* Has completed for Tanzimat journal entries
|on_complete=* Triggers event: ''Tanzimat: The Reorganization''
|timeout=20 years
|on_timeout=* Triggers event: ''The Dead Man of Europe''
}}

will display:

id

Event portrait.png The Sick Man of Europe

Something about the Ottomans
 
可见条件:
  • Only while active

触发于:
  • Event: The Sick Man of Europe
触发时效果:

完成条件:
  • Has completed for Tanzimat journal entries
完成时效果:
  • Triggers event: Tanzimat: The Reorganization

过期于 20 years 并触发如下效果:
  • Triggers event: The Dead Man of Europe
{{Journal entry
|entry_id=je_divided_monarchists
|icon_type=bicorne_hat
|entry_name=Divided Monarchists
|version=timeless
|expansion=votp
|entry_reason=Three dynastic lines have claims on the French throne: the '''Orléanists''', who back the constitutional July Monarchy established in 1830, the '''Legitimists''' who support the deposed Charles X of Bourbon and his descendants, and the '''Bonapartists''', who seek to restore Napoleon Bonaparte's family to power. All three dynastic monarchists vie with the powers-that-be and each other to see their particular claimants put upon the throne of France.
|added_by=*Game start or when restoring monarchy in France
|complete=* One of the three vying dynasties has cemented its rule over France.
|on_complete=* The '''leading dynastic ideology''' will have an event to put their own candidate on the French throne.
|fail=
*All of:
**Any interest group which favors Presidential Republic is not marginalized
**25% or more turmoil in the Capital state
**Any of:
***Has ''Springtime of the Peoples'' journal entry active
***Has 25% or more of population as Radicals
***Any civil war has reached more than 75% progress
|on_fail=* Triggers event: ''The Provisional Government''
|invalid=*Does not have Monarchy
|modifier=Republican Unrest
{{multiColumn|
*{{red|+100%}} Radicals from low legitimacy
*{{red|−50%}} Loyalists from high legitimacy
*{{red|+25%}} Government Ideology Penalty
*{{red|+25%}} Political Movement Radicalism|2}}
}}

will display:

id

Event bicorne hat.png Divided Monarchists


Three dynastic lines have claims on the French throne: the Orléanists, who back the constitutional July Monarchy established in 1830, the Legitimists who support the deposed Charles X of Bourbon and his descendants, and the Bonapartists, who seek to restore Napoleon Bonaparte's family to power. All three dynastic monarchists vie with the powers-that-be and each other to see their particular claimants put upon the throne of France.
 
可见条件:
  • Only while active

触发于:
  • Game start or when restoring monarchy in France
触发时效果:

输入描述:

Republican Unrest

  • +100% Radicals from low legitimacy
  • −50% Loyalists from high legitimacy
  • +25% Government Ideology Penalty
  • +25% Political Movement Radicalism

完成条件:
  • One of the three vying dynasties has cemented its rule over France.
完成时效果:
  • The leading dynastic ideology will have an event to put their own candidate on the French throne.

失效条件:
  • Does not have Monarchy
失效时效果:

失败条件:

All of:

  • Any interest group which favors Presidential Republic is not marginalized
  • 25% or more turmoil in the Capital state
  • Any of:
    • Has Springtime of the Peoples journal entry active
    • Has 25% or more of population as Radicals
    • Any civil war has reached more than 75% progress
失败时效果:
  • Triggers event: The Provisional Government
{{Journal entry
|version = timeless
|collapse=yes
|header=h4
|entry_id = je_confederation_of_the_rhine
|icon_type = waving_flag
|entry_name = The Confederation of the Rhine
|entry_reason = From 1806 to 1813, by the design of Napoleon Bonaparte, the German states were unified under a single government - the '''Confederation of the Rhine'''. This edifice solidified Napoleon's control over Germany by proxy, containing the power of both '''Prussia''' and '''Austria'''. Reviving this arrangement will secure the power of [country] within Germany, and avert the design of an uncontrollable unified Germany.
|visible =
* Has neither North German or South German as a primary culture
* Either:
** Any subject has its capital in Rhine, North Germany, or South Germany strategic regions
** Owns any unincorporated state that
*** Is in Rhine, North Germany, or South Germany strategic regions
*** Has a North German or South German homeland
*** Country does not have claims on the state region
|trigger = 
* Is a {{iconify|great power}}
* 4 or more states:
** With North German or South German homelands
** In the Rhine, North Germany, or South Germany strategic regions
** Owned by either:
*** This country
*** A non-Personal Union subject:
**** With North German or South German primary culture
**** With a capital in the Rhine, North Germany, or South Germany strategic regions
|on_add=suppress
|complete = * No North German or South German country is a {{iconify|great power}}
|on_complete=suppress
|invalid = * No visibility condition is true
|on_invalid=suppress
|fail = * {{flag|Confederation of the Rhine}} exists and is not a subject of this country
|on_fail = * Gain ''The Rhine Fiasco'' (decaying) for 5 years: {{red|−15%}} prestige
|button =
{{entry_button
|button_name=Organize the Confederation
|button_text=Our control over a selection of German polities allows for us to reorganize the territory into a restored and rationalized '''Confederation of the Rhine''', halting Prussian or Austrian ambitions in the region.
|trigger=
* {{flag|Confederation of the Rhine}} does not exist
* 4 or more states:
** With North German or South German homelands
** In the Rhine, North Germany, or South Germany strategic regions
** Owned by either:
*** This country
*** A non-Personal Union subject:
**** With North German or South German primary culture
**** With a capital in the Rhine, North Germany, or South Germany strategic regions
|effect=*Trigger event ''The Second Rheinbundakte''}}
{{entry_button
|button_name=Expand the Confederation
|button_text=Our acquisition of new German territories allows for us to expand the jurisdiction of our client state in the region.
|trigger=
* {{flag|Confederation of the Rhine}} is a subject of this country
* Has not used this button within 3 years
* Either:
** Has another subject:
*** With North German or South German primary culture
*** With a capital in the Rhine, North Germany, or South Germany strategic regions
** Owns any unincorporated state with North German or South German homeland in the Rhine, North Germany, or South Germany strategic regions
*** Excluding Rhineland, North Rhine, Wallonia, and Flanders if this country has French primary culture
|effect = * Confederation of the Rhine annexes valid non-player subjects and states
}}
}}

will display

id

Event waving flag.png The Confederation of the Rhine

From 1806 to 1813, by the design of Napoleon Bonaparte, the German states were unified under a single government - the Confederation of the Rhine. This edifice solidified Napoleon's control over Germany by proxy, containing the power of both Prussia and Austria. Reviving this arrangement will secure the power of [country] within Germany, and avert the design of an uncontrollable unified Germany.
 
可见条件:
  • Has neither North German or South German as a primary culture
  • Either:
    • Any subject has its capital in Rhine, North Germany, or South Germany strategic regions
    • Owns any unincorporated state that
      • Is in Rhine, North Germany, or South Germany strategic regions
      • Has a North German or South German homeland
      • Country does not have claims on the state region

Activation conditions:
  • Is a Great power.png great power
  • 4 or more states:
    • With North German or South German homelands
    • In the Rhine, North Germany, or South Germany strategic regions
    • Owned by either:
      • This country
      • A non-Personal Union subject:
        • With North German or South German primary culture
        • With a capital in the Rhine, North Germany, or South Germany strategic regions

输入按钮:
Journal button.png
Organize the Confederation
Our control over a selection of German polities allows for us to reorganize the territory into a restored and rationalized Confederation of the Rhine, halting Prussian or Austrian ambitions in the region.

完成条件:
  • 没有结果 does not exist
  • 4 or more states:
    • With North German or South German homelands
    • In the Rhine, North Germany, or South Germany strategic regions
    • Owned by either:
      • This country
      • A non-Personal Union subject:
        • With North German or South German primary culture
        • With a capital in the Rhine, North Germany, or South Germany strategic regions
效果:
  • Trigger event The Second Rheinbundakte
Journal button.png
Expand the Confederation
Our acquisition of new German territories allows for us to expand the jurisdiction of our client state in the region.

完成条件:
  • 没有结果 is a subject of this country
  • Has not used this button within 3 years
  • Either:
    • Has another subject:
      • With North German or South German primary culture
      • With a capital in the Rhine, North Germany, or South Germany strategic regions
    • Owns any unincorporated state with North German or South German homeland in the Rhine, North Germany, or South Germany strategic regions
      • Excluding Rhineland, North Rhine, Wallonia, and Flanders if this country has French primary culture
效果:
  • Confederation of the Rhine annexes valid non-player subjects and states

完成条件:
  • No North German or South German country is a Great power.png great power

失效条件:
  • No visibility condition is true

失败条件:
  • 没有结果 exists and is not a subject of this country
失败时效果:
  • Gain The Rhine Fiasco (decaying) for 5 years: −15% prestige