Template:Tech:修订间差异

无编辑摘要
无编辑摘要
第1行: 第1行:
<includeonly><span style="{{#Switch: {{{1}}}
<includeonly><span style="{{#Switch: {{{1}}}
| acquire = color:#CE7C00;
| 获取
| danger = color:#D30000; 
| acquire = color:#CE7C00;font-weight: bold;
| rare = color:#8900CE;
| 危险
| repeat = color:#0078CE;
| danger = color:#D30000;font-weight: bold;
| start = color:green;
| 稀有
| rare = color:#8900CE;font-weight: bold;
| 重复
| repeat = color:#0078CE;font-weight: bold;
| 初始
| start = color:green;font-weight: bold;
<!-- old -->
<!-- old -->
| debris = color:#CE7C00;
| debris = color:#CE7C00;font-weight: bold;
| rare2 = color:#008080;
| rare2 = color:#008080;font-weight: bold;
| start = color:#00CE56;
| start = color:#00CE56;font-weight: bold;
"}}>'''{{#cargo_query:
"}}>{{#cargo_query:
| tables= GLOSSARY
| tables= GLOSSARY
| where = GLOSSARY.en = "{{{2|battleships}}}" OR GLOSSARY.cn = "{{{2|1000}}}" OR GLOSSARY.id = "{{{2|1}}}"  OR GLOSSARY.alias1 = "{{{2|1000}}}"  OR GLOSSARY.alias2 = "{{{2|1000}}}"  OR GLOSSARY.alias3 = "{{{2|1000}}}"  OR GLOSSARY.alias4 = "{{{2|1000}}}" <> 0
| where = GLOSSARY.en = "{{{2|battleships}}}" OR GLOSSARY.cn = "{{{2|1000}}}" OR GLOSSARY.id = "{{{2|1}}}"  OR GLOSSARY.alias1 = "{{{2|1000}}}"  OR GLOSSARY.alias2 = "{{{2|1000}}}"  OR GLOSSARY.alias3 = "{{{2|1000}}}"  OR GLOSSARY.alias4 = "{{{2|1000}}}" <> 0
第17行: 第22行:
| template = ruby
| template = ruby
| default = {{{2}}}
| default = {{{2}}}
}}'''</span></includeonly><noinclude>{{template doc}}[[Category:模板]]</noinclude>
}}</span></includeonly><noinclude>{{template doc}}[[Category:模板]]</noinclude>

2022年3月18日 (五) 14:51的版本

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

此模板将参数加粗并着色,以表示它与其他科技不同。

现在支持查询科技ID和中英文名称,如果没有查询结果,则直接输出第二参数。

用法

语法:
{{tech|样式|科技名}}
样式 用于 例子
acquire 科技只能通过事件或者碎片分析获取 变形虫育种计划Amoeba Breeding Program
danger 危险科技可能激怒其他帝国以及触发终末危机 灵能跃迁引擎Psi Jump Drives
rare 稀有科技 择优血脉Selected Lineages
repeat 可重复科技(最终科技) 神经抑制器Nerve Dampeners
start 开局科技 水培农业Hydroponics Farming