Difference between revisions of "Template:Reduce stability or adm power"

From Europa Universalis 4 Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>If {{{1|this country}}} {{#ifeq:{{{pl}}}|yes|have|has}} a stability of {{red|-2}} or higher,
+
<includeonly>If {{{1|the country}}} {{#ifeq:{{{pl}}}|yes|have|has}} a stability −3,
*then {{#ifeq:{{{pl}}}|yes|they lose|it loses}} {{icon|stability|24px}}{{red|1}} stability,
+
*then {{#ifeq:{{{pl}}}|yes|they lose|it loses}} {{icon|adm|24px}}{{red|50}} administrative power,
*else {{#ifeq:{{{pl}}}|yes|they lose|it loses}} {{icon|adm|24px}}{{red|100}} administrative power.</includeonly><noinclude>
+
*else {{#ifeq:{{{pl}}}|yes|they lose|it loses}} {{icon|stability|24px}}{{red|1}} stability.</includeonly><noinclude>
 
{{template doc}}
 
{{template doc}}
 
[[Category:Text templates]]
 
[[Category:Text templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 05:27, 2 August 2020

[view] [edit]Template-info.png Template documentation

This template displays the effects of stability loss called for frequently in scripts but is not technically part of a function in /Europa Universalis IV/common/scripted_effects/01_scripted_effects_for_simple_bonuses_penalties.txt like ‘add_stability_or_adm_power’.

Parameters

Parameter Description Default Status
1 designation of the effect receiver this country optional
pl set to ‘yes’ if the country names which are plural optional

Examples

{{reduce_stability_or_adm_power}}
If the country has a stability −3,
  • then it loses Administrative power.png50 administrative power,
  • else it loses Icon stability.png1 stability.
{{reduce_stability_or_adm_power|England}}
If England has a stability −3,
  • then it loses Administrative power.png50 administrative power,
  • else it loses Icon stability.png1 stability.
{{reduce_stability_or_adm_power|the {{flag|Ottomans}}|pl=yes}}
If the Flag of Ottomans Ottomans have a stability −3,
  • then they lose Administrative power.png50 administrative power,
  • else they lose Icon stability.png1 stability.