I'm using this LaTeX plugin for a Wiki (Confluence, blech), and it doesn't support the \middle| command. I'm guessing it doesn't have eTex primitives or some such backwardness. Anyway, I guess I can write things like
\newcommand{\fakemiddlebar}[2]{{\kern-\nulldelimiterspace\left.\vphantom{{#1}{#2}}\right|}}
\newcommand{\condset}[2]{\left\{ #1 \mathrel{\fakemiddlebar{#1}{#2}} #} \right\}}
(improved as per @egreg's suggestion).
Edit: But I want to do better! I want to have an argument-less command with the same effect is \middle|. Also, I can't \include or \usepackage. Is that possible?

\middlecommand and thebraketpackage. – Mico Sep 12 '12 at 15:52