Difference between revisions of "Template:Check talk"

From blackwiki
Jump to navigation Jump to search
imported>Mike Dillon
m (revert)
imported>Mike Dillon
(second attempt to make this work without hardcoding namespace names)
Line 1: Line 1:
{{#switch:{{BASEPAGENAME}}
+
{{#ifeq:{{SUBJECTSPACE}}|{{NAMESPACE}}|{{#ifeq:{{NAMESPACE}}|{{ns:10}}
  |Template messages
+
|<!-- Exclude message from templates -->
  |Cleanup resources=
+
|{{#switch|{{NAMESPACE}}:{{BASEPAGENAME}}
  |{{#switch: {{NAMESPACE}}
+
<!-- Page-specific exclusions -->
    |{{ns:0}}
+
| Wikipedia:Template messages
    |Wikipedia
+
| Wikipedia:Cleanup resources=
    |User
+
<!-- Message to show for other non-talk pages -->
    |Image
+
|#default=<center>'''''This [[Wikipedia:template|template]] is misplaced.  It belongs on the [[Wikipedia:talk page|talk page]]:'' [[{{TALKPAGENAME}}]].'''</center>
    |Category
+
}}}}<includeonly>{{#ifeq:{{SUBJECTSPACE}}|{{ns:10}}|[[Category:Templates using check talk template]]|[[Category:Main pages with misplaced talk page templates]]}}</includeonly>}}<noinclude>
    |Mediawiki
 
    |Portal
 
    |Help = <center>'''''This [[Wikipedia:template|template]] is misplaced.  It belongs on the [[Wikipedia:talk page|talk page]]:'' [[{{TALKPAGENAME}}]].'''</center>
 
[[Category:Main pages with misplaced talk page templates]]
 
}}}}<includeonly>{{#ifeq:{{NAMESPACE}}|Template|[[Category:Templates using check talk template|{{PAGENAME}}]]}}</includeonly>
 
<noinclude>
 
  
 
  This template is invisible except under the conditions described below.
 
  This template is invisible except under the conditions described below.

Revision as of 08:18, 20 November 2006


This template is invisible except under the conditions described below.

Usage

{{check talk}} may be incorporated into other templates that are intended to be used only on talk pages. If a template containing it is added to a page in any main namespace, then a warning message will be displayed encouraging people to use that template only on talk pages. The current text of the warning message is:

This template is misplaced. It belongs on the talk page: Template talk:Check talk.

It also adds the pages to Category:Main pages with misplaced talk page templates for easier tracking and rectification.

Templates that incorporate the check talk template will be added to Category:Templates using check talk template.