****EDIT***
Some things were wrong in the original macro, so I corrected it. Just to be clear, this macro is intended FOR PLAYERS, not for NPCs. I made an other one for monsters and NPCs, here is the link to it :
https://app.roll20.net/forum/post/8747010/slug%7D
You have to consider that I create every player character from a template with all the macros they need. This is with the 5e DnD sheet. Special thanks to Oosh for suggesting the corrections and Scott M. for spotting errors. :
@{selected|wtype}&{template:npc} @{selected|rtype}+?{Skills|Acrobatics,[[@{selected|acrobatics_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|acrobatics_bonus}]]}}{{rname=Acrobatics Check}}{{name=@{selected|character_name}}}{{type=Roll}} |Animal Handling,[[@{selected|animal_handling_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|animal_handling_bonus}]]}}{{rname=Animal Handling Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Arcana,[[@{selected|arcana_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|arcana_bonus}]]}}{{rname=Arcana Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Athletics,[[@{selected|athletics_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|athletics_bonus}]]}}{{rname=Athletics Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Deception,[[@{selected|deception_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|deception_bonus}]]}}{{rname=Deception Check}}{{name=@{selected|character_name}}} {{type=Roll}} |History,[[@{selected|history_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|history_bonus}]]}}{{rname=History Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Insight,[[@{selected|insight_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|insight_bonus}]]}}{{rname=Insight Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Intimidation,[[@{selected|intimidation_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|intimidation_bonus}]]}}{{rname=Intimidation Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Investigation,[[@{selected|investigation_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|investigation_bonus}]]}}{{rname=Investigation Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Medicine,[[@{selected|medicine_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|medicine_bonus}]]}}{{rname=Medicine Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Nature,[[@{selected|nature_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|nature_bonus}]]}}{{rname=Nature Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Perception,[[@{selected|perception_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|perception_bonus}]]}}{{rname=Perception Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Performance,[[@{selected|performance_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|performance_bonus}]]}}{{rname=Performance Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Persuasion,[[@{selected|persuasion_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|persuasion_bonus}]]}}{{rname=Persuasion Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Religion,[[@{selected|religion_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|religion_bonus}]]}}{{rname=Religion Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Sleight Of Hand,[[@{selected|sleight_of_hand_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|sleight_of_hand_bonus}]]}}{{rname=Sleight Of Hand Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Stealth,[[@{selected|stealth_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|stealth_bonus}]]}}{{rname=Stealth Check}}{{name=@{selected|character_name}}} {{type=Roll}} |Survival,[[@{selected|survival_bonus}]]]]}}{{r1=[[@{selected|d20}+@{selected|survival_bonus}]]}}{{rname=Survival Check}}{{name=@{selected|character_name}}} {{type=Roll}}}