Thanks!
i got a Goblin siege and was not prepared to defend myself
The number of soldiers in a squad must be always 10 ?
You don't need 10 dwarves per squad, and some people even prefer to have fewer. For myself, I typically only make squads of 6 dwarves. The number of dwarves in a squad changes a few things, like how many dwarves can be given orders at once, and how they train or perform orders through the schedule menu.
To just get a few dwarves training for rudimentary defense (note that the following is for melee, not marksdwarves):
1) Build a weapon rack or armor stand at a workshop. Currently, it doesn't matter which one you choose to make.
2) Construct the weapon rack / armor stand somewhere in your fort that you want your dwarves to train. It's a good idea to place this somewhere near an entrance to your fort, so that your troops are able to get into position quicker.
3) Once built, use the 'q' menu to enable training at that location.
4) Now, press 'm' to open the military screen, and press 'c' to create a militia commander, if you haven't already. If you select 'No uniform' when you do this, the dwarves will simply wear their current clothes and not pickup any weapons.
5) Next, add the dwarves you ould like to be in the military to the squad. You might want to avoid adding miners, woodcutters, or hunters to a squad due to a
bug6) Go back to your built weapon rack / armor stand, and use the 'q' menu to allow the squad you just created to train at that location.
If you would like me to walk through how to setup schedules, setup uniforms, setup marksdwarves, supplies, posts, alerts, equipment, or anything else, feel free to ask! Cheers!