How to use variables?

I learned that just recently when I was coming up with this table shortcode: Proposal to add a new shortcode "table" to Hugo