小 (文本替换 - 替换“Category:Templates”为“Category:模板”) |
无编辑摘要 |
||
第1行: | 第1行: | ||
<includeonly> | <includeonly> 获得:{{#switch: {{lc: {{{1|min}}} }} | ||
<!-- resource section --> | <!-- resource section --> | ||
| enc = [[File:Energy Credits.png|link= | | enc = [[File:Energy Credits.png|link= 经济#基础资源|24px]] | ||
| inf = [[File:Influence.png|link= | | inf = [[File:Influence.png|link= 经济#概念资源|24px]] | ||
| min = [[File:Minerals.png|link= | | min = [[File:Minerals.png|link= 经济#基础资源|24px]] | ||
| all = [[File:Alloys.png|link= | | all = [[File:Alloys.png|link= 经济#高级资源|24px]] | ||
| uni = [[File:Unity.png|link= | | uni = [[File:Unity.png|link= 经济#概念资源|24px]] | ||
| eng = [[File:Engineering Research.png|link= | | eng = [[File:Engineering Research.png|link= 工程学研究|24px]] | ||
| phy = [[File:Physics Research.png|link= | | phy = [[File:Physics Research.png|link= 物理学研究|24px]] | ||
| soc = [[File:Society Research.png|link= | | soc = [[File:Society Research.png|link= 社会学研究|24px]] | ||
| res = [[File:Research.png|link= | | res = [[File:Research.png|link= 科技|24px]] | ||
| art = [[File:Minor artifacts large.png|link= | | art = [[File:Minor artifacts large.png|link= 遗珍#稀有文物|24px]] | ||
| #default = <span style="color: red; font-size: 11px;"> | | #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;"> | | #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 = | | enc = 能量币 | ||
| inf = | | inf = 影响力 | ||
| min = | | min = 矿物 | ||
| all = | | all = 合金 | ||
| uni = | | uni = 凝聚力 | ||
| eng = | | eng = 工程学研究 | ||
| phy = | | phy = 物理学研究 | ||
| soc = | | soc = 社会学研究 | ||
| res = | | res = 研究 | ||
| art = | | art = 稀有文物 | ||
| #default = <span style="color: red; font-size: 11px;"> | | #default = <span style="color: red; font-size: 11px;"> (未识别的字符串“{{{1}}} ”用于 [[Template:Reward]])</span>[[Category: 含有未识别奖励字符串的页面]] | ||
}}<!-- end resource section --> | }}<!-- 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;"> | | #default = <span style="color: red; font-size: 11px;"> (未识别的字符串“{{{2}}} ”用于 [[Template:Reward]])</span>[[Category: 含有未识别奖励字符串的页面]] | ||
}}<!-- end value section -->}})</includeonly><noinclude>{{template doc}}[[Category:模板]]</noinclude> | }}<!-- end value section -->}})</includeonly><noinclude>{{template doc}}[[Category:模板]]</noinclude> |
2022年4月15日 (五) 12:28的最新版本
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
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}}
- 获得:
18x 能量币产出(潜在的产量 250 ~ 1500)
- 获得:
6x 凝聚力产出(潜在的产量 100 ~ 500)
- 获得:
6x 凝聚力产出(潜在的产量 100 ~ 500)
- 获得:
18x 物理学研究产出(潜在的产量 350 ~ 10000)
- 获得:
48x 研究产出( 每种 潜在的产量 1000 ~ 10000)
- 获得:
120x 凝聚力产出(潜在的产量 240 ~ 9999)
- 获得:
6x 影响力产出(潜在的产量 40 ~ 100)
- 获得:
9x 影响力产出(潜在的产量 30 ~ 120)
- 获得:
1x 稀有文物产出(潜在的产量 1 ~ 5)
- 获得:
1x 稀有文物产出(潜在的产量 6 ~ 10)
References[编辑源代码]
- To update template values see reference files in folder Stellaris/common:
- For event rewards see reference file Stellaris/common/scripted_variables/00_scripted_variables.txt (appears under ### EVENT REWARDS).