User:Nom/sandbox/dpl/Template:Lookup

Usage
Given a set of field pairs, if a  matches  , then return.
 * If there are multiple matches, return the last one.
 * If there are no matches, return nil.