Variable page numbers

how to I insert page number variable

what do you mean

You tagged question with common. Do you intend to use page number variables in all components: Writer, Calc, Draw, Impress, Base and Math?

Tell what you have tried so far, and give more information.
See guidelines for asking.