Given your description, it sounds like you're talking about the battery gauge (typical output V should be ~14Vdc, hence it's the center point on the gauge).
Although there's 4 terminals on it, 2 of them go to the voltage regulator (sensor; this type of gauge uses a push-pull, depending on what the output voltage is), while another goes to the ignition (turns the gauge ON), and the last is to ground (connected to both coils inside the gauge). I don't know the exact pin-outs, but you should be able to trace the wiring relatively easy using the continuity setting (I've only worked on a number of older Jeeps; late 40's - 80's, all of which only use a 3 terminal gauge as it's the older non push-pull type).
So if you're having problems with how it's reading when in the vehicle, the likely suspect is the voltage regulator*, not the gauge. Rather common issue with Jeeps given what's available on Jeep centric forums.
* If it has one, as at some point they put the voltage regulator in the ECM & a temp sensor beneath the battery to be sure it's not overheating while being charged.
If yours is built into the ECM, then the simplest thing to try is to clean off the battery cables and terminals to be sure you've a good connection. With top posts, you can wrap the post with copper so you can get it to tighten (I've done this successfully). Otherwise, you'll have to replace the clamp or entire wire, depending on how it connects to the battery.