Template: Blog post/doc
No edit summary |
(Clean up TemplateData.) |
||
Line 26: | Line 26: | ||
"required": true, | "required": true, | ||
"label": "Date", | "label": "Date", | ||
"description": "The publication date of this post. | "description": "The publication date of this post in YYYY-MM-DD format." | ||
}, | }, | ||
"keywords": { | "keywords": { | ||
"label": "Keywords", | "label": "Keywords", | ||
"description": "Comma-separated list of keywords.", | "description": "Comma-separated list of keywords (each keyword should be a wiki page).", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
Line 52: | Line 42: | ||
"label": "Description", | "label": "Description", | ||
"type": "content", | "type": "content", | ||
"suggested": true | "suggested": true, | ||
"description": "Short sentence describing the post, shown on the news page and in social media previews etc." | |||
}, | |||
"mode": { | |||
"label": "Mode", | |||
"description": "Either 'draft', 'featured', or 'hidden'.", | |||
"type": "string" | |||
}, | }, | ||
"hide_banner": { | "hide_banner": { | ||
"label": "Hide banner?", | "label": "Hide banner?", | ||
Line 60: | Line 55: | ||
"type": "boolean" | "type": "boolean" | ||
}, | }, | ||
"image_origin": {}, | "image_origin": { | ||
"label": "Banner image origin", | |||
"description": "Focal point for the banner image, used to move the image up or down as required. See https://www.mediawiki.org/wiki/Extension:WikidataPageBanner#'origin'_parameter for more details.", | |||
"example": "\"0,1\" for the top centre.", | |||
"type": "string" | |||
}, | |||
"authors": { | "authors": { | ||
"label": "Authors", | "label": "Authors", | ||
"description": "Semicolon-separated list of author names.", | "description": "Semicolon-separated list of author names. Each will be linked to their page on this wiki.", | ||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
"description": " | "description": "Template used to create the header on news posts.", | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"date", | "date", | ||
" | "description", | ||
"authors", | "authors", | ||
"keywords", | "keywords", | ||
"mode", | |||
"image", | "image", | ||
"hide_banner", | "hide_banner", | ||
"image_origin" | "image_origin" | ||
] | ] | ||
Line 88: | Line 84: | ||
== See also == | == See also == | ||
* {{tl|blog post/preload}} | * {{tl|blog post/preload}} | ||
* {{tl|blog posts by author}} | |||
* [[Module:Blog post]] |
Revision as of 02:16, 20 September 2023
This template is used on blog posts that are shown on the news page and elsewhere.
To create a new post, enter its title in the box below:
TemplateData
Template used to create the header on news posts.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Date | date | The publication date of this post in YYYY-MM-DD format. | Date | required |
Description | description | Short sentence describing the post, shown on the news page and in social media previews etc. | Content | suggested |
Authors | authors | Semicolon-separated list of author names. Each will be linked to their page on this wiki. | String | optional |
Keywords | keywords | Comma-separated list of keywords (each keyword should be a wiki page). | String | suggested |
Mode | mode | Either 'draft', 'featured', or 'hidden'. | String | optional |
Image filename | image | The filename (without 'File:') of an image to use for the page banner and to share on social media. | File | optional |
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. | Boolean | optional |
Banner image origin | image_origin | Focal point for the banner image, used to move the image up or down as required. See https://www.mediawiki.org/wiki/Extension:WikidataPageBanner#'origin'_parameter for more details.
| String | optional |