Template:Iconbox/doc

< Template:Iconbox
自由之民讨论 | 贡献2022年3月8日 (二) 21:06的版本 (文本替换 - 替换“{{template doc page viewed directly}}</noinclude>”为“{{template doc page viewed directly}}</noinclude>[[en:{{FULLPAGENAME}}]]”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
这是 Template:Iconbox模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

Usage

One item in a list of icons (achievements, disasters, etc.). The box name is sent as a referencable anchor on the page, so you don't need to also use id="" to link to it.

{{iconbox|name|description}}
{{iconbox|name|description|image=file.png}}
{{iconbox|name|description|link=on}}
{{iconbox|name|description|image=file.png|link=on}}

Parameters

Parameter Description Required Default
1 Box name and hovertext required none
2 Description optional The description of the achievements
image Image file optional <parameter 1>.png
template Uses an assembled template in place of an image optional image
link Puts a link in the box name
  • If set to "on", <parameter 1> is used for the link
optional No link

Examples

{{iconbox|unknown}}

unknown 的图标
unknown
unknown的描述

{{iconbox|Brave New World|Colonize a planet.}}

Brave New World 的图标
Brave New World
Colonize a planet.

{{iconbox|Break On Through...|Research a Rare technology.|link=on}}

Break On Through... 的图标
Research a Rare technology.

{{iconbox|Shipyard|A Shipyard may build one ship at a time, in parallel with other Shipyards.|image=sb shipyard.png|link=on}}

Shipyard 的图标
A Shipyard may build one ship at a time, in parallel with other Shipyards.

{{iconbox|Lush|Life thrives here, the fauna is plentiful and the flora grows rapidly.|template={{planet modifier|pm_lush|1}}|link=on}}

Pm lush.pngPm frame 1.png
Life thrives here, the fauna is plentiful and the flora grows rapidly.