A valid qiyas identifies the original case, the new case, the ruling, and a shared effective illah. Superficial likeness does not permit extending a ruling when the legally relevant cause is absent. The book's five conditions include not contradicting a text and not altering the original ruling.
In a prohibition concerning intoxicants, the relevant legal attribute is not the color of a liquid or its container. Application to a new case depends on the effective quality, established through recognized means of legal reasoning rather than personal preference.