The miles you earn when flying a Star Alliance airline and crediting to a different Star Alliance airline will depend on two factors - the "fare class" that your ticket is booked into, and the earning on the airline you credit to for that fare class. The earning rates on the airline you book with (in this case, the '10%'/'50%'/etc listed on that site) do NOT necessarily correspond to the rates you'll get when crediting to a different airline.
Each airline publishes earning tables for the relevant combinations - such as this one for TAP flights credited to Turkish Airlines Miles & Smiles.
The difficultly is normally finding out in advance which "fare class" your tickets are booked in. TAP's website will NOT show you those details until after you have actually booked your flight.
TAP's "Discount" fares can book into multiple different fare classes, including 'A' (no miles with TK), 'T' (10% miles) and 'K' (50% miles) so if you're booking via their website you really have no idea how many miles you are going to get.
Some other booking sites do show you the booking class, so booking via them will give you a much better idea of what you will earn. For example, Expedia shows the fare class at multiple stages during the booking process (here an 'A' class fare, which would earn no miles when credited to Turkish, despite earning at least 10% when credited to TAP) :