Template: Blog post/doc

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Usage ==
== TemplateData ==
<templatedata>
<templatedata>
{
{
Line 5: Line 5:
"date": {
"date": {
"type": "date",
"type": "date",
"required": true
"required": true,
"label": "Date",
"description": "The publication date of this post."
},
},
"date displayed": {},
"date displayed": {},
"author": {},
"author": {
"label": "Author",
"description": "Author's name.",
"type": "string"
},
"p": {},
"p": {},
"draft": {
"draft": {
"type": "boolean"
"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
},
"mode": {},
"hide_banner": {
"label": "Hide banner?",
"description": "Do not show the image as a banner. Can be useful for portrait-orientation images that should be shown on the news list page but not on the article itself.",
"type": "boolean"
},
"image_origin": {}
},
},
"description": "Main metadata template for blog posts.",
"description": "Main metadata template for blog posts.",
"format": "block"
"format": "block",
"paramOrder": [
"date",
"author",
"description",
"keywords",
"image",
"hide_banner",
"date displayed",
"p",
"draft",
"mode",
"image_origin"
]
}
}
</templatedata>
</templatedata>
== See also ==
* {{tl|blog post/preload}}

Latest revision as of 01:07, 6 December 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
Hide banner?hide_banner

Do not show the image as a banner. Can be useful for portrait-orientation images that should be shown on the news list page but not on the article itself.

Booleanoptional
date displayeddate displayed

no description

Unknownoptional
pp

no description

Unknownoptional
draftdraft

no description

Booleanoptional
modemode

no description

Unknownoptional
image_originimage_origin

no description

Unknownoptional

See also

Discuss this page