How to create udf openoffice?

Hello experts,
How to create udf open office? This is very important for me to learn more about this but it is easier if there are some applications that will give me a free template as a basis or reference to create an instance. Share your brilliant ideas and opinions with me it is a big help.
Thank you.
