更改
Create
{{documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
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, accessability 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'':
:<code><nowiki>{{Convert to template|section}}</nowiki></code>
:<code><nowiki>{{Convert to template|1=paragraph}}</nowiki></code>
:<code><nowiki>{{Convert to template|1=paragraph|template=Episode list}}</nowiki></code>
This template can be dated:
:<code><nowiki>{{Convert to template|</nowiki>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
:<code><nowiki>{{Convert to template|section|</nowiki>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
:<code><nowiki>{{Convert to template|section|template=Episode list|</nowiki>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
If the date is left off a [[WP:BOT|bot]] will add it.
== TemplateData ==
{{TemplateDataHeader}}
<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>
<includeonly>{{Sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Cleanup templates]]
}}</includeonly>
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
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, accessability 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'':
:<code><nowiki>{{Convert to template|section}}</nowiki></code>
:<code><nowiki>{{Convert to template|1=paragraph}}</nowiki></code>
:<code><nowiki>{{Convert to template|1=paragraph|template=Episode list}}</nowiki></code>
This template can be dated:
:<code><nowiki>{{Convert to template|</nowiki>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
:<code><nowiki>{{Convert to template|section|</nowiki>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
:<code><nowiki>{{Convert to template|section|template=Episode list|</nowiki>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
If the date is left off a [[WP:BOT|bot]] will add it.
== TemplateData ==
{{TemplateDataHeader}}
<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>
<includeonly>{{Sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Cleanup templates]]
}}</includeonly>