For example , if the black pawn has just moved up two squares from g7 to g5 , then the white pawn on f5 can take it by en passant on g6 .
For example , if the black pawn has just advanced two squares from g7 to g5 , then the white pawn on f5 can take it via en passant on g6 ( but only on white 's next move ) .