小 (文本替换 - 替换“Category:Templates”为“Category:模板”) |
小无编辑摘要 |
||
(未显示另一用户的1个中间版本) | |||
第1行: | 第1行: | ||
<includeonly><div style="display:flex; align-items:center;">[[File:{{#if:{{{image|}}}|{{{image}}}|{{{1|Achievement name}}}.{{{extension|png}}}}}|{{{1}}} icon|64px]] | <includeonly><div style="display:flex; align-items:center;">[[File:{{#if:{{{image|}}}|{{{image}}}|{{{1|Achievement name}}}.{{{extension|png}}}}}|{{{1}}} icon|64px]] | ||
<div style="margin-left:5px;"><div style="font-weight: bold; font-size:larger;">{{#ifeq:{{{link}}}|on|[[{{{1}}}]]|{{{1}}}}}{{anchor|{{{1}}}}}</div><div style="line-height: 1.2em; font-style: italic; font-size:smaller;">{{{2|The description of the achievements}}}</div></div></div></includeonly><noinclude> | <div style="margin-left:5px;"><div style="font-weight: bold; font-size:smaller;">{{{en|}}}</div><div style="font-weight: bold; font-size:larger;">{{#ifeq:{{{link}}}|on|[[{{{1}}}]]|{{{1}}}}}{{anchor|{{{1}}}}}</div><div style="line-height: 1.2em; font-style: italic; font-size:smaller;">{{{2|The description of the achievements}}}</div></div></div></includeonly><noinclude> | ||
{{template doc}} | {{template doc}} | ||
[[Category:模板]] | [[Category:模板]] | ||
</noinclude><noinclude> | </noinclude><noinclude> | ||
[[en:Template:Iconbox]] | [[en:Template:Iconbox]]</noinclude> |
2023年4月21日 (五) 15:26的最新版本
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}}
{{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}}