(建立内容为“<includeonly>{{#cargo_store:_table = Ideas_EU4 | id = {{{1}}} | localisation = {{{2|}}} | en = {{{3|}}} | cn = {{{4|}}} | color = {{{5|}}} | type = {{{6|}}} | ima…”的新页面) |
无编辑摘要 |
||
第1行: | 第1行: | ||
<includeonly>{{#cargo_store:_table = | <includeonly>{{#cargo_store:_table = Modifiers | id = {{{1}}} | local = {{{2|}}} | en = {{{3|}}} | cn = {{{4|}}} | color = {{{5|}}} | type = {{{6|}}} | image = {{{image|}}} | link = {{{link|}}} }} | ||
|- | |- | ||
| <code>{{{1}}}</code> || <code>{{{2}}}</code> || {{{3}}} || {{{4}}} || {{{5}}} || {{{6}}} || {{#ifeq: null | {{lc:{{{6}}}}} | | [[File:{{{1|{{{3}}}}}}.png|28px|link=|{{{3|{{{1|图标}}}}}}]] {{#switch:{{lc:{{{6}}}}} | | <code>{{{1}}}</code> || <code>{{{2}}}</code> || {{{3}}} || {{{4}}} || {{{5}}} || {{{6}}} || {{#ifeq: null | {{lc:{{{6}}}}} | | [[File:{{{1|{{{3}}}}}}.png|28px|link={{{link|}}}|{{{3|{{{1|图标}}}}}}]] {{#switch:{{lc:{{{6}}}}} | ||
|percentage={{{4}}}:{{{{{5}}}|+10%}} | |percentage={{{4}}}:{{{{{5}}}|+10%}} | ||
|float ={{{4}}}:{{{{{5}}}|+0.1}} | |float ={{{4}}}:{{{{{5}}}|+0.1}} | ||
第15行: | 第15行: | ||
[[Category:解析器模板]] | [[Category:解析器模板]] | ||
{{#cargo_declare: | {{#cargo_declare: | ||
_table = | _table = Modifiers | ||
| id = String | | id = String | ||
| localisation = String | | localisation = String | ||
第23行: | 第23行: | ||
| type = String | | type = String | ||
| image = String | | image = String | ||
| link = String | |||
}} | }} | ||
</noinclude> | </noinclude> |
2022年3月15日 (二) 15:17的版本
制表方法
- 从 Stellaris/common/static_modifiers/*.* 提取所有修正关键字。根据目前的分析,静态修正涵盖了绝大部分修正项目。
- 从 Stellaris/gfx/interface/icons/modifiers/ 提取所有图标文件名。
- 从本地化文本搜索提取相关的本地化关键字和中英文文本。
- 在电子表格工具中对照各项,构造表格。
- 在表格中填入
{{icon}}
中不同的关键字。
用法
{{Modifiers|<1>|<2>|<3>|<4>|<5>|<6>|<image>|<link>}}
<1>修正关键字 | <2>本地化关键字 | <3>英文 | <4>中文 | 预览<5>颜色<6>数据类型 | |
---|---|---|---|---|---|
id | local | en | cn | color type |
此模板定义表格“Modifiers”。 查看表格.