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> | ||
{{#cargo_declare: | |||
_table=blog_posts | |||
| title=String | |||
| date=Date | |||
| authors=List (;) of Page | |||
| image=File | |||
| image_alt=String | |||
| description=Wikitext string | |||
| keywords=List (;) of String | |||
| mode=String (allowed values=draft,featured,hidden) | |||
}} | |||
| | |||
}} | |||
{{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