An interesting discussion so far - without (of course) actually getting anywhere. Let me pose this slight adjustment to the scenario I posed earlier.
Blue lineout on its own 5m line. Blue wins the ball, passes off the top to the SH, who spins it back to #10 standing deep in-goal. Blue 10 kicks, and falls over in the process. All Blue players are offside, and stand still - the forwards at the line of touch. Two Red forwards also remain at the LoT.
The ball makes touch on the 22m line. Red 14 catches the ball 1m in touch, and immediately throws it (slightly backward) to Red 15. TJ indicates to the ref that the lineout was formed, as there were 7 Blues (all offside) and 2 Reds at the LoT on the 5m line.
Does the ref play on or disallow the QTI? If the latter, in what way have the offside players NOT influenced the game by being offside?