Template:Decision/doc

< Template:Decision
天津风不是天津的风讨论 | 贡献2024年10月29日 (二) 00:25的版本 (创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> __NOTOC__ '''Decision''' can be used to display description, shown and useable conditions and effects of a decision in a compact infobox. == Parameter == {| class="wikitable" |- ! Parameter ! Description ! Default ! Status |- | version | To specify the major patch for which the event w…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
这是Template:Decision的模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。


Decision can be used to display description, shown and useable conditions and effects of a decision 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
header Header level, for Table of Contents h3 optional
decision_id Event identification code as it appears in the file to serve as an anchor empty optional
decision_name Title of the event. empty required
decision_text In-game description text of the event. If multiple descriptions exist then use only the first one. empty optional, but desired
shown When is the decision visible
  • None
optional
usable When can the decision be used
  • None
optional
effect The effects of the decision.
  • None
optional
collapse Whether to collapse the decision. If set to ‘yes’ the content will start collapsed.

(Please use collapsed content on country pages.)

empty optional

Usage

{{decision
|version = 
|decision_id = <!-- optional, but desired -->
|decision_name = 
|decision_text = <!-- optional, but desired -->
|shown = 
|usable = 
|effect = 
}}

Examples

{{decision
|version = timeless
|decision_id = shinto_decision
|decision_name = Adopt State Shinto
|decision_text = With the restoration of the imperial household to political power, it would be wise to integrate local beliefs into an official state religion emphasizing the Emperor's divinity.
|shown = 
* Is {{flag|Japan}}
* Does not have {{iconify|Shinto|religion}} as state religion
|usable = 
* Has completed the ''Honorable Restoration'' journal entry
* {{icon|Devout}} Buddhist Monks are not {{iconify|marginalized|political}}
* Has enacted {{iconify|Monarchy|law}}
* Has not enacted {{iconify|State Religion|law}}
|effect = 
* {{iconify|Shinto|religion}} becomes the state religion
* {{icon|Devout}} Buddhist Monks are renamed to Shinto Monks
** Replace {{iconify|Buddhist Moralist|Ideology}} ideology with {{iconify|Shinto Piousness|Ideology}}
* {{green|40%}} of pops in the {{iconify|capital|state status}} convert to Shinto
* {{green|20%}} of pops in other {{iconify|incorporated|state status}} states convert to Shinto
}}

will display:

id

Adopt State Shinto

With the restoration of the imperial household to political power, it would be wise to integrate local beliefs into an official state religion emphasizing the Emperor's divinity.
 
可见条件:
  • Is 日本的国旗 日本
  • Does not have Religion shinto.png Shinto as state religion
可用条件:
  • Has completed the Honorable Restoration journal entry
  • IG devout.png Buddhist Monks are not Political marginalized.png marginalized
  • Has enacted Law monarchy.png Monarchy
  • Has not enacted Law state religion.png State Religion

效果:
  • Religion shinto.png Shinto becomes the state religion
  • IG devout.png Buddhist Monks are renamed to Shinto Monks
  • 40% of pops in the State status capital.png capital convert to Shinto
  • 20% of pops in other State status incorporated.png incorporated states convert to Shinto