Template:Focus

Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted

[阅读] [编辑]Template-info.png 模板文档

Overview

This template provide a way to simply and fastly write code for National focus pages, as it's simpler to write {{focus|fra|autoroutes}} than:
[[File:goal_generic_construct_infrastructure.png|Autoroutes|link=French_national_focus_tree#Autoroutes|36px]] [[French_national_focus_tree#Autoroutes|Autoroutes]]

Parameters

Parameter Required Notes Examples Comment
1 是 The country tag. GER, eng
2 是 An id from the game files or the name of the national focus. fra_devalue_the_franc, Devalue the Franc Prevered is to use ID as it make code more robust for future focus localization changes.
size No Use it, to change icon size. 22px, x22px Default 36px.
nolink No Use it, if text should not be linked to national focus page. on, 1, yes Default no.
text No Use it, to change displayed focus name. Ford Industry
icon No Use it, to change displayed icon. focus_rocketry If set, ignore iconid parameter.
iconid No Use it, if focus have multiple icons. 2, 3 Default 1. Only valid if focus have more than 1 icon.

Usage Examples

Code Result
{{focus|nor|NOR_a_new_norway}} Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted
{{focus|nor|NOR_a_new_norway|size=22px}} Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted
{{focus|nor|NOR_a_new_norway|nolink=on}} Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted
{{focus|nor|NOR_a_new_norway|text=Old Norway}} Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted
{{focus|nor|NOR_a_new_norway|icon=focus_NOR_approach_the_fatherland_league}} Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted
{{focus|nor|NOR_a_new_norway|iconid=2}} Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted

Exceptions

Some focuses may have the same localized name in one tree, to distinguish them use the following code:

Branch/Sub-Branch Focus Code Comment
Ethiopia
Boarding the Train Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|eth|International Brigades M}} M
A Callout to the World Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|eth|International Brigades C}} C
Italy
The Italian Social Republic Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ita|Italian Independence RSI}} RSI
The Italian Liberation War Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ita|Italian Independence RDS}} RDS
Lithuania
Reconvene the Seimas Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|lit|Claim Livonia S}} S
A King for Our People Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|lit|Claim Livonia M}} M
Poland
The Sanation Right Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|pol|Pan-Slavic Revanchism SR}} SR
The Romanov Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|pol|Pan-Slavic Revanchism R}} R
The Castle Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|pol|Join the Allies SC}} SC
The Hohenzollern/ The Commonwealth Claimant Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|pol|Join the Allies M}} M
The Hohenzollern/The Commonwealth Claimant Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|pol|Demand Slovakia M}} M
The Cossack-King Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|pol|Demand Slovakia P}} P
A Nationalist Constitution Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|pol|Demand Lithuania F}} F
The Cossack-King Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|pol|Demand Lithuania P}} P
A Nationalist Constitution Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|pol|Assert Eastern Claims F}} F
The Cossack-King Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|pol|Assert Eastern Claims P}} P
Soviet Union
Infrastructure Effort/Heavy Industry Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|sov|Transformation of Nature C}} C
Infrastructure Effort/Heavy Industry Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|sov|Transformation of Nature ALT}} ALT
The Left Opposition Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|sov|Organize the Wreckers C}} C
Beaten, but not Defeated Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|sov|Organize the Wreckers P}} P
United Kingdom
Encourage Colonial Elite Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|eng|Landward Fortifications S}} S
Encourage Colonial Elite Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|eng|Landward Fortifications H}} H
Austria
Gain Schutzbund Support/Intervention in Spain/Universität Wien Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|aus|Intervention in Spain CD}} CD
Totalitarian Safety Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|aus|Intervention in Spain H}} H
German Reich
Rebuild the Nation Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Rebuild the Nation B}} B
Rally the Wehrmacht Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Rebuild the Nation WW}} WW
Rebuild the Nation Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Fan Prussian Militarism B}} B
Monarchist Sentiment Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Fan Prussian Militarism WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Revive the Kaiserreich B}} B
Monarchist Sentiment Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Revive the Kaiserreich WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Rebuild the High Seas Fleet B}} B
Weltpolitik Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Rebuild the High Seas Fleet WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Our Place in the Sun B}} B
Weltpolitik Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Our Place in the Sun WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Prepare for the Next Blockade B}} B
Remilitarize the Rhineland Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Prepare for the Next Blockade WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Break the Anglo-French Colonial Hegemony B}} B
Weltpolitik Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Break the Anglo-French Colonial Hegemony WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Schlieffen Once More B}} B
Reject the Locarno Treaty Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Schlieffen Once More WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Prepare Italian Coup B}} B
Mitteleuropa Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Prepare Italian Coup WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Assassinate Mussolini B}} B
Mitteleuropa Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Assassinate Mussolini WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Rekindle Imperial Sentiment B}} B
Mitteleuropa Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Rekindle Imperial Sentiment WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Expatriate the Communists B}} B
Monarchist Sentiment Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Expatriate the Communists WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Accept British Naval Dominance B}} B
Weltpolitik Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Accept British Naval Dominance WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Carte Blanche for Alsace and French Colonies B}} B
Weltpolitik Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Carte Blanche for Alsace and French Colonies WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Bypass Maginot in the South B}} B
Reject the Locarno Treaty Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Bypass Maginot in the South WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Reinstate Imperial Possessions B}} B
Reject the Locarno Treaty Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Reinstate Imperial Possessions WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|See to the Eastern Front B}} B
See to the Eastern Front/Restore the Brest-Litovsk Borders Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|See to the Eastern Front WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Danzig for Guarantees B}} B
See to the Eastern Front/Restore the Brest-Litovsk Borders Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Danzig for Guarantees WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Safeguard the Baltic B}} B
See to the Eastern Front/Restore the Brest-Litovsk Borders Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Safeguard the Baltic WW}} WW
Revive the Kaiserreich Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Support the Finns B}} B
See to the Eastern Front/Restore the Brest-Litovsk Borders Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Support the Finns WW}} WW
Re-establish Free Elections (base game) Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Re-establish Free Elections B}} B
Re-establish Free Elections Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Re-establish Free Elections WW}} WW
Re-establish Free Elections (base game) Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|The Monarchy Compromise B}} B
Monarchist Sentiment Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|The Monarchy Compromise WW}} WW
Re-establish Free Elections (base game) Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Reverse the Brain Drain B}} B
Re-establish Free Elections Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Reverse the Brain Drain WW}} WW
Re-establish Free Elections (base game) Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Shared R&D Programs B}} B
Re-establish Free Elections Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Shared R&D Programs WW}} WW
Re-establish Free Elections (base game) Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|The Mannheim Project B}} B
Re-establish Free Elections Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|The Mannheim Project WW}} WW
Re-establish Free Elections (base game) Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Pool Technical Know-How B}} B
Re-establish Free Elections Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|ger|Pool Technical Know-How WW}} WW
Iran
xxx Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|per|Coastal Defense Initiative C}} C
Establish the Navy Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|per|Coastal Defense Initiative N}} N
British Raj (帝国坟场)
Tryst With Destiny Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|per|Education Efforts 1}} 1
Azad Hind Lua错误:无法创建进程:proc_open(/dev/null): Failed to open stream: Operation not permitted {{focus|per|Education Efforts 2}} 2
Or more simply use the focus ID without the additional suffix.