Difference between revisions of "Template:Check talk"

From blackwiki
Jump to navigation Jump to search
imported>Mike Dillon
(second attempt to make this work without hardcoding namespace names)
imported>Mike Dillon
m (ok, this isn't working... back to regularly scheduled programming)
Line 1: Line 1:
{{#ifeq:{{SUBJECTSPACE}}|{{NAMESPACE}}|{{#ifeq:{{NAMESPACE}}|{{ns:10}}
+
{{#switch:{{BASEPAGENAME}}
|<!-- Exclude message from templates -->
+
  |Template messages
|{{#switch|{{NAMESPACE}}:{{BASEPAGENAME}}
+
  |Cleanup resources=
<!-- Page-specific exclusions -->
+
  |{{#switch: {{NAMESPACE}}
| Wikipedia:Template messages
+
    |{{ns:0}}
| Wikipedia:Cleanup resources=
+
    |Wikipedia
<!-- Message to show for other non-talk pages -->
+
    |User
|#default=<center>'''''This [[Wikipedia:template|template]] is misplaced.  It belongs on the [[Wikipedia:talk page|talk page]]:'' [[{{TALKPAGENAME}}]].'''</center>
+
    |Image
}}}}<includeonly>{{#ifeq:{{SUBJECTSPACE}}|{{ns:10}}|[[Category:Templates using check talk template]]|[[Category:Main pages with misplaced talk page templates]]}}</includeonly>}}<noinclude>
+
    |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]]
 +
}}}}<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:21, 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.