小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的3个中间版本) | |||
第6行: | 第6行: | ||
<!--Journal Entry Name--><{{{header|h3}}}>[[File:Event_{{{icon_type|default}}}.png|30px|link=]] {{{entry_name}}}</{{{header|h3}}}><!--End Journal Entry Name--> | <!--Journal Entry Name--><{{{header|h3}}}>[[File:Event_{{{icon_type|default}}}.png|30px|link=]] {{{entry_name}}}</{{{header|h3}}}><!--End Journal Entry Name--> | ||
| content = | | content = | ||
<!--Versioning-->{{#if: {{{version| | <!--Versioning-->{{#if: {{{version|}}}| {{SVersion|{{{version|}}}|infobox}} | ||
| <span style="color: red;">missing versioning</span>[[Category:Pages with infoboxes without versioning]]<hr>}}<!--End Versioning | | <span style="color: red;">missing versioning</span>[[Category:Pages with infoboxes without versioning]]<hr>}}<!--End Versioning | ||
& Start DLC-->{{#if: {{{expansion|}}}| {{Expansion|{{{expansion}}}}}<hr>|}}<!-- End DLC & Start Core Text--> | & Start DLC-->{{#if: {{{expansion|}}}| {{Expansion|{{{expansion}}}}}<hr>|}}<!-- End DLC & Start Core Text--> | ||
第19行: | 第19行: | ||
<!-- --><hr /><!--End Journal visible--> | <!-- --><hr /><!--End Journal visible--> | ||
{{!}}- valign="top" | {{!}}- valign="top" | ||
{{!}}width="50%"{{!}}<span class="subheading">{{#if: {{{added_by|}}}|'''触发 | {{!}}{{#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> | |||
<!-- -->{{{on_add|*无}}} | <!-- -->{{{on_add|*无}}}}} | ||
{{!}}-<!--End Journal Added & Immediate Effect--> | {{!}}-<!--End Journal Added & Immediate Effect--> | ||
<!--Button -->{{#if:{{{button|}}}| | <!--Button -->{{#if:{{{button|}}}| | ||
<!-- -->{{!}} colspan=2 {{!}}<hr /> | <!-- -->{{!}} colspan=2 {{!}}<hr /> | ||
<!-- -->{{!}}- valign="top" | <!-- -->{{!}}- valign="top" | ||
<!-- -->{{!}}<span class="subheading"> | <!-- -->{{!}} colspan=2 {{!}}<span class="subheading">'''输入按钮:'''</span> | ||
<!-- -->{{{button|* | <!-- --><div class="button_layout" style="display:flex;flex-wrap:wrap;align-items:flex-start;">{{{button|* 无}}}</div> | ||
<!-- -->}} | |||
<!-- | |||
{{!}}-<!-- End Button--> | {{!}}-<!-- End Button--> | ||
<!--Modifier-->{{#if:{{{modifier|}}}| | <!--Modifier-->{{#if:{{{modifier|}}}| | ||
<!-- -->{{!}} colspan=2 {{!}}<hr /> | <!-- -->{{!}} colspan=2 {{!}}<hr /> | ||
<!-- -->{{!}}- valign="top" | <!-- -->{{!}}- valign="top" | ||
<!-- -->{{!}}<span class="subheading"> | <!-- -->{{!}} colspan=2 {{!}}<span class="subheading">'''输入描述:'''</span> | ||
<!-- -->{{{modifier|* | <!-- -->{{{modifier|* 无}}} | ||
<!-- --> | <!-- -->}} | ||
{{!}}-<!-- End Modifier--> | |||
{{!}}-<!-- End | |||
<!--Complete-->{{#if:{{{complete|}}}| | <!--Complete-->{{#if:{{{complete|}}}| | ||
<!-- -->{{!}} colspan=2 {{!}}<hr /> | <!-- -->{{!}} colspan=2 {{!}}<hr /> | ||
<!-- -->{{!}}- valign="top" | <!-- -->{{!}}- valign="top" | ||
<!-- -->{{!}}<span class="subheading">'''完成条件:'''</span> | <!-- -->{{!}}{{#ifeq:{{{on_complete}}}|suppress|colspan=2|width="50%"}}{{!}}<span class="subheading">'''完成条件:'''</span> | ||
<!-- -->{{{complete|*无}}} | <!-- -->{{{complete|*无}}} | ||
<!-- -->{{!}}<span class="subheading">'''完成时效果:'''</span> | <!-- -->{{#ifeq:{{{on_complete}}}|suppress||{{!}}<span class="subheading">'''完成时效果:'''</span> | ||
<!-- -->{{{on_complete|*无}}}}} | <!-- -->{{{on_complete|*无}}}}}<!---->}} | ||
{{!}}-<!--End Complete--> | {{!}}-<!--End Complete--> | ||
<!--Invalid -->{{#if:{{{invalid|}}}| | <!--Invalid -->{{#if:{{{invalid|}}}| | ||
<!-- -->{{!}} colspan=2 {{!}}<hr /> | <!-- -->{{!}} colspan=2 {{!}}<hr /> | ||
<!-- -->{{!}}- valign="top" | <!-- -->{{!}}- valign="top" | ||
<!-- -->{{!}}<span class="subheading"> | <!-- -->{{!}}{{#ifeq:{{{on_invalid}}}|suppress|colspan=2|width="50%"}}{{!}}<span class="subheading">'''失效条件:'''</span> | ||
<!-- -->{{{invalid|* | <!-- -->{{{invalid|* 无}}} | ||
<!-- -->{{!}}<span class="subheading"> | <!-- -->{{#ifeq:{{{on_invalid}}}|suppress||{{!}}<span class="subheading">'''失效时效果:'''</span> | ||
<!-- -->{{{on_invalid|* | <!-- -->{{{on_invalid|* 无}}}}}<!---->}} | ||
{{!}}-<!--End Invalid--> | {{!}}-<!--End Invalid--> | ||
<!--Fail -->{{#if:{{{fail|}}}| | <!--Fail -->{{#if:{{{fail|}}}| | ||
<!-- -->{{!}} colspan=2 {{!}}<hr /> | <!-- -->{{!}} colspan=2 {{!}}<hr /> | ||
<!-- -->{{!}}- valign="top" | <!-- -->{{!}}- valign="top" | ||
<!-- -->{{!}}<span class="subheading">'''失败条件:'''</span> | <!-- -->{{!}}{{#ifeq:{{{on_fail}}}|suppress|colspan=2|width="50%"}}{{!}}<span class="subheading">'''失败条件:'''</span> | ||
<!-- -->{{{fail|*无}}} | <!-- -->{{{fail|*无}}} | ||
<!-- -->{{!}}<span class="subheading">'''失败时效果:'''</span> | <!-- -->{{#ifeq:{{{on_fail}}}|suppress||{{!}}{{!}}<span class="subheading">'''失败时效果:'''</span> | ||
<!-- -->{{{on_fail|*无}}}}} | <!-- -->{{{on_fail|*无}}}}}<!---->}} | ||
{{!}}-<!--End Fail--> | {{!}}-<!--End Fail--> | ||
<!--Timeout -->{{#if:{{{timeout|}}}| | <!--Timeout -->{{#if:{{{timeout|}}}| | ||
<!-- -->{{!}} colspan=2 {{!}}<hr /> | <!-- -->{{!}} colspan=2 {{!}}<hr /> | ||
<!-- -->{{!}}- valign="top" | <!-- -->{{!}}- valign="top" | ||
<!-- -->{{!}}<span class="subheading">'''过期于 | <!-- -->{{!}} colspan=2 {{!}}<span class="subheading">'''过期于''' {{#replace:{{{timeout|never}}}|*|}} ''' 并触发如下 效果:'''</span> | ||
<!-- -->{{{on_timeout|*无}}}}} | <!-- -->{{{on_timeout|*无}}}}} | ||
{{!}}-<!--End Timeout--> | {{!}}-<!--End Timeout--> | ||
第76行: | 第72行: | ||
<!-- -->{{!}}- valign="top" | <!-- -->{{!}}- valign="top" | ||
<!-- -->{{!}} colspan=2 {{!}}<span class="subheading">{{{pulse}}}</span> | <!-- -->{{!}} colspan=2 {{!}}<span class="subheading">{{{pulse}}}</span> | ||
<!-- -->{{{on_pulse|* | <!-- -->{{{on_pulse|* 无}}}}} | ||
{{!}}-<!--End Pulse--> | {{!}}-<!--End Pulse--> | ||
<!--Pulse2 -->{{#if:{{{pulse2|}}}| | <!--Pulse2 -->{{#if:{{{pulse2|}}}| | ||
第82行: | 第78行: | ||
<!-- -->{{!}}- valign="top" | <!-- -->{{!}}- valign="top" | ||
<!-- -->{{!}} colspan=2 {{!}}<span class="subheading">{{{pulse2}}}</span> | <!-- -->{{!}} colspan=2 {{!}}<span class="subheading">{{{pulse2}}}</span> | ||
<!-- -->{{{on_pulse2|* | <!-- -->{{{on_pulse2|* 无}}}}}<!--End Pulse2--> | ||
{{!}}} | {{!}}} | ||
</div> | </div> | ||
</div> | </div> | ||
}}</includeonly><noinclude>{{template doc}}[[Category:Infoboxes]]</noinclude> | }}</includeonly><noinclude>{{template doc}}[[Category:Infoboxes]]</noinclude> |
2024年3月5日 (二) 22:32的最新版本
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
|
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 |
|
optional |
added_by | When the entry is added by an effect, such as event or decision |
|
optional |
trigger | Trigger conditions of the entry, overridden by added_by |
|
optional |
on_add | The effects of the entry when added.
|
|
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.
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
Honorable Restoration
可见条件:
| |
Activation conditions: | 触发时效果:
|
完成条件: | 完成时效果:
|
{{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
The Sick Man of Europe
可见条件:
| |
触发于:
|
触发时效果:
|
完成条件:
|
完成时效果:
|
过期于 20 years 并触发如下效果:
|
{{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
Divided Monarchists
仅当启用 人民之声 DLC 时可用 |
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.
可见条件:
| |
触发于:
|
触发时效果:
|
输入描述:
Republican Unrest
| |
完成条件:
|
完成时效果:
|
失效条件:
|
失效时效果:
|
失败条件:
All of:
|
失败时效果:
|
{{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