Template: Blog post

(use banner instead of top image)
No edit summary
Line 6: Line 6:
  | keywords    = List (;) of Page
  | keywords    = List (;) of Page
  | description = Wikitext string
  | description = Wikitext string
| mode        = String
}}
}}
</noinclude><includeonly>
</noinclude><includeonly>
Line 14: Line 15:
  | keywords    = {{{keywords|}}}
  | keywords    = {{{keywords|}}}
  | description = {{{description|}}}
  | description = {{{description|}}}
| mode        = {{{mode|}}}
}}<!--
}}<!--


Line 49: Line 51:
}}<!--
}}<!--


# Categorise if this isn't a draft:
# Modes.
-->{{#if: {{{draft|}}} <!--
-->{{#switch: {{{mode|}}} <!--
    --> | {{draft|text=This post is a draft and is subject to change without notice.}} [[Category:Draft blog posts]]<!--
  -->| draft = {{draft|text=This post is a draft and is subject to change without notice.}} <!--
    --> | [[Category:Published blog posts]]<!--
  -->| featured = <!--
-->}}[[Category:Blog posts]]</includeonly><noinclude>
  -->| hidden = <!--
-->}}
</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 05:32, 20 May 2021

This template defines the table "blog_posts". View table.

[edit] Template documentation

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:

A news feed is available for the most recent blog posts: https://wikimedia.org.au/news.rss

TemplateData

Template used to create the header on news posts.

[Edit template data]

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Datedate

The publication date of this post in YYYY-MM-DD format.

Daterequired
Descriptiondescription

Short sentence describing the post, shown on the news page and in social media previews etc.

Contentsuggested
Authorsauthors

Semicolon-separated list of author names. Each will be linked to their page on this wiki.

Stringoptional
Keywordskeywords

Comma-separated list of keywords (each keyword should be a wiki page).

Stringsuggested
Modemode

Either 'draft', 'featured', or 'hidden'.

Stringoptional
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
Banner image originimage_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.

Example
"0,1" for the top centre.
Stringoptional

See also

Discuss this page