模板:Focus

This template uses the following modules:
Module:Focus

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|link=on}} 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.
link No Use it, if text should 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}} A New NorwayA New Norway
{{focus|nor|NOR_a_new_norway|size=22px}} A New NorwayA New Norway
{{focus|nor|NOR_a_new_norway|link=on}} A New NorwayA New Norway
{{focus|nor|NOR_a_new_norway|text=Old Norway}} A New NorwayOld Norway
{{focus|nor|NOR_a_new_norway|icon=focus_NOR_approach_the_fatherland_league}} A New NorwayA New Norway
{{focus|nor|NOR_a_new_norway|iconid=2}} A New NorwayA New Norway

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 International BrigadesInternational Brigades {{focus|eth|International Brigades M}} M
A Callout to the World International BrigadesInternational Brigades {{focus|eth|International Brigades C}} C
Italy
The Italian Social Republic Italian IndependenceItalian Independence {{focus|ita|Italian Independence RSI}} RSI
The Italian Liberation War Italian IndependenceItalian Independence {{focus|ita|Italian Independence RDS}} RDS
Lithuania
Reconvene the Seimas Claim LivoniaClaim Livonia {{focus|lit|Claim Livonia S}} S
A King for Our People Claim LivoniaClaim Livonia {{focus|lit|Claim Livonia M}} M
Poland
The Sanation Right Pan-Slavic RevanchismPan-Slavic Revanchism {{focus|pol|Pan-Slavic Revanchism SR}} SR
The Romanov Pan-Slavic RevanchismPan-Slavic Revanchism {{focus|pol|Pan-Slavic Revanchism R}} R
The Castle Join the AlliesJoin the Allies {{focus|pol|Join the Allies SC}} SC
The Hohenzollern/ The Commonwealth Claimant Join the AlliesJoin the Allies {{focus|pol|Join the Allies M}} M
The Hohenzollern/The Commonwealth Claimant Demand SlovakiaDemand Slovakia {{focus|pol|Demand Slovakia M}} M
The Cossack-King Demand SlovakiaDemand Slovakia {{focus|pol|Demand Slovakia P}} P
A Nationalist Constitution Demand LithuaniaDemand Lithuania {{focus|pol|Demand Lithuania F}} F
The Cossack-King Demand LithuaniaDemand Lithuania {{focus|pol|Demand Lithuania P}} P
A Nationalist Constitution Assert Eastern ClaimsAssert Eastern Claims {{focus|pol|Assert Eastern Claims F}} F
The Cossack-King Assert Eastern ClaimsAssert Eastern Claims {{focus|pol|Assert Eastern Claims P}} P
Soviet Union
Infrastructure Effort/Heavy Industry Transformation of NatureTransformation of Nature {{focus|sov|Transformation of Nature C}} C
Infrastructure Effort/Heavy Industry Transformation of NatureTransformation of Nature {{focus|sov|Transformation of Nature ALT}} ALT
The Left Opposition Organize the WreckersOrganize the Wreckers {{focus|sov|Organize the Wreckers C}} C
Beaten, but not Defeated Organize the WreckersOrganize the Wreckers {{focus|sov|Organize the Wreckers P}} P
United Kingdom
Encourage Colonial Elite Landward FortificationsLandward Fortifications {{focus|eng|Landward Fortifications S}} S
Encourage Colonial Elite Landward FortificationsLandward Fortifications {{focus|eng|Landward Fortifications H}} H
Or more simply use the focus ID without the additional suffix.