Template:Ship
外观
介绍
[编辑]机制/原理
[编辑]用法
[编辑]- {{ship|1-舰船名称|2-舰船类型|3-年份/舷号|4-可选参数}} →
[[1-舰船名称 2-舰船类型 (3-年份/舷号)|“1-舰船名称”号2-舰船类型 (3-年份/舷号)]]
→ “1-舰船名称”号2-舰船类型 (3-年份/舷号)
所有参数都是可选的。您只需输入构建条目标题的部分并选择显示效果即可。
- 4 可选参数
- 可选参数的使用方式如下,用于调整显示文字:
模板示例 | 等效生成的维基代码 | 显示示例 |
---|---|---|
{{ship|甘古特|战列舰|1911年}} | [[甘古特号战列舰 (1911年)]] | “甘古特”号战列舰 (1911年) |
{{ship|波将金|战列舰|}} | [[波将金号战列舰]] | “波将金”号战列舰 |
参数
[编辑]值 | 显示的 参数 |
示例 | 等效维基代码 | 最终效果 | |
---|---|---|---|---|---|
不加参数 | “舰船名称”+号+舰船类型+年份/舷号 | {{ship|甘古特|战列舰|1911年}} | [[甘古特号战列舰 (1911年)|“甘古特”号战列舰 (1911年)]] | “甘古特”号战列舰 (1911年) | |
1 | 年份/舷号 | {{ship|济南|导弹驱逐舰|105|1}} | [[济南号导弹驱逐舰 (105)|105]] | 105 | |
2 | “舰船名称”+号 | {{ship|甘古特|战列舰|1911年|2}} | [[甘古特号战列舰 (1911年)|“甘古特”号]] | “甘古特”号 | |
3 | “舰船名称”+号+(年份/舷号) | {{ship|济南|导弹驱逐舰|105|3}} | [[济南号导弹驱逐舰 (105)|“济南”号(105)]] | “济南”号(105) | |
4 | 年份/舷号+舰 | {{ship|济南|导弹驱逐舰|105|4}} | [[济南号导弹驱逐舰 (105)|105舰]] | “济南”号导弹驱逐舰 (105) | |
5 | “舰船名称”+号+年份/舷号 | {{ship|甘古特|战列舰|1911年|5}} | [[甘古特号战列舰 (1911年)|“甘古特”号1911年]] | “甘古特”号1911年 | |
6 | “舰船名称”+号+舰船类型 | {{ship|甘古特|战列舰|1911年|6}} | [[甘古特号战列舰 (1911年)|“甘古特”号战列舰]] | “甘古特”号战列舰 |