CfgGroups – Arma 2

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Horizontoc}}" to "{{TOC|horizontal}}")
m (Remove Horizontoc usage)
Line 905: Line 905:
  local _cfgGroups = configFile >> "CfgGroups";
  local _cfgGroups = configFile >> "CfgGroups";
   
   
  "{{<nowiki/>Horizontoc}}" call _addLine;
  "{{<nowiki/>TOC|horizontal}}" call _addLine;
   
   
  for "_sideindex" from 0 to (count _cfgGroups -1) do
  for "_sideindex" from 0 to (count _cfgGroups -1) do

Revision as of 16:01, 29 December 2020

BLUFOR

config: West

USMC

config: USMC

Infantry
config: Infantry
Rifle Squad
config: USMC_InfSquad
Composition:
  1. USMC_Soldier_SL
  2. USMC_Soldier_TL
  3. USMC_Soldier_AR
  4. USMC_Soldier_LAT
  5. USMC_Soldier
  6. USMC_Soldier_TL
  7. USMC_Soldier_AR
  8. USMC_Soldier_LAT
  9. USMC_Soldier
  10. USMC_Soldier_TL
  11. USMC_Soldier_AR
  12. USMC_Soldier_LAT
  13. USMC_Soldier
Fire Team
config: USMC_FireTeam
Composition:
  1. USMC_Soldier_TL
  2. USMC_Soldier_AR
  3. USMC_Soldier_LAT
  4. USMC_Soldier
Fire Team (MG)
config: USMC_FireTeam_MG
Composition:
  1. USMC_Soldier_TL
  2. USMC_Soldier_MG
  3. USMC_Soldier_AR
  4. USMC_Soldier_LAT
Fire Team (AT)
config: USMC_FireTeam_AT
Composition:
  1. USMC_Soldier_TL
  2. USMC_Soldier_AR
  3. USMC_Soldier_AT
  4. USMC_Soldier_LAT
Fire Team (Support)
config: USMC_FireTeam_Support
Composition:
  1. USMC_Soldier_TL
  2. USMC_Soldier_AR
  3. USMC_Soldier_LAT
  4. USMC_Soldier_Medic
Heavy AT Team
config: USMC_HeavyATTeam
Composition:
  1. USMC_Soldier_HAT
  2. USMC_Soldier_AT
  3. USMC_Soldier_LAT
Sniper Team
config: USMC_SniperTeam
Composition:
  1. USMC_SoldierS_Sniper
  2. USMC_SoldierS_Spotter
Force Recon Team
config: USMC_FRTeam
Composition:
  1. FR_TL
  2. FR_AR
  3. FR_GL
  4. FR_Marksman
  5. FR_R
  6. FR_Corpsman
Razor Team
config: USMC_FRTeam_Razor
Composition:
  1. FR_Miles
  2. FR_Cooper
  3. FR_Sykes
  4. FR_Rodriguez
  5. FR_OHara
Motorized Infantry
config: Motorized
Motorized Section
config: USMC_MotInfSection
Composition:
  1. USMC_Soldier_TL
  2. HMMWV_M2
  3. HMMWV_Mk19
  4. USMC_Soldier_AR
  5. USMC_Soldier_AT
  6. USMC_Soldier_AR
  7. USMC_Soldier_LAT
  8. USMC_Soldier
Motorized Section (AT)
config: USMC_MotInfSection_AT
Composition:
  1. USMC_Soldier_TL
  2. HMMWV_TOW
  3. HMMWV_TOW
  4. USMC_Soldier_AR
Mechanized Infantry
config: Mechanized
Mechanized Rifle Squad
config: USMC_MechInfSquad
Composition:
  1. USMC_Soldier_SL
  2. AAV
  3. USMC_Soldier_TL
  4. USMC_Soldier_AR
  5. USMC_Soldier_LAT
  6. USMC_Soldier
  7. USMC_Soldier_TL
  8. USMC_Soldier_AR
  9. USMC_Soldier_LAT
  10. USMC_Soldier
  11. USMC_Soldier_TL
  12. USMC_Soldier_AR
  13. USMC_Soldier_LAT
  14. USMC_Soldier
Recon Section
config: USMC_MechReconSection
Composition:
  1. USMC_Soldier_TL
  2. LAV25
  3. USMC_Soldier_MG
  4. USMC_Soldier_AR
  5. USMC_Soldier_AT
  6. USMC_Soldier_LAT
  7. USMC_Soldier
