Generalized quadrangles with valuation