Template:修正

Katty von Keksburg讨论 | 贡献2022年10月27日 (四) 20:47的版本 (建立内容为“<includeonly>{{#cargo_query: | table = modifier_names | fields = chinese, english | format = template | template = word | where = modifier_names.chinese = "{{{1|5…”的新页面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
[阅读] [编辑]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 没有结果

Non-country modifiers can be specified with scope, as for example:

{{modifier|Law Enactment Stalled|{{color|red|−15%}} Enactment chance|scope=Law enactment}}

没有结果


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 没有结果 following text

Styled example {{red|{{modifier|Law Enactment Stalled|{{color|red|−15%}} Enactment chance|scope=Law enactment}} }} following text
Styled example 没有结果 following text