小 (文本替换 - 替换“Category:Template documentation”为“Category:模板文档”) |
小 (文本替换 - 替换“{{template doc page viewed directly}}</noinclude>”为“{{template doc page viewed directly}}</noinclude>[[en:{{FULLPAGENAME}}]]”) |
||
第1行: | 第1行: | ||
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> | <includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>[[en:{{FULLPAGENAME}}]] | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
== Usage == | == Usage == |
2022年3月8日 (二) 21:06的最新版本
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
|
optional | No link |
Examples[编辑源代码]
{{iconbox|unknown}}
unknown
unknown的描述
{{iconbox|Brave New World|Colonize a planet.}}
Brave New World
Colonize a planet.
{{iconbox|Break On Through...|Research a Rare technology.|link=on}}
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}}
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}}