Template:Decree/doc:修订间差异

(创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> __NOTOC__ '''Decree''' can be used to create info tooltips or table rows for each decree. == Parameters == {| class="wikitable" ! Parameter !! Description !! Required !! Default |- | 1 || English localized decree name || '''Required''' || ''none'' |- | index | Tooltip index, for tool…”)
 
无编辑摘要
 
第1行: 第1行:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>{{see also|Decrees}}
    <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
    <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
__NOTOC__
__NOTOC__
'''Decree''' can be used to create info tooltips or table rows for each decree.
'''Decree''' can be used to create linked icons with text, info tooltips, or table rows for decrees.


== Parameters ==
== Parameters ==
第14行: 第14行:
| Tooltip index, for tooltip-in-a-tooltip use
| Tooltip index, for tooltip-in-a-tooltip use
* 1, 2, or 3
* 1, 2, or 3
* Set to nothing to prevent tooltip
| ''Optional'' || ''none''
| ''Optional'' || ''1''
|-
| w || Width of icon, no effect if used with <code>table</code> || ''Optional'' || ''24px''
|-
|-
| table
| table
第40行: 第41行:
| Violent Suppression
| Violent Suppression
|}
|}
== Tooltip usage ==
This template can be used in paragraphs by wrapping the paragraph in a <nowiki><div></div></nowiki> or <nowiki><span></span></nowiki> tag, otherwise it breaks the paragraph layout. It can be used in wiki lists or table cells without issue otherwise.


== Table usage ==
== Table usage ==
第55行: 第53行:


== Examples ==
== Examples ==
<code><nowiki>{{Decree|Enlistment Efforts}}</nowiki></code> results in <div>{{Decree|Enlistment Efforts}}</div>
<code><nowiki>{{Decree|Enlistment Efforts|index=1}}</nowiki></code> results in {{Decree|Enlistment Efforts|index=1}}
Note the line break; wrapping the paragraph in <nowiki><span></span></nowiki> results in:
<div><code><nowiki>{{Decree|Enlistment Efforts}}</nowiki></code> results in {{Decree|Enlistment Efforts}}</div>


Setting the index to nothing prevents a tooltip and sets just a basic icon display:
Setting the index to a non-number or a number above 3 prevents a tooltip and sets just a basic icon display:


<code><nowiki>{{Decree|Enlistment Efforts|index=}}</nowiki></code> results in {{Decree|Enlistment Efforts|index=}}
<code><nowiki>{{Decree|Enlistment Efforts}}</nowiki></code> results in {{Decree|Enlistment Efforts}}


Table usage appears as follows
Table usage appears as follows

2026年3月3日 (二) 21:29的最新版本

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

Decree can be used to create linked icons with text, info tooltips, or table rows for decrees.

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
Optional none
w Width of icon, no effect if used with table Optional 24px
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

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|index=1}} results in Enlistment Efforts Enlistment EffortsEnlistment EffortsCost: 100Enlistment Efforts
Incentivizing recruitment and training of local troops through financial incentives and preferential treatment
Requires:Mandatory Service Mandatory ServiceMandatory ServiceMilitary technologyMandatory Service
Era: 1 | Base cost: Innovation.png 7,000
Requires:Standing Army Standing ArmyStanding ArmyMilitary technologyStanding Army
Era: 1 | Base cost: Innovation.png 7,000
Unlocks:Barracks BarracksViolent Suppression Violent SuppressionHussars HussarsThe 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 EffortsNational Militia National MilitiaNational MilitiaPower structure lawsNational Militia
Law group: Army Model
Requires:Mandatory Service Mandatory ServiceEffects: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 a non-number or a number above 3 prevents a tooltip and sets just a basic icon display:

{{Decree|Enlistment Efforts}} 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
  • Military conscripts.png +5% Conscription rate
  • +25% Training rate