(merge from official wiki) |
No edit summary |
||
| Line 2: | Line 2: | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
== Overview == | == Overview == | ||
This template provide a way to simply and fastly write code for [[National focus]] pages, as it's simpler to write <code><nowiki>{{focus|fra|autoroutes | This template provide a way to simply and fastly write code for [[National focus]] pages, as it's simpler to write <code><nowiki>{{focus|fra|autoroutes}}</nowiki></code> than:<br> | ||
<code><nowiki>[[File:goal_generic_construct_infrastructure.png|Autoroutes|link=French_national_focus_tree#Autoroutes|36px]] [[French_national_focus_tree#Autoroutes|Autoroutes]]</nowiki></code> | <code><nowiki>[[File:goal_generic_construct_infrastructure.png|Autoroutes|link=French_national_focus_tree#Autoroutes|36px]] [[French_national_focus_tree#Autoroutes|Autoroutes]]</nowiki></code> | ||
| Line 16: | Line 16: | ||
| size || style="text-align: center;" | {{icon|no}} || Use it, to change icon size. || <code>22px</code>, <code>x22px</code> || Default <code>36px</code>. | | size || style="text-align: center;" | {{icon|no}} || Use it, to change icon size. || <code>22px</code>, <code>x22px</code> || Default <code>36px</code>. | ||
|- | |- | ||
| | | nolink || style="text-align: center;" | {{icon|no}} || Use it, if text should not be linked to national focus page. || <code>on</code>, <code>1</code>, <code>yes</code> || Default <code>no</code>. | ||
|- | |- | ||
| text || style="text-align: center;" | {{icon|no}} || Use it, to change displayed focus name. || <code>Ford Industry</code> || | | text || style="text-align: center;" | {{icon|no}} || Use it, to change displayed focus name. || <code>Ford Industry</code> || | ||
| Line 36: | Line 36: | ||
| {{focus|nor|NOR_a_new_norway|size=22px}} | | {{focus|nor|NOR_a_new_norway|size=22px}} | ||
|- | |- | ||
| <code><nowiki>{{focus|nor|NOR_a_new_norway| | | <code><nowiki>{{focus|nor|NOR_a_new_norway|nolink=on}}</nowiki></code> | ||
| {{focus|nor|NOR_a_new_norway| | | {{focus|nor|NOR_a_new_norway|nolink=on}} | ||
|- | |- | ||
| <code><nowiki>{{focus|nor|NOR_a_new_norway|text=Old Norway}}</nowiki></code> | | <code><nowiki>{{focus|nor|NOR_a_new_norway|text=Old Norway}}</nowiki></code> | ||
| Line 178: | Line 178: | ||
| <code><nowiki>{{focus|eng|Landward Fortifications H}}</nowiki></code> | | <code><nowiki>{{focus|eng|Landward Fortifications H}}</nowiki></code> | ||
| {{Hover|Hong Kong|H}} | | {{Hover|Hong Kong|H}} | ||
|} | |} | ||
Or more simply use the focus ID without the additional suffix. | Or more simply use the focus ID without the additional suffix. | ||
Revision as of 00:17, 16 June 2025
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 |
| |||
| 2 |
| |||
| size |
| |||
| nolink |
| |||
| text |
| |||
| icon |
| |||
| iconid |
|
Usage Examples
| Code | Result |
|---|---|
{{focus|nor|NOR_a_new_norway}}
|
|
{{focus|nor|NOR_a_new_norway|size=22px}}
|
|
{{focus|nor|NOR_a_new_norway|nolink=on}}
|
|
{{focus|nor|NOR_a_new_norway|text=Old 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 | {{focus|eth|International Brigades M}}
|
M | |
| A Callout to the World | {{focus|eth|International Brigades C}}
|
C | |
| Italy | |||
| The Italian Social Republic | {{focus|ita|Italian Independence RSI}}
|
RSI | |
| The Italian Liberation War | {{focus|ita|Italian Independence RDS}}
|
RDS | |
| Lithuania | |||
| Reconvene the Seimas | {{focus|lit|Claim Livonia S}}
|
S | |
| A King for Our People | {{focus|lit|Claim Livonia M}}
|
M | |
| Poland | |||
| The Sanation Right | {{focus|pol|Pan-Slavic Revanchism SR}}
|
SR | |
| The Romanov | {{focus|pol|Pan-Slavic Revanchism R}}
|
R | |
| The Castle | {{focus|pol|Join the Allies SC}}
|
SC | |
| The Hohenzollern/ The Commonwealth Claimant | {{focus|pol|Join the Allies M}}
|
M | |
| The Hohenzollern/The Commonwealth Claimant | {{focus|pol|Demand Slovakia M}}
|
M | |
| The Cossack-King | {{focus|pol|Demand Slovakia P}}
|
P | |
| A Nationalist Constitution | {{focus|pol|Demand Lithuania F}}
|
F | |
| The Cossack-King | {{focus|pol|Demand Lithuania P}}
|
P | |
| A Nationalist Constitution | {{focus|pol|Assert Eastern Claims F}}
|
F | |
| The Cossack-King | {{focus|pol|Assert Eastern Claims P}}
|
P | |
| Soviet Union | |||
| Infrastructure Effort/Heavy Industry | {{focus|sov|Transformation of Nature C}}
|
C | |
| Infrastructure Effort/Heavy Industry | {{focus|sov|Transformation of Nature ALT}}
|
ALT | |
| The Left Opposition | {{focus|sov|Organize the Wreckers C}}
|
C | |
| Beaten, but not Defeated | {{focus|sov|Organize the Wreckers P}}
|
P | |
| United Kingdom | |||
| Encourage Colonial Elite | {{focus|eng|Landward Fortifications S}}
|
S | |
| Encourage Colonial Elite | {{focus|eng|Landward Fortifications H}}
|
H | |
Or more simply use the focus ID without the additional suffix.