Template:Reward:修订间差异

(merge from offical wiki)
 
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
<includeonly>Gain {{#switch: {{lc: {{{1|min}}} }}
<includeonly> 获得:{{#switch: {{lc: {{{1|min}}} }}
<!-- resource section -->
<!-- resource section -->
| enc = [[File:Energy Credits.png|link=Energy credits|24px]]
| enc = [[File:Energy Credits.png|link= 经济#基础资源|24px]]
| inf = [[File:Influence.png|link=Influence|24px]]
| inf = [[File:Influence.png|link= 经济#概念资源|24px]]
| min = [[File:Minerals.png|link=Minerals|24px]]
| min = [[File:Minerals.png|link= 经济#基础资源|24px]]
| all = [[File:Alloys.png|link=Alloys|24px]]
| all = [[File:Alloys.png|link= 经济#高级资源|24px]]
| uni = [[File:Unity.png|link=Unity|24px]]
| uni = [[File:Unity.png|link= 经济#概念资源|24px]]
| eng = [[File:Engineering Research.png|link=Engineering research|24px]]
| eng = [[File:Engineering Research.png|link= 工程学研究|24px]]
| phy = [[File:Physics Research.png|link=Physics research|24px]]
| phy = [[File:Physics Research.png|link= 物理学研究|24px]]
| soc = [[File:Society Research.png|link=Society research|24px]]
| soc = [[File:Society Research.png|link= 社会学研究|24px]]
| res = [[File:Research.png|link=Research|24px]]
| res = [[File:Research.png|link= 科技|24px]]
| art = [[File:Minor artifacts large.png|link=Minor artifact|24px]]
| art = [[File:Minor artifacts large.png|link= 遗珍#稀有文物|24px]]
| #default = <span style="color: red; font-size: 11px;">(unrecognized string "{{{1}}}" for [[Template:Reward]])</span>[[Category:Pages with unrecognized reward strings]]
| #default = <span style="color: red; font-size: 11px;"> (未识别的字符串“{{{1}}} ”用于 [[Template:Reward]] </span>[[Category: 含有未识别奖励字符串的页面]]
}}<!-- end resource section --> {{green|{{#switch: {{lc: {{{2|mat1}}} }}
}}<!-- end resource section --> {{green|{{#switch: {{lc: {{{2|mat1}}} }}
<!-- multiplier section -->
<!-- multiplier section -->
第44行: 第44行:
| art3
| art3
| art4 = 1
| art4 = 1
| #default = <span style="color: red; font-size: 11px;">(unrecognized string "{{{2}}}" for [[Template:Reward]])</span>[[Category:Pages with unrecognized reward strings]]
| #default = <span style="color: red; font-size: 11px;"> (未识别的字符串“{{{2}}} ”用于 [[Template:Reward]])</span>[[Category: 含有未识别奖励字符串的页面]]
}}<!-- end multiplier section -->x}} {{#switch: {{lc: {{{1|min}}} }}
}}<!-- end multiplier section -->x}} {{#switch: {{lc: {{{1|min}}} }}
<!-- resource section -->
<!-- resource section -->
| enc = Energy
| enc = 能量币
| inf = Influence
| inf = 影响力
| min = Minerals
| min = 矿物
| all = Alloys
| all = 合金
| uni = Unity
| uni = 凝聚力
| eng = Engineering
| eng = 工程学研究
| phy = Physics
| phy = 物理学研究
| soc = Society
| soc = 社会学研究
| res = Research
| res = 研究
| art = Minor artifact
| art = 稀有文物
| #default = <span style="color: red; font-size: 11px;">(unrecognized string "{{{1}}}" for [[Template:Reward]])</span>[[Category:Pages with unrecognized reward strings]]
| #default = <span style="color: red; font-size: 11px;"> (未识别的字符串“{{{1}}} ”用于 [[Template:Reward]])</span>[[Category: 含有未识别奖励字符串的页面]]
}}<!-- end resource section --> output ({{#ifeq:{{{1}}}|res|''each ''}}potential yield gain of {{green|<!-- value section -->{{#switch: {{lc: {{{2|mat1}}} }}
}}<!-- end resource section --> 产出({{#ifeq:{{{1}}}|res|'' 每种 ''}} 潜在的产量 {{green|<!-- value section -->{{#switch: {{lc: {{{2|mat1}}} }}
<!-- contact section -->
<!-- contact section -->
| con11 = 20 ~ 80
| con11 = 20 ~ 80
第101行: 第101行:
| art4 = 70 ~ 100
| art4 = 70 ~ 100


| #default = <span style="color: red; font-size: 11px;">(unrecognized string "{{{2}}}" for [[Template:Reward]])</span>[[Category:Pages with unrecognized reward strings]]
| #default = <span style="color: red; font-size: 11px;"> (未识别的字符串“{{{2}}} ”用于 [[Template:Reward]])</span>[[Category: 含有未识别奖励字符串的页面]]
}}<!-- end value section -->}})</includeonly><noinclude>{{template doc}}[[Category:Templates]]</noinclude>
}}<!-- end value section -->}})</includeonly><noinclude>{{template doc}}[[Category: 模板]]</noinclude>

2022年4月15日 (五) 12:28的最新版本

[查看] [编辑]Template-info.png 模板文档

The template can be used in cases where resource rewards are being given using namespace parameters (as in events and similar cases) - these parameters (and their associated values) stay consistent across the files.

Parameters[编辑源代码]

Note: Make sure to use the right parameter 2 (multiplier/amount) on 凝聚力 Unity 凝聚力Unity and 影响力 Influence 影响力Influence special cases.

Resource Parameter 1 Parameter 2 Multi Amount
  • 能量币 Energy Credits Energy
  • 矿物 Minerals Minerals
  • 凝聚力 Unity Unity
  • 合金 Alloys Alloys
  • enc
  • min
  • uni
  • all
  • mat1
  • mat2
  • mat3
  • mat4
  • mat5
  • 6x
  • 12x
  • 18x
  • 24x
  • 48x
  • 100 ~ 500
  • 150 ~ 1000
  • 250 ~ 1500
  • 350 ~ 2000
  • 700 ~ 4000
  • 工程学研究 Engineering Research Engineering
  • 物理学研究 Physics Research Physics
  • 社会学研究 Society Research Society
  • 研究 Research Research
  • eng
  • phy
  • soc
  • res
  • res1
  • res2
  • res3
  • res4
  • res5
  • 12x
  • 18x
  • 24x
  • 48x
  • 96x
  • 0250 ~ 10000
  • 0350 ~ 10000
  • 0500 ~ 10000
  • 1000 ~ 10000
  • 2000 ~ 10000
影响力 Influence Influence
  • inf
  • inf1
  • inf2
  • inf3
  • inf4
  • inf5
  • inf6
  • 6x
  • 12x
  • 18x
  • 24x
  • 36x
  • 48x
  • 40 ~ 100
  • 80 ~ 175
  • 125 ~ 250
  • 150 ~ 300
  • 250 ~ 500
  • 300 ~ 600
影响力 Influence Influence
(contact cases)
  • inf
  • con11
  • con12 (if xenophile)
  • con21
  • con22 (if xenophile)
  • 6x
  • 9x
  • 10x
  • 15x
  • 20 ~ 80
  • 30 ~ 120
  • 40 ~ 100
  • 60 ~ 150
凝聚力 Unity Unity
(special cases)
  • uni
  • uni1
  • uni2
  • uni3
  • uni4
  • uni5
  • uni9
  • 6x
  • 12x
  • 18x
  • 24x
  • 48x
  • 120x
  • 100 ~ 500
  • 150 ~ 1000
  • 250 ~ 1500
  • 350 ~ 2000
  • 700 ~ 4000
  • 240 ~ 9999
稀有文物 Minor Artifacts 稀有文物Minor Artifacts
  • art
  • art1
  • art2
  • art3
  • art4
  • 1x
  • 1x
  • 1x
  • 1x
  • 1 ~ 5
  • 6 ~ 10
  • 10 ~ 30
  • 50 ~ 100

Usage[编辑源代码]

Format: {{reward|Resource_Type|Resource_Amount}}

Examples

The following will produce the below results (in the listed order):

* {{reward|enc|mat3}}
* {{reward|uni|mat1}}
* {{reward|uni|uni1}}
* {{reward|phy|res2}}
* {{reward|res|res4}}
* {{reward|uni|uni9}}
* {{reward|inf|inf1}}
* {{reward|inf|con12}}
* {{reward|art|art1}}
* {{reward|art|art2}}
  • 获得:Energy Credits.png 18x 能量币产出(潜在的产量 250 ~ 1500)
  • 获得:Unity.png 6x 凝聚力产出(潜在的产量 100 ~ 500)
  • 获得:Unity.png 6x 凝聚力产出(潜在的产量 100 ~ 500)
  • 获得:Physics Research.png 18x 物理学研究产出(潜在的产量 350 ~ 10000)
  • 获得:Research.png 48x 研究产出( 每种 潜在的产量 1000 ~ 10000)
  • 获得:Unity.png 120x 凝聚力产出(潜在的产量 240 ~ 9999)
  • 获得:Influence.png 6x 影响力产出(潜在的产量 40 ~ 100)
  • 获得:Influence.png 9x 影响力产出(潜在的产量 30 ~ 120)
  • 获得:Minor artifacts large.png 1x 稀有文物产出(潜在的产量 1 ~ 5)
  • 获得:Minor artifacts large.png 1x 稀有文物产出(潜在的产量 6 ~ 10)

References[编辑源代码]

  1. To update template values see reference files in folder Stellaris/common:
    1. For event rewards see reference file Stellaris/common/scripted_variables/00_scripted_variables.txt (appears under ### EVENT REWARDS).