这是Module:Focus的文档页面
Implements
- 重定向 Template:Tlx.
Submodules
The following modules are used as needed.
| Submodule | Tags |
|---|---|
| Module:Focus/generic | GENERIC, WARLORD, HOA |
| Module:Focus/tfv | AST, CAN, SAF, NZL |
| Module:Focus/dod | CZE, HUN, ROM, YUG |
| Module:Focus/wtt | GER, JAP, CHI, PRC, MAN, CHISHARED |
| Module:Focus/mtg | ENG, USA, HOL, MEX, |
| Module:Focus/lar | FRA, FRE, VIC, POR, SPR, SPA |
| Module:Focus/bftb | BUL, GRE, TUR |
| Module:Focus/nsb | SOV, POL, EST, LAT, LIT, BALTIC |
| Module:Focus/bba | ITA, ETH, SWI |
| Module:Focus/aat | DEN, FIN, ICE, NOR, SWE, NORDIC |
| Module:Focus/toa | ARG, BRA, CHL, PRU, URG, GUAY, SMB |
| Module:Focus/gtd | AUS, BEL, COG, BELCOG, HUN2, HABSBURG |
| Module:Focus/goe | AFG, IRQ, RAJ2, PER |
Adding/editing focuses
First, go to the appropriate subpage for the country you want to edit.
- Add
To keep the order, find focus above/below the one you want to add.
To add a focus, start with the country tag followed by the focus ID in square brackets, example: sov['sov_infrastructure_effort_nsb'] = { }
Then, based on the parameters listed below, add an entry.
- Edit
To edit the focus, find it and simply edit it.
Parameters
| Parameter | Required | Type | Example | Note |
|---|---|---|---|---|
| name | Yes | String | "Army Effort" |
Focus name from localization file. |
| icon | Yes | String Table |
"goal_generic_allies_build_infantry" |
Focus icon. Focus icons. [1] is default. |
| suffix | No | String | "C" |
Should be used only if 2 or more focuses have the same name. Remember to update Template:Focus/doc. |
| linkName | No | String | "Develop Capital" |
In case when anchor name in nf page is different than localization name. |
| page | No | String | "ger" |
Set focus page. See: Module:Focus/Config (cfg.pages) |
| continuous | No | Bool | true |
If focus is from continuous focus file. |
Example entry: fra['fra_autoroutes'] = { name = "Autoroutes", icon = "goal_generic_construct_infrastructure" }
The national focus page should be placed at the end of the module, right after the loops.