This template is used inside other templates to make it detect if they are on a main space (article) page or some other type of page.
Usage[]
{{main other|main space|elsewhere}}
This example displays "main space" if it's on a main space page, and "elsewhere" if it's on any other page.