Difference between revisions of "Template:Empty section/doc"

From blackwiki
Jump to navigation Jump to search
imported>John of Reading
(The "See also" section is also entirely optional)
imported>SUM1
(TemplateData fixes (ordering, suggested date, updated description). This "Formatted TemplateData" needs major fixing for viewing in VisualEditor and TemplateWizard (no wikitext allowed).)
Line 4: Line 4:
  
 
== Usage ==
 
== Usage ==
 
 
{{Format TemplateData|JSON=
 
{{Format TemplateData|JSON=
 
{
 
{
 +
"description": "To be placed in sections that are empty, containing neither text nor sub-sections. Before tagging an empty section, consider removing the section heading instead – for example, an empty \"Gallery\", \"See also\" or \"External links\" section can safely be deleted.<br><br> {{tnull|Empty section}} puts articles into Category:Articles with empty sections and Category:Articles to be expanded.<noexport><br><h3>Common form</h3><br><code>&#123;&#123;Empty section&#124;date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}&#124;section{{=}} &#125;&#125;</code></noexport>",
 +
"format": "inline",
 
"params": {
 
"params": {
"small": {
+
"date": {
"label": "Make small",
+
"label": "Month and year",
"description": "'''Anything except <code>left</code>''': Uses an in-line default-sized message box.<br/>'''<code>left</code>''' (default): Uses smaller left-aligned message box designed for the head of sections. (See [[Template:Ambox/doc#The small parameters]].)",
+
"description": "The month and year that the template was placed (in full). \"March 2020\" inserts the current month and year automatically.",
"type": "string"
+
"type": "line",
 +
"autovalue": "March 2020",
 +
"example": "January 2013",
 +
"suggested": true
 
},
 
},
 
"section": {
 
"section": {
Line 18: Line 22:
 
"type": "string"
 
"type": "string"
 
},
 
},
"date": {
+
"small": {
"label": "Date tagged",
+
"label": "Make small",
"description": "If a date parameter is provided, in the form {{CURRENTMONTHNAME}} {{CURRENTYEAR}}, then the page is put into a by-month subcategory instead. If the date is left out, a [[Wikipedia:Bot|bot]] will add it later.",
+
"description": "'''Anything except <code>left</code>''': Uses an in-line default-sized message box.<br/>'''<code>left</code>''' (default): Uses smaller left-aligned message box designed for the head of sections. (See [[Template:Ambox/doc#The small parameters]].)",
"autovalue": "{{CURRENTMONTHNAME}} {{CURRENTYEAR}}",
+
"type": "string"
            "type": "string"
 
 
}
 
}
 
},
 
},
"description": "To be placed in sections that are empty, containing neither text nor sub-sections. Before tagging an empty section, consider removing the section heading instead – for example, an empty \"Gallery\", \"See also\" or \"External links\" section can safely be deleted.<br><br> {{tnull|Empty section}} puts articles into Category:Articles with empty sections and Category:Articles to be expanded.<noexport><br><h3>Common form</h3><br><code>&#123;&#123;Empty section&#124;date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}&#124;section{{=}} &#125;&#125;</code></noexport>",
+
"paramOrder": [
"format": "inline"
+
"date",
 +
"section",
 +
"small"
 +
]
 
}
 
}
 
}}
 
}}

Revision as of 12:22, 30 March 2020

Usage

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Empty section

To be placed in sections that are empty, containing neither text nor sub-sections. Before tagging an empty section, consider removing the section heading instead – for example, an empty "Gallery", "See also" or "External links" section can safely be deleted.

{{Empty section}} puts articles into Category:Articles with empty sections and Category:Articles to be expanded.

Common form


{{Empty section|date=June 2026|section= }}
ParameterDescriptionTypeStatus
Month and yeardate
The month and year that the template was placed (in full). "March 2020" inserts the current month and year automatically.
Example
January 2013
Auto value
March 2020
Linesuggested
Section numbersection
The section number to be edited (or whatever the &section= parameter accepts).
Stringoptional
Make smallsmall
Anything except left: Uses an in-line default-sized message box.
left (default): Uses smaller left-aligned message box designed for the head of sections. (See Template:Ambox/doc#The small parameters.)
Stringoptional

Format: inline

Tracking categories

Redirects

See also