Armor
config: Armored
Tank Platoon
config: USMC_TankPlatoon
Composition:
  1. M1A2_TUSK_MG
  2. M1A2_TUSK_MG
  3. M1A2_TUSK_MG
  4. M1A2_TUSK_MG
Air
config: Air
AH-1Z Squadron
config: USMC_AH1ZSquadron
Composition:
  1. AH1Z
  2. AH1Z
UH-1Y Squadron
config: USMC_UH1YSquadron
Composition:
  1. UH1Y
  2. UH1Y
MV-22 Squadron
config: USMC_MV22Squadron
Composition:
  1. MV22
  2. MV22
MQ-9 Squadron
config: USMC_MQ9Squadron
Composition:
  1. MQ9PredatorB
F-35B Squadron
config: USMC_F35Squadron
Composition:
  1. F35B
  2. F35B
AV-8B Fighter Squadron
config: USMC_AV8BFighterSquadron
Composition:
  1. AV8B2
  2. AV8B2
AV-8B Bomber Squadron
config: USMC_AV8BBomberSquadron
Composition:
  1. AV8B
  2. AV8B

CDF

config: CDF

Infantry
config: Infantry
Infantry Squad
config: CDF_InfSquad
Composition:
  1. CDF_Soldier_TL
  2. CDF_Soldier_MG
  3. CDF_Soldier_RPG
  4. CDF_Soldier_GL
  5. CDF_Soldier
  6. CDF_Soldier_MG
  7. CDF_Soldier_GL
  8. CDF_Soldier_RPG
  9. CDF_Soldier
  10. CDF_Soldier_Medic
Weapons Squad
config: CDF_InfSquad_Weapons
Composition:
  1. CDF_Soldier_TL
  2. CDF_Soldier_AR
  3. CDF_Soldier_MG
  4. CDF_Soldier_MG
  5. CDF_Soldier_RPG
  6. CDF_Soldier_RPG
  7. CDF_Soldier_GL
  8. CDF_Soldier_Marksman
Infantry Section (AT)
config: CDF_InfSection_AT
Composition:
  1. CDF_Soldier_TL
  2. CDF_Soldier_RPG
  3. CDF_Soldier_RPG
  4. CDF_Soldier_AR
Infantry Section (AA)
config: CDF_InfSection_AA
Composition:
  1. CDF_Soldier_TL
  2. CDF_Soldier_Strela
  3. CDF_Soldier_Strela
  4. CDF_Soldier_MG
Infantry Section (MG)
config: CDF_InfSection_MG
Composition:
  1. CDF_Soldier_MG
  2. CDF_Soldier_MG
  3. CDF_Soldier_AR
  4. CDF_Soldier_RPG
Patrol
config: CDF_InfSection_Patrol
Composition:
  1. CDF_Soldier_Militia
  2. CDF_Soldier_Militia
  3. CDF_Soldier_Militia
  4. CDF_Soldier_Militia
Sniper Team
config: CDF_SniperTeam
Composition:
  1. CDF_Soldier_Sniper
  2. CDF_Soldier_Sniper
Motorized Infantry
config: Motorized
Motorized Infantry Squad
config: CDF_MotInfSquad
Composition:
  1. CDF_Soldier_TL
  2. Ural_CDF
  3. CDF_Soldier_MG
  4. CDF_Soldier_RPG
  5. CDF_Soldier_GL
  6. CDF_Soldier
  7. CDF_Soldier_MG
  8. CDF_Soldier_GL
  9. CDF_Soldier_RPG
  10. CDF_Soldier
  11. CDF_Soldier_Medic
Motorized Infantry Patrol
config: CDF_MotInfSection
Composition:
  1. CDF_Soldier_GL
  2. UAZ_CDF
  3. CDF_Soldier_RPG
Motorized Weapons Section
config: CDF_MotInfSection_Weapons
Composition:
  1. CDF_Soldier_TL
  2. UAZ_AGS30_CDF
  3. UAZ_AGS30_CDF
  4. CDF_Soldier_MG
Mechanized Infantry
config: Mechanized
Mechanized Rifle Squad
config: CDF_MechInfSquad
Composition:
  1. CDF_Soldier_TL
  2. BMP2_CDF
  3. CDF_Soldier_MG
  4. CDF_Soldier_MG
  5. CDF_Soldier_Marksman
  6. CDF_Soldier_RPG
  7. CDF_Soldier_GL
  8. CDF_Soldier
Mechanized Recon Section
config: CDF_MechReconSection
Composition:
  1. CDF_Soldier_TL
  2. BRDM2_CDF
  3. CDF_Soldier_MG
  4. CDF_Soldier_RPG
