Template:Convert to template

From Body Communication
Template documentation[view] [edit] [history] [purge]

This template tags articles or sections that use raw wikicode in place of a template designed to do the same thing. Often, templates provide category checks, accessibility tracking and standardization between articles, and may be more beneficial to an article than using raw wikicode.

Usage

This template can refer to a section (or another article part), instead of the default article:

{{Convert to template|section}}
{{Convert to template|1=paragraph}}
{{Convert to template|1=paragraph|template=Episode list}}

This template can be dated:

{{Convert to template|date=April 2024}}
{{Convert to template|section|date=April 2024}}
{{Convert to template|section|template=Episode list|date=April 2024}}

If the date is left off a bot will add it.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Convert to template

<templatedata> {

   "params": {
       "1": {
           "label": "Scope (e.g. section)",
           "description": "This parameter allows an editor to replace the default word \"article\" with another word, usually \"section\" or \"paragraph\"",
           "type": "content"
       },
       "template": {
           "label": "Template name",
           "description": "Set to the name of a template that the raw wikicode can be converted to.",
           "example": "yes",
           "type": "content",
           "autovalue": ""
       },
       "date": {
           "label": "Month and year",
           "description": "Month and year of tagging; e.g., 'January 2013', but not 'jan13'",
           "type": "string",
           "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}",
           "suggested": true
       }
   },
   "description": "For tagging articles that use raw wikicode instead of a relevant template.",
   "format": "inline"

} </templatedata>