No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 16: | Line 16: | ||
|}<!--表头对应的表格结尾--> | |}<!--表头对应的表格结尾--> | ||
{{template doc}} | {{template doc}} | ||
[[Category:语义化模板]] | |||
{{#cargo_declare: | {{#cargo_declare: | ||
_table = GLOSSARY | _table = GLOSSARY | ||
| id = String | | id = String | ||
| local = String | | local = String | ||
| en = | | en = Wikitext string | ||
| cn = | | cn = Wikitext string | ||
| alias1 = String | | alias1 = String | ||
| alias2 = String | | alias2 = String | ||
Latest revision as of 18:21, 13 April 2022
| 代码关键字<id> | 本地化关键字<local> | 英文名<en> | 中文名<cn> | 图标文件名<image> |
|---|---|---|---|---|
| 别名1<alias1> | 别名2<alias2> | 别名3<alias3> | 别名4<alias4> | 链接<link> |
这是构造词汇表数据Cargo表的模板。
词汇表[edit | edit source]
用法[edit | edit source]
{{Glossary|id=|local=|en=|cn=|alias1=|alias2=|alias3=|alias4=|image=|link=}}
- id = 脚本代码,有时与本地化关键字或图标文件名相同
- local = 本地化关键字
- en = 英文本地化文本
- cn = 中文本地化文本
- image = 图标文件名,或者英文文本
- alias = 别名,作用如下:
- alias1 = 用于区别英文名相同的项目,所有同名项目中只有一个不需要填写这项。通常是icon文档里指定的那些关键字。
- alias2 = 一般别名。可能是icon文档指定的关键字,但不想停用英文名。也可能是其他简短的关键字。
- alias3 = 通用别名,通常是英文名加上一个后缀。
- alias4 = 保留别名,用于特殊识别或者后续处理。例如:行星修正的数字是模板用的外圈颜色。
- link = 链接
行星[edit | edit source]
政府[edit | edit source]
科技[edit | edit source]
特质[edit | edit source]
其他[edit | edit source]
过时[edit | edit source]
修正[edit | edit source]
制表方法[edit source]
- 从 Stellaris/common/static_modifiers/*.* 提取所有修正关键字。根据目前的分析,静态修正涵盖了绝大部分修正项目。
- 从 Stellaris/gfx/interface/icons/modifiers/ 提取所有图标文件名。
- 从本地化文本搜索提取相关的本地化关键字和中英文文本。
- 在电子表格工具中对照各项,构造表格。
- 在表格中填入
{{icon}}中不同的关键字。
用法[edit source]
{{Modifiers|<1>|<2>|<3>|<4>|<5>|<6>|<image>|<link>}}
| <1>修正关键字 | <2>本地化关键字 | <3>英文 | <4>中文 | 预览<5>颜色<6>数据类型 | |
|---|---|---|---|---|---|
| id | local | en | cn | color type |
This template defines the table "GLOSSARY". View table.