Template:Decree/doc

这是Template:Decree的模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。


Decree can be used to create info tooltips or table rows for each decree.

Parameters

Parameter Description Required Default
1 English localized decree name Required none
index Tooltip index, for tooltip-in-a-tooltip use
  • 1, 2, or 3
  • Set to nothing to prevent tooltip
Optional 1
table Formats output as a table row instead of tooltip, if set to anything Optional none

Parameter 1 must be the proper English localized name of the decree:

Emergency Relief Greener Grass Campaign
Encourage Agricultural Industry Promote National Values
Encourage Manufacturing Industry Promote Social Mobility
Encourage Resource Industry Road Maintenance
Enlistment Efforts Violent Suppression

Tooltip usage

This template can be used in paragraphs by wrapping the paragraph in a <div></div> or <span></span> tag, otherwise it breaks the paragraph layout. It can be used in wiki lists or table cells without issue otherwise.

Table usage

This template outputs into the following table format. The template should be put in the first column and it generates the remaining columns for its row.

Name Required technology Conditions Modifiers
Template goes here

Each decree in the table requires its own use of the template in a new row.

Examples

{{Decree|Enlistment Efforts}} results in

Enlistment Efforts Enlistment Efforts
Enlistment Efforts
Cost: 100Enlistment Efforts
Incentivizing recruitment and training of local troops through financial incentives and preferential treatment

Requires:
Mandatory Service Mandatory Service
Mandatory Service
Military technologyMandatory Service
Era: 1 | Base cost: Innovation.png 7,000

Requires:
Standing Army Standing Army
Standing Army
Military technologyStanding Army
Era: 1 | Base cost: Innovation.png 7,000

Unlocks:
Barracks Barracks
Violent Suppression Violent SuppressionHussars Hussars

The complex challenges of foreign policy and domestic unrest can no longer be dealt with by hastily-mustered militias. Modern times require a military ready at all times to act.

Unlocks:
Enlistment Efforts Enlistment Efforts
National Militia National Militia
National Militia
Power structure lawsNational Militia
Law group: Army Model

Requires:
Mandatory Service Mandatory Service

Effects:
Pop officers.png +100% Officers political strength
Pop soldiers.png +100% Servicemen political strength
Military morale.png −5% Morale loss
IG armed forces.png −25% Armed Forces political strength
Building barracks.png +5 Barracks Max Level
Building conscription center.png +100 Conscription Center Max Level
Power bloc leverage.png +50% Leverage resistance
+5% Conscription rate

The standing army is small, but local militias can be activated to defend their homes.
Modifiers:
Military conscripts.png +20% Conscriptable Battalions

Volunteers and mercenaries might not meet all the manpower demands of a modern military force. Sometimes, the nation simply must demand service from all its citizens.

Modifiers:
Military conscripts.png +5% Conscription rate
+25% Training rate

Note the line break; wrapping the paragraph in <span></span> results in:

{{Decree|Enlistment Efforts}} results in
Enlistment Efforts Enlistment Efforts
Enlistment Efforts
Cost: 100Enlistment Efforts
Incentivizing recruitment and training of local troops through financial incentives and preferential treatment

Requires:
Mandatory Service Mandatory Service
Mandatory Service
Military technologyMandatory Service
Era: 1 | Base cost: Innovation.png 7,000

Requires:
Standing Army Standing Army
Standing Army
Military technologyStanding Army
Era: 1 | Base cost: Innovation.png 7,000

Unlocks:
Barracks Barracks
Violent Suppression Violent SuppressionHussars Hussars

The complex challenges of foreign policy and domestic unrest can no longer be dealt with by hastily-mustered militias. Modern times require a military ready at all times to act.

Unlocks:
Enlistment Efforts Enlistment Efforts
National Militia National Militia
National Militia
Power structure lawsNational Militia
Law group: Army Model

Requires:
Mandatory Service Mandatory Service

Effects:
Pop officers.png +100% Officers political strength
Pop soldiers.png +100% Servicemen political strength
Military morale.png −5% Morale loss
IG armed forces.png −25% Armed Forces political strength
Building barracks.png +5 Barracks Max Level
Building conscription center.png +100 Conscription Center Max Level
Power bloc leverage.png +50% Leverage resistance
+5% Conscription rate

The standing army is small, but local militias can be activated to defend their homes.
Modifiers:
Military conscripts.png +20% Conscriptable Battalions

Volunteers and mercenaries might not meet all the manpower demands of a modern military force. Sometimes, the nation simply must demand service from all its citizens.

Modifiers:
Military conscripts.png +5% Conscription rate
+25% Training rate

Setting the index to nothing prevents a tooltip and sets just a basic icon display:

{{Decree|Enlistment Efforts|index=}} results in Enlistment Efforts Enlistment Efforts

Table usage appears as follows

Name Required technology Conditions Modifiers
{{Decree|Enlistment Efforts|table=1}} results in
Enlistment Efforts
Enlistment Efforts
Incentivizing recruitment and training of local troops through financial incentives and preferential treatment
  • Mandatory Service Mandatory Service
    Mandatory Service
    Military technologyMandatory Service
    Era: 1 | Base cost: Innovation.png 7,000

    Requires:
    Standing Army Standing Army
    Standing Army
    Military technologyStanding Army
    Era: 1 | Base cost: Innovation.png 7,000

    Unlocks:
    Barracks Barracks
    Violent Suppression Violent SuppressionHussars Hussars

    The complex challenges of foreign policy and domestic unrest can no longer be dealt with by hastily-mustered militias. Modern times require a military ready at all times to act.

    Unlocks:
    Enlistment Efforts Enlistment Efforts
    National Militia National Militia
    National Militia
    Power structure lawsNational Militia
    Law group: Army Model

    Requires:
    Mandatory Service Mandatory Service

    Effects:
    Pop officers.png +100% Officers political strength
    Pop soldiers.png +100% Servicemen political strength
    Military morale.png −5% Morale loss
    IG armed forces.png −25% Armed Forces political strength
    Building barracks.png +5 Barracks Max Level
    Building conscription center.png +100 Conscription Center Max Level
    Power bloc leverage.png +50% Leverage resistance
    +5% Conscription rate

    The standing army is small, but local militias can be activated to defend their homes.
    Modifiers:
    Military conscripts.png +20% Conscriptable Battalions

    Volunteers and mercenaries might not meet all the manpower demands of a modern military force. Sometimes, the nation simply must demand service from all its citizens.
  • Military conscripts.png +5% Conscription rate
  • +25% Training rate