Difference between revisions of "Template:Convert template"

From blackwiki
Jump to navigation Jump to search
imported>Ludwigs2
(changed text)
imported>Ludwigs2
(adding minor namespace detection: only categorize templates)
Line 3: Line 3:
 
| text  =  This template should be converted to a standardized format using [[Template:{{{template|{{{1}}}}}}]]. <small>([[{{{discuss|{{{2|template talk:{{{template|{{{1}}}}}}}}}}}}|Discussion]] • [[:{{#ifexist:Category:Templates to be standardized/{{{template|{{{1}}}}}}|Category:Templates to be standardized/{{{template|{{{1}}}}}}|Category:Templates to be standardized}}|Category]])</small>}}<noinclude>
 
| text  =  This template should be converted to a standardized format using [[Template:{{{template|{{{1}}}}}}]]. <small>([[{{{discuss|{{{2|template talk:{{{template|{{{1}}}}}}}}}}}}|Discussion]] • [[:{{#ifexist:Category:Templates to be standardized/{{{template|{{{1}}}}}}|Category:Templates to be standardized/{{{template|{{{1}}}}}}|Category:Templates to be standardized}}|Category]])</small>}}<noinclude>
 
{{documentation}}
 
{{documentation}}
</noinclude><includeonly>[[{{#ifexist:Category:Templates to be standardized/{{{template|{{{1}}}}}}
+
</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}|Template|[[{{#ifexist:Category:Templates to be standardized/{{{template|{{{1}}}}}}
 
|Category:Templates to be standardized/{{{template|{{{1}}}}}}
 
|Category:Templates to be standardized/{{{template|{{{1}}}}}}
|Category:Templates to be standardized}}|{{PAGENAME}}]]</includeonly>
+
|Category:Templates to be standardized}}|{{PAGENAME}}]]}}</includeonly>

Revision as of 21:06, 24 April 2009

50px Template documentation[view] [edit] [history] [purge]

Usage

Used to mark a template for conversion into a standardized template format. place inside 'noinclude' tags on the template page to prevent the message from being transcluded into article space:

  • {{convert template|target_template}}

Parameters

  • template = the standardized template that the template should be converted to
  • discuss = a link to the discussion page for the conversion (defaults to the talk page of the standardized template).

This template adds any templates it is transcluded into to Category:Templates to be standardized by default, or to a Category:Templates to be standardized/{{{template}}} subpage if that category page has been created. Please create these category subpages as needed, and make sure that the subpages contain [[Category:Templates to be standardized]] to keep the category hierarchy intact.