How to display some special fields on web page

There are some fields I’d like to know how to display on a webpage (portal, not desk):

  • rating (to display the stars)
  • table multiselect - solved by using for loop in jinja

Does anyone has any example codes for these?
Thank you