Template: Blog post

Created page with "<noinclude> <languages /> </noinclude>{{#switch: | = == {{{title}}} == '''Author:''' {{{author}}} {{(}}{{!}} class="wikitable" {{!}} People: {{{people|{{{1}}}}}} {{!}}- {{!}} Tags: {{{tags|{{{1}}}}}} {{!}}{{)}} | #default= {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Blog Post|noshift=1|uselang={{int:lang}}}} }}<noinclude> {{documentation}} </noinclude>"
 
No edit summary
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<languages />
{{#cargo_declare:
</noinclude>{{#switch:
_table=blog_posts
| =
| title=String
== {{{title}}} ==
| date=Date
 
| authors=List (;) of Page
'''Author:''' {{{author}}}
| image=File
 
| image_alt=String
{{(}}{{!}} class="wikitable"
| description=Wikitext string
{{!}} People: {{{people|{{{1}}}}}}
| keywords=List (;) of String
{{!}}-
| mode=String (allowed values=draft,featured,hidden)
{{!}} Tags: {{{tags|{{{1}}}}}}
}}
{{!}}{{)}}
| #default=
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Blog Post|noshift=1|uselang={{int:lang}}}}
}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude><includeonly>{{#cargo_store:
_table=blog_posts
| title={{{title|{{PAGENAME}}}}}
| date={{{date|}}}
| authors={{{authors|{{{author|}}}}}}
| image={{{image|}}}
| image_alt={{{image_alt|{{{description|}}}}}}
| description={{{description|}}}
| keywords={{{keywords|}}}
| 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>}}
</div>{{#if:{{{image|}}}|<div class="blog-hero">
[[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>-->}}
</div>
[[Category:Blog posts]]
</includeonly>

Latest revision as of 23:15, 1 October 2025

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

Discuss this page