Template:Iconify/doc

< Template:Iconify
Pokewiz讨论 | 贡献2022年3月7日 (一) 02:19的版本 (merge from offical wiki)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
这是 Template:Iconify模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

This template can be used to add icons as generated by Template:Icon in front of words.

Use this template to standardise the order of elements in bonuses. It also suppresses alt text for improved accessibility.

Parameters

Parameter Description Required Default
1 The icon to use. For a list of icons see Template:Icon. required none
2 Width of the icon optional 24px
3 Quantity to add between the icon and text optional none
4 Name of template to apply to quantity (e.g. {{green}}) optional none
5
or text
Text to display optional same as first parameter

Examples

Wiki text Produces
{{iconify|Militarist}} 军国主义 Militarist 军国主义Militarist
{{iconify|Militarist|36px}} 军国主义 Militarist 军国主义Militarist
{{iconify|Minerals||+4}} 矿物 Minerals +4 矿物Minerals
{{iconify|Minerals||−4|red}} 矿物 Minerals  −4 矿物Minerals
{{iconify|influence||+1|green|monthly influence}} 影响力 Influence  +1 每月影响力Monthly Influence

List of available icons

: 
主条目:Template:Icon#List of available icons