Template:Icon/doc:修订间差异

(创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW T…”)
 
无编辑摘要
第32行: 第32行:
| civ, civic power || {{icon|civ}}
| civ, civic power || {{icon|civ}}
|-
|-
| mil, military power || {{icon|mil}}
| mil, military power || {{icon|mil}}
|-
|-
| ora, oratory power || {{icon|ora}}
| ora, oratory power || {{icon|ora}}

2019年3月9日 (六) 14:34的版本

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

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.

Parameters

1
The first parameter is the identifier for the icon. It has no default value and is always required.
2
The second parameter is the width of the icon. It is optional. The default value is normally 28px, for advisor icons 77px, for attitude icons and rebel icons 24px and for building icons 48px.

Usage

Syntax
{{icon|identifier}} or {{icon|identifier|width}}

Insert the relevant identifier in the above syntax. The available identifier can be found in the table below.

Example
{{icon|mil}} will generate Military power.png.

Improve this template

This template is protected due to high traffic. If you have suggestions for improvements or extensions please note them on the talk page.

List of available icons

Common

Power
all power, all power costs all_power_cost修正
civ, civic power Civic power.png
mil, military power Military power.png
ora, oratory power Oratory power.png
rel, religious power Religious power.png
Unit types
archers Unit archers.png
camels Goods camel.png
cavalry (unrecognized string “cavalry” for Template:Icon)
chariots Unit chariots.png
heavy infantry Unit heavy infantry.png
horse archers Unit horse archers.png
light cavalry Unit light cavalry.png
light infantry, militia Unit light infantry.png
war elephants Unit war elephants.png