1.) recieving inheritance works differntly only in theocracies that disallow inheritance, confucian burrucrbure and religious heads with open elective
i might even post some screenshots if you are interested in me providing proof
2.) by under you mean that the holder has that government or that hos liege has that government? sorry i do not understand this this paragraph at all
I will give you screenshots later.
Let me explain it again, in a simpler way.
1. Muslim rulers can hold temples as if they are castles.
2. To allow that, when a temple title is revoked by a Muslim ruler, or is inherited to a random generated Muslim ruler under Open Elective system, the new Muslim ruler changes government type of that temple to a special Muslim theocracy-feudal combined government and gains a special title "wali"
3. This special government works almost same as Castle government under Muslim rule, and uses the same "Open" succession law which is the only allowed one for Iqta government.
4. If a wali dies without heir under Open succession (Not Open Elective), his liege becomes the heir and not a random generated new wali. A new random wali is only generated if the previous title holder was not a wali already.
I hope this makes sense.
In practical example,
1. I just holy warred a Christian duchy, it has a church with a Christian bishop.
2. I imprison and execute the bishop, now the temple becomes a mosque and is inherited by a random generated Muslim wali, because when the bishop died, it was still a church under "Open Elective" law.
3. I imprison and execute the wali, now the mosque is under "Open" law, it is inherited by the dead wali's liege instead of a random generated new wali, just like a barony castle titles are inherited.
4. I gained the temple (or mosque) title without spending any prestige to revoke, or even without title revocation law is enabled. Now as a Tribal Muslim ruler, I raise its levy and send it to raiding, and pillage the former church.
5. Or, if the step 1~3 were done by my father, and I am a pious man, then I raise a new wali on the mosque to collect 25 piety.