Template:Icon/doc

模板文档· 约 7 分钟阅读

这是的模板文档 。

当直接浏览时,使用变量 可能会失效,请不要-{zh-hans:使用硬编码来代替;zh-hant:寫死}- 页面名或地址。

This template can be used for embedding icons in the EU4 wiki, thus making them more colorful, easy to read and standardized. The available icons link to the concept they represent.

参数[编辑]

1
第一个参数是必须的,表明这个图标的内容
2
第二个参数是图标的尺寸,预设值是 28px

用法[编辑]

格式:
{{icon|识别符}}} or {{icon|识别符|尺寸}}

输入识别符显示对应图标,一切可用识别符可在下表中查阅。

规范: 图标应插入在表述事物之前,而不是之后。 无论与中/英文并列使用均需要在前后分别空出一个半角空格。但遇到前一个字符是中文符号或是一行开始时无需在前,只需在后空出一个半角空格。

举例:
{{icon|soi}}}将会得到伊斯兰之剑.

改善模版[编辑]

该模版为高流量模版,且大幅影响百科显示效果,故已进行保护。若您对该模版有任何意见或建议请在讨论页面提出。

可用的图标[编辑]

杂项[编辑]

杂项

yes

no

time

unknown

拓展包[编辑]

拓展包

ck2

soi

lor

si

tr

tog

soa

roi

拓展包

cm

wol

hl

con

trd

mnm

jd

hf

单位[编辑]

单位

archer, archers 弓箭手 

camel cav, camel cavalry 骆驼兵

heavy cav, heavy cavalry 重骑兵

heavy inf, heavy infantry 重步兵

horse archer, horse archers 弓骑兵

light cav, light cavalry 轻骑兵

light inf, light infantry 轻步兵

pikemen 长枪兵

ship, ships 船 运输船

war elephant, war elephants 战象

中文wiki补充[编辑]

宗教

african

bon, bön

hl

buddhist

catholic

hellenic

hindu

ibadi

hellenic

hindu

ibadi

jain

judaism

miaphysite

nestorian

germanic, norse

orthodox

pagan

taoist

tengri

sunni

shiite, shia

romuva

zoroastrian

zunist

gold

piety

prestige

查看此模板的原始 Wikitext 源代码
▸
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
    <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This template can be used for embedding icons in the EU4 wiki, thus making them more colorful, easy to read and standardized. The available icons link to the concept they represent.
<div class="toclimit-2">__TOC__</div>
== 参数 ==
;1
:第一个参数是必须的,表明这个图标的内容
;2
:第二个参数是图标的尺寸,预设值是 28px

== 用法 ==

;格式:
:<code><nowiki>{{icon|识别符}}</nowiki>}</code> or <code><nowiki>{{icon|识别符|尺寸}}</nowiki></code>

输入识别符显示对应图标,一切可用识别符可在下表中查阅。

规范:
图标应插入在表述事物之前,而不是之后。
无论与中/英文并列使用均需要在前后分别空出一个半角空格。但遇到前一个字符是中文符号或是一行开始时无需在前,只需在后空出一个半角空格。

;举例:
:<code><nowiki>{{icon|soi}}</nowiki>}</code>将会得到{{icon|soi}}.

== 改善模版 ==
该模版为高流量模版,且大幅影响百科显示效果,故已进行保护。若您对该模版有任何意见或建议请在[[{{TALKSPACE}}:{{PAGENAME}}|讨论页面]]提出。

