Template:图标/doc

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

Overview

Should be the go-to for inline text-sized icons on this wiki.

Parameters

{{Icon|icon name|text|width=22px}}

Parameter Info Required Notes Examples
1 icon name Required The concept you want an icon for infantry, heavy tank
2 text Optional Text linked to be displayed alongside the icon. Leave it blank if you don't want any text. Write 1 if you want the default text that goes with the icon 1, Paradox
width size Optional The size of the image, as in MediaWiki image syntax. Defaults to 22px, except for unit icons, which default to x22px (22px height) instead. 30px

Usage Examples

Code Result
{{Icon|infantry}} Infantry
{{Icon|lighttank|1}} Light tankLight tank
{{Icon|super heavy tank|Bananas}} Super heavy tankBananas

Index

The following icons are understood by the template. Feel free to add more in the source!

Common

Expansions
Icon Concept Code
钢铁雄心IV Hearts of Iron 4 hoi4
共赴胜利 Together for Victory tfv
玉碎瓦全 Death or Dishonor dod
唤醒勇虎 Waking the Tiger wtt
炮手就位 Man the Guns mtg
抵抗运动 La Résistance lar
Miscellaneous
Icon Concept Code
是 Yes yes
No No no
Time Time time
Unknown Unknown unknown
关系 Opinion opinion
战争目标 War goal cb, war goal
全球紧张度 World Tension world tension
互不侵犯条约 Non aggression pact nap, non-aggression pact
Autonomy Autonomy autonomy

Resources

Strategic resources
Icon Concept Code
Aluminum Aluminum aluminum
Chromium Chromium chromium
Oil Oil oil
橡胶 Rubber rubber
Steel Steel steel
Tungsten Tungsten tungsten
National resources
Icon Concept Code
空军经验 Air Experience air exp
陆军经验 Army Experience army exp
海军经验 Navy Experience navy exp
人力 Manpower manpower
人口 Population pop, population
胜利点 Victory point vp, victory point
政治点数 Political Power political power
稳定度 Stability stability
战争支持度 War support war support
建造花费 Construction cost construction cost
生产花费 Production cost production cost

Ideology

Icon Concept Code
共产主义 Communism
Communist
communism
communist
民主主义 Democracy
Democratic
democracy
democratic
法西斯主义 Fascism
Fascist
fascism
fascist
中立主义 Neutrality
Non-Aligned
Unaligned
neutrality
non-aligned
unaligned
无政府主义 Anarchism
Anarchist
anarchism
anarchist
Unknown Ideology Unknown Ideology unknownid

Laws

Conscription laws
Icon Concept Code
非军事化国家 Disarmed Nation disarmed nation
志愿兵役制 Volunteer Only volunteer only
Limited Conscription Limited Conscription limited conscription
Extensive Conscription Extensive Conscription extensive conscription
按要求服兵役 Service by Requirement service by requirement
榨干他们 Scraping the Barrel scraping the barrel
Trade laws
Icon Concept Code
Closed Economy Closed Economy closed economy
Limited Exports Limited Exports limited exports
Export Focus Export Focus export focus
Free Trade Free Trade free trade
Economy laws
Icon Concept Code
Undisturbed Isolation Undisturbed Isolation undisturbed isolation
Isolation Isolation isolation
Civilian Economy Civilian Economy civilian economy
Early Mobilization Early Mobilization early mobilization
Partial Mobilization Partial Mobilization partial mobilization
战时经济 War Economy war economy
Total Mobilization Total Mobilization total mobilization
Collectivized Society Collectivized Society collectivized society

Buildings

Icon Concept Code
建筑槽 Building slot building slot
军用工厂 Military Factory mic, military factory
民用工厂 Civilian Factory cic, civilian factory
海军船坞 Naval Dockyard nic, naval factory, naval dockyard
基础设施 Infrastructure infra, infrastructure
防空火炮 Anti-air (building) static aa, static anti air, static anti-air, aa building, anti air building, anti-air building
空军基地 Air base air base
海军基地 Naval base naval base
合成炼油厂 Synthetic refinery synth, synthetic, refinery, synthetic refinery
火箭基地 Rocket site rocket site
核反应堆 Nuclear reactor reactor, nuclear reactor
陆上要塞 Land fort land fort
海岸要塞 Coastal fort coastal fort

Units

Codes given are examples. More are supported.

Infantry
Icon Concept Code
Infantry Infantry inf, infantry
Marine Marines marines
Paratroop Paratroopers paratroopers
Mountain Mountaineers mountaineers
Mobile
Icon Concept Code
Cavalry Cavalry cav, cavalry
Motorized Motorized mot, motorized
Mechanized Mechanized mech, mechanized
Artillery
Icon Concept Code
Anti-air Anti-Air aa, anti-air
Anti-tank Anti-Tank at, anti-tank
Artillery Artillery arty, artillery
Rocket Artillery Rocket Artillery rart, rocket artillery
Motorized Rocket Artillery Motorized Rocket Artillery mot rart, motorized rocket artillery
Attachments
Icon Concept Code
Engineers Engineers eng, engineers
Field hospital Field Hospital fh, field hospital
Logistics company Logistics Company logistics, logistics company
Maintenance company Maintenance Company maintenance, maintenance company
Military police Military Police mp, military police
Recon Recon Company recon, recon company
Signal company Signal Company signal, signal comapny
Support Anti-air Support Anti-Air sup aa, support anti-air
Support Anti-tank Support Anti-Tank sup at, support anti-tank
Support Artillery Support Artillery sup art, support artillery
Support Rocket Artillery Support Rocket Artillery sup r art, support rocket artillery
Armor
Icon Concept Code
Light tank Light Tank light tank, light armor
Light SP Artillery Light SP Artillery light sp artillery, light sp art
Light Tank Destroyer Light Tank Destroyer light tank destroyer, light td
Light SP Anti-Air Light SP Anti-Air light sp anti-air, light sp aa
Medium tank Medium Tank medium tank, med armor
Medium SP Artillery Medium SP Artillery medium sp artillery, med sp art
Medium Tank Destroyer Medium Tank Destroyer medium tank destroyer, medium td
Medium SP Anti-Air Medium SP Anti-Air medium sp anti-air, medium sp aa
Heavy tank Heavy Tank heavy tank, heavy armor
Heavy SP Artillery Heavy SP Artillery heavy sp artillery, heavy sp art
Heavy Tank Destroyer Heavy Tank Destroyer heavy tank destroyer, heavy td
Heavy SP Anti-Air Heavy SP Anti-Air heavy sp anti-air, heavy sp aa
Super heavy tank Super Heavy Tank super heavy tank, s heavy armor
Super Heavy SP Artillery Super Heavy SP Artillery super heavy sp artillery, s heavy sp art
Super Heavy Tank Destroyer Super Heavy Tank Destroyer super heavy tank destroyer, s heavy td
Super Heavy SP Anti-Air Super Heavy SP Anti-Air super heavy sp anti-air, s heavy sp aa
Modern tank Modern Tank modern tank, modern armor
Modern SP Artillery Modern SP Artillery modern sp artillery, modern sp art
Modern Tank Destroyer Modern Tank Destroyer modern tank destroyer, modern td
Modern SP Anti-Air Modern SP Anti-Air modern sp anti-air, modern sp aa