Template:Iconbox:修订间差异

(试验一下)
无编辑摘要
第1行: 第1行:
<includeonly><div class="tleft" style="margin:0px; margin-right:5px; clear:none">[[File:{{#if:{{{image|}}}|{{{image}}}|{{{en|Achievement name}}}.{{{extension|png}}}}}|{{{1}}} icon|{{{3}}}]]</div><div style="font-weight: bold; font-size:smaller;">{{{en|}}}{{anchor|{{{en}}}}}</div><big>'''{{#ifeq:{{{link}}}|on|[[{{{1}}}]]|{{{1}}}}}'''{{anchor|{{{1}}}}}</big>
<includeonly><div class="tleft" style="margin:0px; margin-right:5px; clear:none">[[File:{{#if:{{{image|}}}|{{{image}}}|{{{en|Achieve}}}.{{{extension|png}}}}}|{{{1}}} 的图标|{{{3|}}}]]</div><div style="font-weight: bold; font-size:smaller;">{{{en|}}}{{anchor|{{{en}}}}}</div><big>'''{{#ifeq:{{{link}}}|on|[[{{{1}}}]]|{{{1}}}}}'''{{anchor|{{{1}}}}}</big>
<div style="line-height: 1.2em;"><small>{{{2|The description of the achievements}}}</small></div></includeonly><noinclude>
<div style="line-height: 1.2em;"><small>{{{2| 该成就的描述}}}</small></div></includeonly><noinclude>
{{template doc}}
{{template doc}}
[[Category:模板]][[en:{{FULLPAGENAME}}]]
[[Category:模板]]
</noinclude>
</noinclude>

2020年7月6日 (一) 19:47的版本

[阅读] [编辑]Template-info.png 模板文档

Usage

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

Parameter Description Status
1 (first unnamed parameter) Name of item required
2 (second unnamed parameter) In-game description of item required
3 (third unnamed parameter) set size of image in "px" optional (defaults to image size)
image Name of image file (without File:) optional (defaults to using the first parameter)
extension Set to the file extension of the achievement image. optional (defaults to .png, ignored if image is provided)
link Set to "on" to link to an article with the same name optional

Example

{{Iconbox|Cincinnatus|Appoint a dictator as a Republic and have him step down.}}

Achieve.png
Cincinnatus
Appoint a dictator as a Republic and have him step down.

{{Iconbox|Tribal Concord|Change a law in a Tribal country.|link=on|64px}}

Tribal Concord的图标
Tribal Concord
Change a law in a Tribal country.