Template:Talkspace detect/doc: Difference between revisions

Content deleted Content added
update docs.
add cat
Line 1:
{{Documentation subpage}}
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
This is the {{tl|talkspace detect}} meta-template.
 
It helps other templates detect what type of page they are on. It detects and groups all the different [[Wikipedia:Namespace|talkspaces]] used on Wikipedia into several types:
 
:'''main''' = Defines the output if the template is located on main/article talkspace; aka ''Talk:''.
Line 11:
:'''other''' = Defines the output if the template is located on any subject space (not the associated talkspace).
 
=== Usage ===
 
This template takes one or more parameters named after the different page types as listed above. Like this:
 
Line 34 ⟶ 33:
 
=== The "page" parameter ===
 
For testing and demonstration purposes this template can take a parameter named '''page'''. Like this:
 
Line 67 ⟶ 65:
</pre>
 
=== See also ===
 
{{namespace detect see also}}
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!--Categories below this line, please; interwikis at Wikidata-->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Namespace manipulation templates]]
[[Category:Talk namespace templates]]
[[Category:Wikipedia metatemplates]]
 
[[zh:Template:Talkspace detect]]
}}</includeonly>