This template creates a hover tooltip to display modifier effects.
Parameter
Parameter | Description | Default | Required |
---|---|---|---|
1 | Modifier name | n/a | Required |
2 | Modifier effects | n/a | optional |
scope | Modifier scope | Country | optional |
class | Tooltip class level
|
n/a | optional |
Examples
2
must all be on one line, so use <br>
to separate lines for display. As an example the following:
{{modifier |Age of Caudillos |'''+10%''' {{icon|Armed Forces|3=1}} pop attraction<br>'''+30%''' {{icon|Armed Forces|3=1}} political strength<br>'''+50%''' {{icon|Officers|3=1}} political strength}}
results in Age of Caudillos
Age of Caudillos
Country modifier
+10% pop attraction
+30% political strength
+50% political strength
Non-country modifiers can be specified with scope
, as for example:
{{modifier|Law Enactment Stalled|{{color|red|−15%}} Enactment chance|scope=Law enactment}}
Law Enactment StalledLaw Enactment StalledLaw enactment modifier
−15% Enactment chance
The inline display text can be styled with most wiki styling (outside/around the template) without affecting the tooltip text.
Styled example ''{{modifier|Law Enactment Stalled|{{color|red|−15%}} Enactment chance|scope=Law enactment}}'' following text
Styled example Law Enactment StalledLaw Enactment StalledLaw enactment modifier
−15% Enactment chance following text
Styled example {{red|{{modifier|Law Enactment Stalled|{{color|red|−15%}} Enactment chance|scope=Law enactment}} }} following textStyled example Law Enactment StalledLaw Enactment StalledLaw enactment modifier
−15% Enactment chance following text