Difference between revisions of "Template:Chronological/doc"

From blackwiki
Jump to navigation Jump to search
imported>Salix alba
(fix json)
imported>Salix alba
(expand template data)
Line 9: Line 9:
 
== Usage ==
 
== Usage ==
 
{{TemplateData header}}
 
{{TemplateData header}}
<templatedata>{
+
<templatedata>
  "description": "Creates an article message box to indicate that the article or section chronology is ambiguous or out of order.",
+
{
  "params": {
+
"description": "Creates an article message box to indicate that the article or section chronology is ambiguous or out of order.",
    "sect": {
+
"params": {
"label": "sect",
+
"sect": {
"description": "Applies to section instead of article",
+
"label": "sect",
"type": "string",
+
"description": "Whether the template applies to section instead of article",
"required": false,
+
"type": "string",
"suggested": false,
+
"required": false,
"deprecated": false,
+
"suggested": false,
"aliases": ["1",],
+
"deprecated": false,
"example": "yes"
+
"aliases": [
    }
+
"1",
  }
+
"section"
}</templatedata>
+
],
 +
"example": "yes"
 +
},
 +
"small": {
 +
"description": "Whether the box is displayed as a small box on the left or full width.",
 +
"example": "left, no",
 +
"default": "no",
 +
"type": "line"
 +
},
 +
"talk": {
 +
"description": "Talk page section",
 +
"type": "line"
 +
},
 +
"date": {
 +
"description": "Date template was added. ",
 +
"example": "February 2016",
 +
"suggested": true,
 +
"type": "line"
 +
}
 +
},
 +
"format": "inline"
 +
}
 +
</templatedata>
  
 
== Example ==
 
== Example ==

Revision as of 10:34, 29 February 2016

Purpose

The purpose of this template is to notify editors that the article or section within the article may contain a sequence of events that is described in an ambiguous way or out of order in which they occurred.

This template is a wrapper for Template:Temp.

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 Chronological

Creates an article message box to indicate that the article or section chronology is ambiguous or out of order.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
sectsect 1 section

Whether the template applies to section instead of article

Example
yes
Stringoptional
Smallsmall

Whether the box is displayed as a small box on the left or full width.

Default
no
Example
left, no
Lineoptional
Talktalk

Talk page section

Lineoptional
Datedate

Date template was added.

Example
February 2016
Linesuggested

Example

Markup Renders as
{{Chronological|date=January 2026}}
{{Chronological|sect=yes|date=January 2026}}