Template:Iconbox/doc:修订间差异

(文本替换 - 替换“{{template doc page viewed directly}}</noinclude>”为“{{template doc page viewed directly}}</noinclude>[[en:{{FULLPAGENAME}}]]”)
第14行: 第14行:
|-
|-
| 2 (second unnamed parameter) || In-game/Steam description of achievement || '''required'''
| 2 (second unnamed parameter) || In-game/Steam description of achievement || '''required'''
|-
| en || Steam成就英文名,用于对照查找,但是它不一定和图片名称完全一样。 || '''optional'''
|-
|-
| link || Set to "on" to link to an article with the same name || '''optional'''
| link || Set to "on" to link to an article with the same name || '''optional'''
第20行: 第22行:
|-
|-
| image || Name of image file (without File:) || '''optional''' (defaults to using the first parameter)
| image || Name of image file (without File:) || '''optional''' (defaults to using the first parameter)
|}
|}



2023年4月21日 (五) 15:27的版本

这是 Template:Iconbox模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

Usage

One item in a list of icons (achievements, disasters, etc.).

Parameter Description Status
1 (first unnamed parameter) Name of achievement required
2 (second unnamed parameter) In-game/Steam description of achievement required
en Steam成就英文名,用于对照查找,但是它不一定和图片名称完全一样。 optional
link Set to "on" to link to an article with the same name optional
extension Set to the file extension of the achievement image. optional (defaults to .png, ignored if image is provided)
image Name of image file (without File:) optional (defaults to using the first parameter)

Example

{{Iconbox|A House of My Own|Create a Cadet Branch of your Dynasty.|image=A house of my own achievement.png}}

A House of My Own icon
A House of My Own
Create a Cadet Branch of your Dynasty.


{{Iconbox|A Perfect Circle|Have only two parents, grandparents and great grandparents, counting absent ancestors as individual characters.|image=A perfect circl achievement.pnge|link=on}}

A Perfect Circle icon
Have only two parents, grandparents and great grandparents, counting absent ancestors as individual characters.