Mechanized Recon Section (AT)
config: CDF_MechATSection
Composition:
  1. CDF_Soldier_TL
  2. BRDM2_ATGM_CDF
  3. CDF_Soldier_MG
  4. CDF_Soldier_RPG
Armor
config: Armored
Tank Platoon
config: CDF_TankPlatoon
Composition:
  1. T72_CDF
  2. T72_CDF
  3. T72_CDF
Air
config: Air
Mi-24D Squadron
config: CDF_Mi24DSquadron
Composition:
  1. Mi24_D
  2. Mi24_D
Mi-8 Squadron
config: CDF_Mi8Squadron
Composition:
  1. Mi17_CDF
  2. Mi17_CDF


OPFOR

config: East

Russia

config: RU

Infantry
config: Infantry
Infantry Squad
config: RU_InfSquad
Composition:
  1. RU_Soldier_SL
  2. RU_Soldier_MG
  3. RU_Soldier_AT
  4. RU_Soldier_LAT
  5. RU_Soldier_GL
  6. RU_Soldier_Marksman
  7. RU_Soldier_MG
  8. RU_Soldier_AT
  9. RU_Soldier_AR
  10. RU_Soldier_LAT
  11. RU_Soldier_GL
  12. RU_Soldier
Infantry Section
config: RU_InfSection
Composition:
  1. RU_Soldier_TL
  2. RU_Soldier_AR
  3. RU_Soldier_AT
  4. RU_Soldier_GL
  5. RU_Soldier
Infantry Section (AT)
config: RU_InfSection_AT
Composition:
  1. RU_Soldier_HAT
  2. RU_Soldier_HAT
  3. RU_Soldier_AT
  4. RU_Soldier_AT
  5. RU_Soldier
Infantry Section (AA)
config: RU_InfSection_AA
Composition:
  1. RU_Soldier_AA
  2. RU_Soldier_AA
  3. RU_Soldier_AA
Infantry Section (MG)
config: RU_InfSection_MG
Composition:
  1. RU_Soldier_TL
  2. RU_Soldier_MG
  3. RU_Soldier_MG
  4. RU_Soldier_GL
  5. RU_Soldier_AT
Sniper Team
config: RU_SniperTeam
Composition:
  1. RU_Soldier_Sniper
  2. RU_Soldier_Spotter
Spetsnaz Team
config: RUS_ReconTeam
Composition:
  1. RUS_Soldier_TL
  2. RUS_Soldier_GL
  3. RUS_Soldier_Marksman
  4. RUS_Soldier3
  5. RUS_Soldier1
  6. RUS_Soldier2
MVD Assault Team
config: MVD_AssaultTeam
Composition:
  1. MVD_Soldier_TL
  2. MVD_Soldier_MG
  3. MVD_Soldier_AT
  4. MVD_Soldier_GL
  5. MVD_Soldier_Sniper
  6. MVD_Soldier_Marksman
  7. MVD_Soldier_GL
Motorized Infantry
config: Motorized
Motorized Infantry Squad
config: RU_MotInfSquad
Composition:
  1. RU_Soldier_SL
  2. Kamaz
  3. RU_Soldier_MG
  4. RU_Soldier_AT
  5. RU_Soldier_LAT
  6. RU_Soldier_GL
  7. RU_Soldier_Marksman
  8. RU_Soldier_MG
  9. RU_Soldier_LAT
  10. RU_Soldier_AR
  11. RU_Soldier_AT
  12. RU_Soldier_GL
  13. RU_Soldier
Motorized Recon Section
config: RU_MotInfSection_Recon
Composition:
  1. RU_Soldier_TL
  2. GAZ_Vodnik
  3. GAZ_Vodnik_HMG
  4. RU_Soldier_MG
  5. RU_Soldier_AT
  6. RU_Soldier_GL
  7. RU_Soldier_Marksman
  8. RU_Soldier_MG
  9. RU_Soldier_AR
  10. RU_Soldier_LAT
  11. RU_Soldier
  12. RU_Soldier
  13. RU_Soldier
Motorized Patrol
config: RU_MotInfSection_Patrol
Composition:
  1. RU_Soldier_TL
  2. GAZ_Vodnik_HMG
  3. RU_Soldier_AR
  4. RU_Soldier_AT
