Confluence drop-down with dynamic content

Hi all

I would like to share a flow that I am struggling with and I need your advice.
I would like to create confluence page template with the following ability:

  • Drop-down list with dynamic content, This means that when user will create page from this template, the user will select value from the drop-down list and then table with related content to the user choose.

Sample - Template of test plan which contains drop-down list of OS platform.
When user will create page from this template, the user will choose windows from the drop-down and then table with specific tests related to windows will appear.