For some versions of SharePoint, you can also provide hierarchy management permissions for the user and / or group, then you can use the "/" in your link, and SharePoint will automatically create a folder for you.
For example, the link could be [[SubFolder / Home | The home page for the subfolder]], which will create the main page in a folder named SubFolder.
Follow these steps:
- Actions on the site.
- Click "Site Settings."
- Click Site Permissions.
- Check the box next to the user or interest group.
- Click "Change user rights."
- Check the "Hierarchy Management" box.
- Click OK.
source share