Broke my finger

How do I attach a splint to my finger when it is broken by the hand knuckle joint? It hurts really bad and I keep accidentally moving it