Template: Blog post

(use banner instead of top image)
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-info.svg Template documentation

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