Template:修正

(重定向自Template:Modifier
[阅读] [编辑]Template-info.png 模板文档

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
  • Only 2 or 3
  • Use for tooltip-in-tooltip
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% IG armed forces.png pop attraction
+30% IG armed forces.png political strength
+50% Pop officers.png 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 text
Styled example Law Enactment StalledLaw Enactment StalledLaw enactment modifier
−15% Enactment chance
following text