Template: Blog post

(add image_origin param, defaulting to centre (0,0))
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<noinclude>
-->'''<time datetime="{{#time: c | {{{date|{{REVISIONTIMESTAMP}}}}} }}"><!--
{{#cargo_declare: _table = blog_posts
   -->{{{date displayed | {{#time: g:i a l, j F Y | {{{date|{{REVISIONTIMESTAMP}}}}} }}}}}<!--
| date        = Date
| author      = Page
| image      = File
| keywords    = List (,) of Page
| description = Wikitext string
| mode        = String (allowed values=draft,featured,hidden)
}}
</noinclude><includeonly>
{{#cargo_store: _table = blog_posts
| date        = {{{date|}}}
| author      = {{{author|}}}
| image      = {{{image|}}}
| keywords    = {{{keywords|}}}
| description = {{{description|}}}
| mode        = {{{mode|}}}
}}<!--
 
Image:
-->{{#if: {{{image|}}}
  | {{PAGEBANNER:{{{image|}}}|link=|origin={{{image_origin|0,0}}}}}
}}<!--
 
Description:
-->{{#if: {{{description|}}}
  | <div style="font-size:larger; margin:1em 0">{{{description}}}</div>
}}<!--
 
Start meta line:
--><div style="color:#444; font-size:smaller; margin-bottom:2em;"><!--
 
Date:
--><time datetime="{{#time: c | {{{date|{{REVISIONTIMESTAMP}}}}} }}"><!--
   -->{{{date displayed | {{#time: j F Y | {{{date|{{REVISIONTIMESTAMP}}}}} }}}}}<!--
--></time><!--
--></time><!--


Author:
-->{{#if: {{{author|}}} |''', {{{author}}}''' }}<!--
-->{{#if: {{{author|}}} |''', {{{author}}}''' }}<!--


-->{{{p|.}}}'''<!--
Ending punctuation:
-->{{{p|.}}}&#32;<!--
 
Keywords:
-->{{#if: {{{keywords|}}} | <span style="font-variant:small-caps; font-size:smaller">Keywords: {{#arraymap:{{{keywords|}}}|,|QQQ|[[QQQ]][[Category:QQQ]]|&#32;&middot;&#32;}}</span> }}<!--
 
End meta line.
--></div><!--
 
SEO:
-->{{#seo:
| type        = article
| description = {{{description|A blog post from Wikimedia Australia.}}}
| author      = {{{author|}}}
| keywords    = {{{keywords|}}}
| image      = {{filepath:{{{image}}}|800}}
}}<!--


# 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>

Latest revision as of 00:30, 27 September 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