In a query, you can separate the parts like this: ? = start of query { } = boundary of query NAME = Name of query (What is displayed in the popup box as a prompt) SELECTION = If the query is a dropdown or has a pre-written optional answer RESULT = what the output of the macro is The NAME is always the first thing after the opening brace before a vertical pipe. SELECTIONS come after a vertical pipe. RESULTS are optional and come after a comma -- if there is no RESULT listed then the SELECTION name is the result. It's important to know that the output of the RESULT is everything between the comma and the vertical pipe for the next SELECTION, including any spaces. A common error is putting a space after a comma, which can result in a space that is not intended being output before the RESULT and causing a macro not to fire. E.g.: ?{NAME|SELECTION1, RESULT1 |SELECTION2, RESULT2 |SELECTION3, RESULT3 } For this specific example, the parts in bold are what will be output, and would need to exactly match the name of the table you want to roll, such as "Random-Encounters-Hills/moors". /w gm &{template:npcaction} {{rname= Random Encounter Table }} {{name= Random Hills/moors encounters }} {{description= [[ 1t[Random-Encounters-?{Which Table|Hills & Moors, Hills/moors |Hills & Lesses, Hills/lesses |Hills & Sames, Hills/sames ] ]] }} If you reuse a query in the same macro, the output will always be the same as whatever the output from the first macro is. Changing the inputs on a second query that has the same NAME will not do anything different. This also means that you can reuse the output multiple times. /w gm &{template:npcaction} {{rname= Random Encounter Table }} {{name= Random Hills/moors encounters }} {{description= [[ 1t[Random-Encounters-?{Which Table|Hills & Moors,Hills/moors|Hills & Lesses,Hills/lesses|Hills & Sames,Hills/sames] ]] from table Random-Encounters-?{Which Table}}}