When discussing wattage, does it refer to the cable or the charger plug? Or both?

ie, if I want to charge my iPad faster, I assume a 12 watt charger will be faster than a 5, but if I use a different cable (I need a long cable), will it slow it down? Does the cable itself contain a wattage, or only the charger plug itself? Thanks.