Mechanized Infantry
config: Mechanized
Motor Rifles (BMP)
config: RU_MechInfSquad_1
Composition:
  1. RU_Soldier_SL
  2. BMP3
  3. RU_Soldier_MG
  4. RU_Soldier_AT
  5. RU_Soldier_LAT
  6. RU_Soldier_GL
Motor Rifles (BTR)
config: RU_MechInfSquad_2
Composition:
  1. RU_Soldier_SL
  2. BTR90
  3. RU_Soldier_MG
  4. RU_Soldier_MG
  5. RU_Soldier_AT
  6. RU_Soldier_LAT
  7. RU_Soldier_GL
Armor
config: Armored
Tank Platoon
config: RU_TankPlatoon
Composition:
  1. T90
  2. T90
  3. T90
Air
config: Air
Mi-24V Squadron
config: RU_Mi24VSquadron
Composition:
  1. Mi24_V
  2. Mi24_V
Mi-24P Squadron
config: RU_Mi24PSquadron
Composition:
  1. Mi24_P
  2. Mi24_P
Pchela-1T Squadron
config: RU_Pchela1TSquadron
Composition:
  1. Pchela1T
Ka-52 Squadron
config: RU_Ka52Squadron
Composition:
  1. Ka52
Mi-8 Squadron
config: RU_Mi8Squadron
Composition:
  1. Mi17_Rockets_RU
  2. Mi17_Rockets_RU
Su-34 Fighter Squadron
config: RU_Su34FighterSquadron
Composition:
  1. Su34
  2. Su34

Insurgents

config: INS

Infantry
config: Infantry
Group
config: INS_InfSquad
Composition:
  1. INS_Soldier_CO
  2. INS_Soldier_AR
  3. INS_Soldier_GL
  4. INS_Soldier_AT
  5. INS_Soldier_2
  6. INS_Soldier_AR
  7. INS_Soldier_1
  8. INS_Soldier_2
Weapons Group
config: INS_InfSquad_Weapons
Composition:
  1. INS_Soldier_CO
  2. INS_Soldier_MG
  3. INS_Soldier_MG
  4. INS_Soldier_AT
  5. INS_Soldier_AT
  6. INS_Soldier_AR
  7. INS_Soldier_AR
  8. INS_Soldier_2
AT Team
config: INS_InfSection_AT
Composition:
  1. INS_Soldier_AT
  2. INS_Soldier_AT
  3. INS_Soldier_1
AA Team
config: INS_InfSection_AA
Composition:
  1. INS_Soldier_AA
  2. INS_Soldier_AA
  3. INS_Soldier_AA
Sniper Team
config: INS_SniperTeam
Composition:
  1. INS_Soldier_Sniper
  2. INS_Soldier_Sniper
  3. INS_Soldier_1
Militia
config: INS_MilitiaSquad
Composition:
  1. INS_Worker2
  2. INS_Woodlander3
  3. INS_Villager3
  4. INS_Woodlander2
  5. INS_Woodlander1
  6. INS_Villager4
Motorized Infantry
config: Motorized
Motorized Group
config: INS_MotInfSquad
Composition:
  1. INS_Soldier_CO
  2. UralOpen_INS
  3. INS_Soldier_MG
  4. INS_Soldier_AT
  5. INS_Soldier_AR
  6. INS_Soldier_2
  7. INS_Soldier_GL
  8. INS_Soldier_1
  9. INS_Soldier_MG
  10. INS_Soldier_AT
  11. INS_Soldier_1
  12. INS_Soldier_1
  13. INS_Soldier_2
Technicals
config: INS_MotInfSection
Composition:
  1. INS_Soldier_GL
  2. Offroad_DSHKM_INS
  3. UAZ_SPG9_INS
  4. Pickup_PK_INS
  5. INS_Soldier_1
  6. INS_Soldier_MG
  7. INS_Soldier_GL
Mechanized Infantry
config: Mechanized
Mechanized Group
config: INS_MechInfSquad
Composition:
  1. INS_Soldier_CO
  2. BMP2_INS
  3. INS_Soldier_MG
  4. INS_Soldier_AT
  5. INS_Soldier_2
  6. INS_Soldier_GL
  7. INS_Soldier_1
  8. INS_Soldier_AR
Mechanized Patrol
config: INS_MechInfSection
Composition:
  1. INS_Soldier_CO
  2. BRDM2_INS
  3. BRDM2_INS
  4. INS_Soldier_MG
  5. INS_Soldier_AR
  6. INS_Soldier_GL
  7. INS_Soldier_1
  8. INS_Soldier_AT
  9. INS_Soldier_2
