Official resource

gm48.net Shortcodes Cheat Sheet

This cheat sheet provides a quick overview of the Shortcode syntax elements
Peter 🌊 Jørgensen
Peter 🌊 Jørgensen
· 2 min read · 101 views

This cheat sheet won't cover every shortcode in complete detail yet and should be considered a work-in-progress.

I recommend that you bookmark this page, and use it as a reference when you're writing the description to that awesome game that you made.

What are Shortcodes?

When a shortcode is inserted in a supported field, it is replaced with some other content. In other words, we instruct the compiler to find the macro that is in square brackets [ ] and replace it with the appropriate dynamic content, determined by the input or attributes.

Here's an example:

You see that the shortcode is tagged section and it contains two attributes: icon and heading. What's more is that the content within the shortcode, that is to say, after the opening tag and before the closing tag, is inserted within the shortcode.

The following is a list of the available Shortcodes and how to use them.

0
Sections

Sections can be used as a way to separate your content into... sections and indicate each of these sections with either a number or a icon.

Numbers

As a coder, you may know the difference between integers and floats.

Well, in this case, you can only use integers, and while you could write any amount of digits, I recommend only two digits as this time.

[section number='10' heading='Example']

Icons

The icons available can be found here: fontawesome.com/icons

Simply include the icon's name in an attribute, as such:

[section icon='thumbs-up' heading='Example']