Parse template parameters, and use inline element