Template:Techcell:修订间差异

无编辑摘要
无编辑摘要
第1行: 第1行:
<includeonly><div style="display:flex; align-items:center;">[[File:{{{file|{{{1}}}}}}.png|{{{1}}} icon]]<div style="margin-left: 5px;"><h4 style="padding-top: 0px; margin-top: 0px;">{{{{{{zh}}}|{{{1}}}}}}</h4>{{plainlist|{{{modifiers}}}}}</div></div>{{#if:{{{2|}}}|<div style="font-size: 80%; font-style: italic;">{{{2}}}</div>}}</includeonly><noinclude>
<includeonly><div style="display:flex; align-items:center;">[[File:{{{file|{{{1}}}}}}.png|{{{1}}} icon]]<div style="margin-left: 5px;"><h4 style="padding-top: 0px; margin-top: 0px;">{{{{{{{zh}}}|{{{1}}}}}}</h4>{{plainlist|{{{modifiers}}}}}</div></div>{{#if:{{{2|}}}|<div style="font-size: 80%; font-style: italic;">{{{2}}}</div>}}</includeonly><noinclude>
{{template doc}}
{{template doc}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

2020年12月17日 (四) 21:46的版本

This template was originally written to fill the boxes of a doctrine {{tree}}. It can also be use to fill other boxes or table cells.

See also: {{Effectbox}}

Parameters

Parameter Description Status Default
1 name of the technology and identifier for the icon required empty
2 ingame description of the technology optional empty
modifiers effects of the technology (as list) required empty
file alternative file name optional {{{1}}}

Example

The following code:

{{Techcell|Air Superiority|Achieving Air Superiority will make it more difficult for enemy bombers to be used against our country, to allow our bombers to be used against our enemies.
|modifiers=*Fighter detection: {{green|+10%}}
}}

will display:

Air Superiority icon

{Air Superiority

  • Fighter detection: +10%
Achieving Air Superiority will make it more difficult for enemy bombers to be used against our country, to allow our bombers to be used against our enemies.