Template:Iconbox/doc:修订间差异

(文本替换 - 替换“{{template doc page viewed directly}}</noinclude>”为“{{template doc page viewed directly}}</noinclude>[[en:{{FULLPAGENAME}}]]”)
→‎Example
 
(未显示同一用户的3个中间版本)
第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)
|}
|}


第29行: 第32行:




<code><nowiki>{{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}}</nowiki></code>
<code><nowiki>{{Iconbox| 奸恶相向何时了|Have only two parents, grandparents and great grandparents, counting absent ancestors as individual characters.|en=A Perfect Circle|image=A perfect circl achievement.png|link=on}}</nowiki></code>


{{Iconbox|A Perfect Circle|Have only two parents, grandparents and great grandparents, counting absent ancestors as individual characters.|image=A perfect circle achievement.png|link=on}}
{{Iconbox| 奸恶相向何时了|Have only two parents, grandparents and great grandparents, counting absent ancestors as individual characters.|en=A Perfect Circle|image=A perfect circle achievement.png|link=on}}


<noinclude>
<noinclude>

2023年4月21日 (五) 15:29的最新版本

这是 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|奸恶相向何时了|Have only two parents, grandparents and great grandparents, counting absent ancestors as individual characters.|en=A Perfect Circle|image=A perfect circl achievement.png|link=on}}

奸恶相向何时了 icon
A Perfect Circle
Have only two parents, grandparents and great grandparents, counting absent ancestors as individual characters.