Difference between revisions of "Template:Check talk"

From blackwiki
Jump to navigation Jump to search
imported>Mike Dillon
(use #ifeq with {{NAMESPACE}} and {{TALKSPACE}} instead of hardcoded #switch statements)
imported>Mike Dillon
m (revert)
Line 1: Line 1:
{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
+
{{#switch:{{BASEPAGENAME}}
|<!-- Not a talk page -->
+
  |Template messages
|<center>'''''This [[Wikipedia:template|template]] is misplaced. It belongs on the [[Wikipedia:talk page|talk page]]:'' [[{{TALKPAGENAME}}]].'''</center>
+
  |Cleanup resources=
 +
  |{{#switch: {{NAMESPACE}}
 +
    |{{ns:0}}
 +
    |Wikipedia
 +
    |User
 +
    |Image
 +
    |Category
 +
    |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]]
 
[[Category:Main pages with misplaced talk page templates]]
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:10}}|[[Category:Templates using check talk template|{{PAGENAME}}]]}}</includeonly><noinclude>
+
}}}}<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:00, 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.