How to write dynare code?

Hello! I just started to learn dynare.
Can I ask here some basic questions for writing dynare code??
I’m trying to replicate this paper now, “INTEREST RATE EFFECTS OF DEMOGRAPHIC CHANGES IN A NEW KEYNESIAN LIFE-CYCLE FRAMEWORK(2016)”.

so, in the mod file, I should first verifies endogeneous variables, and then type exogenous variables,
and parameters, then put model part,
here is my question.
In this paper, authors detrented variables, and it leads equilibrium equations to the steady-state equations. (page 136), then how should I write in model part and steady state part??

anyone can help me to find some literature about NK model with life-cycle(demographic change)??

Thanks in advance!

interest-rate-effects-of-demographic-changes-in-a-new-keynesian-life-cycle-framework.pdf (490.5 KB)
this is the paper I referenced

What exactly is your problem? The Appendix contains the detrended equilibrium conditions you need to enter, while the given steady state equations can be solved for the steady state.