Board Thread:Support Requests - Getting Technical/@comment-39358160-20200119212834/@comment-9605025-20200120023343

Spoiler templates best fit into the notice template type. However, templates classified as notices don't show on mobile. The next best classification would be a data template. Again, when talking about different types of templates, that is just to clarify their intended purpose. How the templates are made is not impacted by the type of template (except for portable infobox templates; that is a special case). You can read more about template types at Help:Template_types.

Depending on your wiki, yes. They serve different purposes and that is why they are given different names.

On a given wiki, you can browse the templates by going to Special:Templates. As for where the namespace is, well, namespaces are not physical spaces so there isn't really a "where". You can read more about namespaces at Help:Namespaces. To summarize, namespaces are a way of roughly indicating the purpose of the page. Pages in the template namespace are meant to be used on other pages. Pages in the mediawiki namespace are meant to customize certain aspects of the wiki. Pages in the thread namespace are meant to display discussions like this one. Since each namespace indicates a different purpose, the pages may be treated differently by the MediaWiki software. For instance, editing pages in the mediawiki namespace is restricted to admins and staff. Another example is auto-generated content being added to pages in the category namespace.

So, how do you know which namespace a page is in? By the page name. Let's assume that the page title is "MyPage". In the main namespace, the entire page name would be "MyPage". In the template namespace, it would be "Template:MyPage". In the mediawiki namespace, "MediaWiki:MyPage".

It has occurred to me that you might also find it helpful to read the help page about templates.

I know we are getting away from the original topic at this point. So I hope I haven't overwhelmed you with too much information. In terms of creating your spoiler template, do you have any idea what you want it to look like? Perhaps you could link to an example on a different wiki.