Mechanized Section (AT)
config: INS_MechInfSection_AT
Composition:
  1. INS_Soldier_GL
  2. BRDM2_ATGM_INS
  3. BRDM2_ATGM_INS
  4. INS_Soldier_AT
Armor
config: Armored
Tank Section
config: INS_TankSection
Composition:
  1. T72_INS
  2. T72_INS
Air
config: Air
Mi-8 Squadron
config: INS_Mi8Squadron
Composition:
  1. Mi17_Ins


Independent

config: Guerrila

Guerillas

config: GUE

Infantry
config: Infantry
Group
config: GUE_InfSquad
Composition:
  1. GUE_Soldier_CO
  2. GUE_Soldier_GL
  3. GUE_Soldier_AR
  4. GUE_Soldier_1
  5. GUE_Soldier_3
  6. GUE_Soldier_GL
  7. GUE_Soldier_2
Group (Assault)
config: GUE_InfSquad_Assault
Composition:
  1. GUE_Soldier_CO
  2. GUE_Soldier_GL
  3. GUE_Soldier_MG
  4. GUE_Soldier_AT
  5. GUE_Soldier_AR
  6. GUE_Soldier_MG
  7. GUE_Soldier_AT
  8. GUE_Soldier_2
  9. GUE_Soldier_1
Group (Weapons)
config: GUE_InfSquad_Weapons
Composition:
  1. GUE_Soldier_2
  2. GUE_Soldier_MG
  3. GUE_Soldier_AT
  4. GUE_Soldier_MG
  5. GUE_Soldier_GL
  6. GUE_Soldier_AT
Patrol 1
config: GUE_InfTeam_1
Composition:
  1. GUE_Soldier_2
  2. GUE_Soldier_MG
  3. GUE_Soldier_AT
  4. GUE_Soldier_GL
Patrol 2
config: GUE_InfTeam_2
Composition:
  1. GUE_Soldier_1
  2. GUE_Soldier_AR
  3. GUE_Soldier_GL
  4. GUE_Soldier_2
AT Team
config: GUE_InfTeam_AT
Composition:
  1. GUE_Soldier_AT
  2. GUE_Soldier_AT
  3. GUE_Soldier_AR
AA Team
config: GUE_GrpInf_TeamAA
Composition:
  1. GUE_Soldier_CO
  2. GUE_Soldier_AA
  3. GUE_Soldier_AA
  4. GUE_Soldier_AR
Sniper Team
config: GUE_GrpInf_TeamSniper
Composition:
  1. GUE_Soldier_Sniper
  2. GUE_Soldier_Scout
Militia
config: GUE_MilitiaSquad
Composition:
  1. GUE_Worker2
  2. GUE_Woodlander3
  3. GUE_Villager3
  4. GUE_Woodlander2
  5. GUE_Woodlander1
  6. GUE_Villager4
Motorized Infantry
config: Motorized
Technicals
config: GUE_MotInfSection
Composition:
  1. GUE_Soldier_CO
  2. Offroad_DSHKM_Gue
  3. Offroad_SPG9_Gue
  4. Pickup_PK_GUE
  5. GUE_Soldier_MG
  6. GUE_Soldier_3
  7. GUE_Soldier_Sniper
  8. GUE_Soldier_AR
  9. GUE_Soldier_2
Motorized Group
config: GUE_MotInfSquad
Composition:
  1. GUE_Soldier_CO
  2. V3S_GUE
  3. GUE_Soldier_GL
  4. GUE_Soldier_AT
  5. GUE_Soldier_1
  6. GUE_Soldier_AR
  7. GUE_Soldier_MG
  8. GUE_Soldier_MG
  9. GUE_Soldier_2
  10. GUE_Soldier_AT
Mechanized Infantry
config: Mechanized
Mechanized Patrol
config: GUE_MechInfSection
Composition:
  1. GUE_Soldier_AR
  2. BRDM2_GUE
  3. GUE_Soldier_GL
  4. GUE_Soldier_1
Mechanized Group
config: GUE_MechInfSquad
Composition:
  1. GUE_Soldier_CO
  2. BMP2_GUE
  3. GUE_Soldier_MG
  4. GUE_Soldier_GL
  5. GUE_Soldier_3
  6. GUE_Soldier_AR
  7. GUE_Soldier_Sniper
  8. GUE_Soldier_AT
Armor
config: Armored
Tank Section
config: GUE_TankSection
Composition:
  1. T72_GUE
  2. T72_GUE


Civilian

config: Civilian

Civilians

config: CIV

