Template: Blog post

No edit summary
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 12: Line 12:
}}
}}
{{documentation}}
{{documentation}}
</noinclude><includeonly>
</noinclude><includeonly>{{#cargo_store:
{{#cargo_store:
  _table=blog_posts
  _table=blog_posts
  | title={{{title|{{PAGENAME}}}}}
  | title={{{title|{{PAGENAME}}}}}
Line 23: Line 22:
  | keywords={{{keywords|}}}
  | keywords={{{keywords|}}}
  | mode={{{mode|}}}
  | mode={{{mode|}}}
}}
}}<templatestyles src="Template:Blog_post/styles.css" />
 
{{DISPLAYTITLE:{{{title|{{PAGENAME}}}}}}}<div class="blog-article"><div class="blog-byline">{{#if:{{{date|}}}|<span class="blog-date">{{#time:j F Y|{{{date}}}}}</span>}}{{#if:{{{authors|{{{author|}}}}}}|{{#if:{{{date|}}}| }}<span class="blog-authors"> by {{{authors|{{{author|}}}}}}</span>}}
<!-- Make the visible page title the post title (requires $wgAllowDisplayTitle = true) -->
</div>{{#if:{{{image|}}}|<div class="blog-hero">
{{DISPLAYTITLE:{{{title|{{PAGENAME}}}}}}}
[[File:{{{image}}}|frameless|class=blog-hero-img|link=|alt={{{image_alt|}}}]]
 
</div>}}{{#if:{{{image_alt|}}}|<div class="blog-hero-cap" style="padding-bottom:10px;">{{{image_alt}}}</div>}}{{#if:{{{description|}}}|<!--<p class="blog-standfirst">--><h3 style="text-align:center;padding-bottom:0px;margin-bottom:30px;">{{{description}}}</h3><!--</p>-->}}
<templatestyles src="Template:Blog_post/styles.css" />
</div>
 
<article class="blog-article">
 
  <!-- Title -->
  <h1 class="blog-h1">{{{title|{{PAGENAME}}}}}</h1>
 
  <!-- Byline -->
  <div class="blog-byline">
    {{#if:{{{date|}}}|<span class="blog-date">{{#time:j F Y|{{{date}}}}}</span>}}
    {{#if:{{{authors|{{{author|}}}}}}|
      {{#if:{{{date|}}}| }}
      <span class="blog-authors">{{{authors|{{{author|}}}}}}</span>
    }}
    <!-- Optional: show Translate link if you use Extension:Translate and set translate=yes -->
    {{#ifeq:{{{translate|}}}|yes| • <span class="blog-translate">[[Special:Translate|Translate this post]]</span>|}}
  </div>
 
  <!-- Hero image -->
  {{#if:{{{image|}}}|
    <figure class="blog-hero">
      [[File:{{{image}}}|class=blog-hero-img|alt={{{image_alt|}}}]]
      {{#if:{{{image_alt|}}}|<figcaption class="blog-hero-cap">{{{image_alt}}}</figcaption>}}
    </figure>
  }}
 
  <!-- Standfirst -->
  {{#if:{{{description|}}}|<p class="blog-standfirst">{{{description}}}</p>}}
 
  <!-- Body content follows (normal wikitext on the page) -->
 
  {{#if:{{{keywords|}}}|<div class="blog-tags"><b>Keywords:</b> {{{keywords}}}</div>}}
</article>
 
[[Category:Blog posts]]
[[Category:Blog posts]]
</includeonly>
</includeonly>

Latest revision as of 23:15, 1 October 2025

This template defines the table "blog_posts". View table. Template:Documentation

Discuss this page