Template:SEffect

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


Template for scripted effects which have no parameters. The actual effects are transcluded from subtemplates named after the script file. They can be edited there. When editing the subtemplates, please remove the autogenerated_ sections, but not the sections which are named after the effect. autogenerated_ sections will be automatically upgraded for new versions of eu4 or pdxparse while edited sections have to be manually updated.

Parameter Description Type Status Default value
1 name of the scripted effect String required
2 level of indentation. Specifies the number of * which are added in front of each line int optional 1

Examples

{{SEffect|add_or_upgrade_naval_defense_building|1}} generates:


「[This.GetName]的岸防工事建筑获得升级。若没有建筑,则添加岸防工事;若存在海防炮台,则[This.GetName]获得2基础生产。」
潜在效果:
  • 如果:
    • 仅限于:
      • 拥有建筑 Coastal defence.png 岸防工事
    • 建造 Naval battery.png 海防炮台
  • 否则,如果:
    • 仅限于:
      • 拥有建筑 Naval battery.png 海防炮台
    • 获得 Production.png 2 基础生产
  • 否则:
    • 建造 Coastal defence.png 岸防工事