I'll just post an example.    The new wild magic table has 25 entries all evenly weighted.  The mancerroll template displays 1 of 20 possible options based on a die roll.  This means we'll need to break the table up to use 5 macros with 5 entries each.  Then an additional mancerroll macro is used to display 1 of 5 buttons to activate the corresponding macro.  First add an ability for your character you can name it whatever you want (I used Wild-Magic-Surge).  Be sure to check the show as token action box.  &{template:mancerroll} {{title=Wild Magic Surge}} {{c1=[[1d5]] }} {{option1=[Show Result](~wild-magic1) }} {{option2=[Show Result](~wild-magic2) }} {{option3=[Show Result](~wild-magic3) }} {{option4=[Show Result](~wild-magic4) }} {{option5=[Show Result](~wild-magic5) }}  Then you will need to add abilities for wild-magic1, wild-magic2, wild-magic3, wild-magic4, and wild-magic5:  wild-magic1  &{template:mancerroll} {{title=Wild Magic Surge}} {{c1=[[1d5]] }} {{option1=Copy the 1st entry from the table here. }} {{option2=Copy the 2nd entry from the table here. }} {{option3=Copy the 3rd entry from the table here. }} {{option4=Copy the 4th entry from the table here. }} {{option5=Copy the 5th entry from the table here. }}  For the additional abilities just copy wild-magic1 and change the options as needed. (So for wild-magic2 the options would be for table entries 6 - 10.)  If you really want to automate things you can create additional mancerroll macros to determine the result of random outcomes for a table entry.  For example entry 2 generates a random creature.  In the text for the description include a button to call another ability that uses a mancerroll template to display the result:  {{option2=A creature that is Friendly toward you appears in a random unoccupied 
space within 60 feet of you. The creature is under the DM’s control and 
disappears 1 minute later. Roll [1d4](~creature-type) to determine the creature: on a 1, a
 Modron Duodrone appears; on a 2, a Flumph appears; on a 3, a Modron 
Monodrone appears; on a 4, a Unicorn appears. See the Monster Manual for
 the creature’s stat block.  Here's some example output from the 2014 wild magic table (I'm not using the new rules yet myself so I haven't updated it):