<ref> tag with name "$1" cannot use details when inside <references>.