Template: Blog post/doc

 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Usage ==
== TemplateData ==
<pre><nowiki>
<templatedata>
{{blog post
{
| date = <!-- in yyyy-mm-dd hh:mm format -->
"params": {
| author = <!-- author name, linked as required -->
"date": {
| draft = <!-- yes -->
"type": "date",
}}</nowiki></pre>
"required": true,
"label": "Date",
"description": "The publication date of this post."
},
"date displayed": {},
"author": {
"label": "Author",
"description": "Author's name.",
"type": "string"
},
"p": {},
"draft": {
"type": "boolean"
},
"keywords": {
"label": "Keywords",
"description": "Comma-separated list of keywords.",
"type": "string",
"suggested": true
},
"image": {
"label": "Image filename",
"description": "The filename (without 'File:') of an image to use for the page banner and to share on social media.",
"type": "wiki-file-name"
},
"description": {
"label": "Description",
"type": "content",
"suggested": true
}
},
"description": "Main metadata template for blog posts.",
"format": "block",
"paramOrder": [
"date",
"author",
"description",
"keywords",
"image",
"date displayed",
"p",
"draft"
]
}
</templatedata>
 
== See also ==
* {{tl|blog post/preload}}

Latest revision as of 07:48, 2 June 2021

TemplateData

Main metadata template for blog posts.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Datedate

The publication date of this post.

Daterequired
Authorauthor

Author's name.

Stringoptional
Descriptiondescription

no description

Contentsuggested
Keywordskeywords

Comma-separated list of keywords.

Stringsuggested
Image filenameimage

The filename (without 'File:') of an image to use for the page banner and to share on social media.

Fileoptional
date displayeddate displayed

no description

Unknownoptional
pp

no description

Unknownoptional
draftdraft

no description

Booleanoptional

See also

Discuss this page