In clan wars, on the war map, what do the troops standing outside the base represent?
Solution 1:
In Clash of Clans some townhalls have barbarians in place to signify your Unused attacks.
Basically, those are the amount of attacks you have left. Each barbarian is equal to one attack.
You can attack the other clans with your troops, but you can't use any more barbarians (e.g. attacks) than you have.
Source
Solution 2:
The barbarian standing beside the town hall in war represents the attacks you have left in war. When you attack you will lose a barbarian. When you have no more barbarians standing beside the town hall, you can't attack.