Civilian Groups
config: Infantry
Crowd
config: CIV_Crowd
Composition:
  1. Profiteer4
  2. Worker2
  3. Functionary1
  4. Woodlander4
  5. Rocker1
  6. Worker3
  7. Profiteer3
  8. Profiteer2
  9. Worker4
  10. Profiteer1
City people 1
config: CIV_City_1
Composition:
  1. Profiteer2
  2. Worker4
  3. Rocker3
  4. Functionary1
  5. Profiteer1
  6. Profiteer4
City people 2
config: CIV_City_2
Composition:
  1. Worker2
  2. Rocker2
  3. Rocker4
  4. Functionary2
  5. Profiteer3
  6. Worker4
Village people 1
config: CIV_Village_1
Composition:
  1. Worker3
  2. Woodlander2
  3. Rocker1
  4. Woodlander4
  5. Worker1
  6. Woodlander3
Village people 2
config: CIV_Village_2
Composition:
  1. Worker4
  2. Villager1
  3. Woodlander4
  4. Woodlander1
  5. Villager3
  6. Villager2
Export function

local _result = "";
local _addLine = {
	_result = _result + _this + (toString [10]);
};

local _maxGroupWidth = 5;
local _cfgGroups = configFile >> "CfgGroups";

"{{TOC|horizontal}}" call _addLine;

for "_sideindex" from 0 to (count _cfgGroups -1) do
{	// side level

	local _sideConfig = _cfgGroups select _sideindex;

	if (isClass _sideConfig) then
	{
		if (_sideindex > 0) then
		{
			"" call _addLine;
		};
		"" call _addLine;
		"== " + getText (_sideConfig >> "name") + " ==" call _addLine;
		"" call _addLine;
		"config: " + configName _sideConfig call _addLine;
		"" call _addLine;

		for "_factionindex" from 0 to count _sideConfig -1 do
		{	// faction level

			local _factionConfig = _sideConfig select _factionindex;

			if (isClass _factionConfig) then
			{
				"=== " + getText (_factionConfig >> "name") + " ===" call _addLine;
				"" call _addLine;
				"config: " + configName _factionConfig call _addLine;
				"" call _addLine;
				"{| class=""wikitable""" call _addLine;

				for "_grouptypeindex" from 0 to count _factionConfig -1 do
				{	// groupType level

					local _groupTypeConfig = _factionConfig select _grouptypeindex;

					if (isClass _groupTypeConfig) then
					{
						local _count = 0;
						for "_cnt" from 0 to count _groupTypeConfig -1 do { if (isClass (_groupTypeConfig select _cnt)) then { _count = _count + 1; }; };

						local _groupLines = ceil (_count / _maxGroupWidth);

						"|- style=""vertical-align: top""" call _addLine;
						"! style=""vertical-align: middle; white-space: pre""" + (["", format [" rowspan=""%1""", _groupLines]] select (_groupLines > 1)) + " | " + getText (_groupTypeConfig >> "name") call _addLine;
						"<div style=""font-weight: normal"">config: " + configName _groupTypeConfig + "</div>" call _addLine;

						local _groupRow = 1;

						for "_groupindex" from 0 to count _groupTypeConfig -1 do
						{	// group level

							local _groupConfig = _groupTypeConfig select _groupindex;

							if (isClass _groupConfig) then
							{
								"| <div style=""white-space: pre"">" + getText(_groupConfig >> "name") + "<br>config: " + configName _groupConfig + "</div>" call _addLine;

								"Composition:<div style=""" + (["", "columns: 2; "] select (count _groupConfig > 600 /* if needed */)) + "font-size: small"" class=""mw-collapsible mw-collapsed""><div style=""margin-right: 5em; padding-top: 1em"">" call _addLine;

								for "_unitindex" from 0 to count _groupConfig -1 do
								{
									local _unitClass = _groupConfig select _unitindex;
									if (isClass _unitClass) then
									{
										("# " + getText (_unitClass >> "vehicle")) call _addLine;
									};
								};

								"</div></div>" call _addLine;

								_groupRow = _groupRow + 1;
								if (_groupRow > _maxGroupWidth) then {
									"|-" call _addLine;
									_groupRow = 1;
								};
							};
						};

						"|-" call _addLine;
					};

				};

				"|}" call _addLine;

			};
		};
	};
};

"" call _addLine;
"" call _addLine;
"[[Category: CfgGroups]]" call _addLine;
"" call _addLine;

copyToClipboard _result;
_result;
↑ Back to spoiler's top