Template:Iconbox/doc:修订间差异

(创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> __NOTOC__ == Usage == One item in a list of icons (achievements, disasters, etc.). {| class="wikitable" ! Parameter ! Description ! Status |- | 1 (first unnamed parameter) || Name of achievement || '''required''' |- | 2 (second unnamed parameter) || In-game/Steam description of achieve…”)
 
无编辑摘要
 
第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 -->
__NOTOC__
__NOTOC__
== Usage ==
== 用法 ==
 
One item in a list of icons (achievements, disasters, etc.).
One item in a list of icons (achievements, disasters, etc.).


{| class="wikitable"
:<code><nowiki>{{Iconbox|name|description}}</nowiki></code>
! Parameter
 
! Description
:<code><nowiki>{{Iconbox|name|description|link=on}}</nowiki></code>
! Status
 
|-
en参数是英文名,用于对照查找,但是它不一定和图片名称完全一样。
| 1 (first unnamed parameter) || Name of achievement || '''required'''
|-
| 2 (second unnamed parameter) || In-game/Steam description of achievement || '''required'''
|-
| 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)
|}


== Examples ==
== Examples ==
<code><nowiki>{{Iconbox|A Little Bit of TLC|Have 6,000 citizens treated at medical clinics or hospitals in a single city.|image=Achievement A Little Bit of TLC.png}}</nowiki></code>
<code><nowiki>{{Iconbox| 一点关怀|en=A Little Bit of TLC|Have 6,000 citizens treated at medical clinics or hospitals in a single city.|image=Achievement A Little Bit of TLC.png}}</nowiki></code>


{{Iconbox|A Little Bit of TLC|Have 6,000 citizens treated at medical clinics or hospitals in a single city.|image=Achievement A Little Bit of TLC.png}}
{{Iconbox| 一点关怀|en=A Little Bit of TLC|Have 6,000 citizens treated at medical clinics or hospitals in a single city.|image=Achievement A Little Bit of TLC.png}}





2023年11月11日 (六) 16:18的最新版本

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

用法

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

{{Iconbox|name|description}}
{{Iconbox|name|description|link=on}}

en参数是英文名,用于对照查找,但是它不一定和图片名称完全一样。

Examples

{{Iconbox|一点关怀|en=A Little Bit of TLC|Have 6,000 citizens treated at medical clinics or hospitals in a single city.|image=Achievement A Little Bit of TLC.png}}

一点关怀 的图标
A Little Bit of TLC
一点关怀
Have 6,000 citizens treated at medical clinics or hospitals in a single city.


{{Iconbox|All Smiles|Have at least 1,000 citizens and an average happiness rating of 75%.|image=Achievement All Smiles.png|link=on}}

All Smiles 的图标
Have at least 1,000 citizens and an average happiness rating of 75%.

{{Iconbox|Gravel Road|A narrow and slow speed unpaved road for vehicles, suitable for city outskirts and rural areas.|image=Road_Gravel_Road.png}}</code>

Gravel Road 的图标
Gravel Road
A narrow and slow speed unpaved road for vehicles, suitable for city outskirts and rural areas.