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>DemonDays64
(→‎Usage: modern decade)
 
(4 intermediate revisions by 4 users not shown)
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).",
"type": "string"
+
"type": "line",
 +
"autovalue": "{{CURRENTMONTHNAME}} {{CURRENTYEAR}}",
 +
"example": "February 2020",
 +
"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"
 +
]
 
}
 
}
 
}}
 
}}
Line 40: Line 46:
 
* {{Tl|Expand section}}
 
* {{Tl|Expand section}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
  
 
<!-- Categories go here and interwikis links go in Wikidata. -->
 
<!-- Categories go here and interwikis links go in Wikidata. -->

Latest revision as of 20:26, 16 December 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).
Example
February 2020
Auto value
June 2026
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