== 可用的图标 ==
{| class="toccolours"
! text-align="center" | Contents
|-
|
[[#Miscellaneous|4.1 杂项]]<br>
[[#Expansions|4.2 拓展包]]<br>
[[#Units|4.3 单位]]<br>
[[#Units|4.4 中文wiki补充]]<br>
|}

=== 杂项 ===
<div style="width:250px; float:left; margin-right: 10px;">
{|class="wikitable" width=250px
!colspan=2| 杂项
|-
| yes || width=30px | {{icon|yes}}
|-
| no || {{icon|no}}
|-
| time || {{icon|time}}
|-
| unknown || {{icon|unknown}}
|}
</div>
{{clear}}

=== 拓展包 ===
{{box wrapper}}
{| class="wikitable" style="width:250px; margin-right:1em"
! colspan=2 | 拓展包
|-
| ck2 || width=30px | {{icon|ck2}}
|-
| soi || {{icon|soi}}
|-
| lor || {{icon|lor}}
|-
| si || {{icon|si}}
|-
| tr || {{icon|tr}}
|-
| tog || {{icon|tog}}
|-
| soa || {{icon|soa}}
|-
| roi || {{icon|roi}}
|}

{| class="wikitable" style="width:250px; margin-right:1em"
! colspan=2 | 拓展包
|-
| cm || width=30px | {{icon|cm}}
|-
| wol || {{icon|wol}}
|-
| hl || {{icon|hl}}
|-
| con || {{icon|con}}
|-
| trd || {{icon|trd}}
|-
| mnm || {{icon|mnm}}
|-
| jd || {{icon|jd}}
|-
| hf || {{icon|hf}}
|}
{{end box wrapper}}

=== 单位 ===
{{box wrapper}}
{|class="wikitable" style="width:250px; margin-right:1em"
!colspan=2| 单位
|-
| archer, archers 弓箭手 || width=30px | {{icon|archers}}
|-
| camel cav, camel cavalry 骆驼兵|| {{icon|camel cavalry}}
|-
| heavy cav, heavy cavalry 重骑兵|| {{icon|heavy cavalry}}
|-
| heavy inf, heavy infantry 重步兵|| {{icon|heavy infantry}}
|-
| horse archer, horse archers 弓骑兵|| {{icon|horse archers}}
|-
| light cav, light cavalry 轻骑兵|| {{icon|light cavalry}}
|-
| light inf, light infantry 轻步兵|| {{icon|light infantry}}
|-
| pikemen 长枪兵|| {{icon|pikemen}}
|-
| ship, ships 船 运输船|| {{icon|ships}}
|-
| war elephant, war elephants 战象|| {{icon|war elephants}}
|}

{{end box wrapper}}

=== 中文wiki补充 ===
{{box wrapper}}
{| class="wikitable" style="width:250px; margin-right:1em"
! colspan=2 | 宗教
|-
| african || width=30px | {{icon|african}}
|-
| bon, bön || {{icon|bön}}
|-
| hl || {{icon|hl}}
|-
| buddhist || {{icon|buddhist}}
|-
| catholic || {{icon|catholic}}
|-
| hellenic || {{icon|hellenic}}
|-
| hindu || {{icon|hindu}}
|-
| ibadi || {{icon|ibadi}}
|-
| hellenic || {{icon|hellenic}}
|-
| hindu || {{icon|hindu}}
|-
| ibadi || {{icon|ibadi}}
|-
| jain || {{icon|jain}}
|-
| judaism || {{icon|judaism}}
|-
| miaphysite || {{icon|miaphysite}}
|-
| nestorian || {{icon|nestorian}}
|-
| germanic, norse || {{icon|norse}}
|-
| orthodox || {{icon|orthodox}}
|-
| pagan || {{icon|pagan}}
|-
| taoist || {{icon|taoist}}
|-
| tengri || {{icon|tengri}}
|-
| sunni || {{icon|sunni}}
|-
| shiite, shia || {{icon|shia}}
|-
| romuva || {{icon|romuva}}
|-
| zoroastrian || {{icon|zoroastrian}}
|-
| zunist || {{icon|zunist}}
|-
| gold || {{icon|gold}}
|-
| piety || {{icon|piety}}
|-
| prestige || {{icon|prestige}}
|}

{{end box wrapper}}
分类:模板文档